/* css/modals.css */

/* --- Modais --- */
.modal {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 1; /* Opacidade imediata */
    padding: 1rem;
}

.modal.show {
    display: flex !important;
}

#video-player-modal .video-modal-content {
    width: 95vw;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
}

/* Usar o container responsivo 16:9 definido em components.css (.video-player-container) */

.modal-content {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    overflow: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.2rem;
    color: #1e90ff;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #b3b3b3;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: #333333;
    border: 1px solid #444444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

.form-textarea {
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

 .settings-toggle-grid {
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 0.75rem;
 }

 .settings-icon-btn {
     width: 44px;
     height: 44px;
     padding: 0;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     border-radius: 12px;
     font-size: 1.2rem;
     line-height: 1;
 }

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.btn-secondary {
    background: #444444;
    color: #ffffff;
    border: none;
}

.btn-primary {
    background: #1e90ff;
    color: #ffffff;
    border: none;
}

/* --- Toast Notification --- */
#toast-container {
    position: fixed;
    bottom: 80px; /* Acima do player */
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    background: #333333;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #4CAF50;
}

.toast.error {
    background: #f44336;
}
