/**
 * DQA Schedule Full
 * Base styles for full-page calendar (Week, Month, Day, Year views)
 */

/* ========================================= */
/* Container Principal */
/* ========================================= */
.dqa-schedule-full-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--fuentePrincipalDash, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif);
    background-color: #fff;
    padding: 2rem;
}

/* ========================================= */
/* Calendar Header (Navigation + Filters) */
/* ========================================= */
.dqa-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Left side: Navigation buttons + Title */
.dqa-calendar-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dqa-calendar-nav-buttons {
    display: flex;
    gap: 0.8rem;
}

.dqa-nav-btn {
    border: none !important;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50% !important;
    padding: 0 !important;
    background-color: #fff !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    box-shadow: none !important;
}

.dqa-nav-btn i {
    font-size: 1.4em !important;
    color: #000 !important;
    margin: 0 !important;
}

.dqa-nav-btn:hover {
    background-color: var(--colorLavandaClaro) !important;
}

.dqa-nav-btn:focus {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

@media screen and (min-width: 1024px) {
    .dqa-nav-btn {
        width: 4.8rem !important;
        height: 4.8rem !important;
    }
    .dqa-nav-btn i {
        font-size: 2em !important;
    }
}

.dqa-calendar-title {
    font-size: 2.4rem !important;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    min-width: 300px;
}

/* Right side: Filter dropdown */
.dqa-calendar-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dqa-view-filter-label {
    font-size: 1.8rem;
    font-weight: 500;
    color: #6b7280;
}

.dqa-view-filter {
    padding: 0.8rem 1.2rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: #374151;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.dqa-view-filter:hover {
    border-color: #9ca3af;
}

.dqa-view-filter:focus {
    outline: none;
    border-color: var(--colorMoradoOscuro, rgba(168,162,208,1));
    box-shadow: 0 0 0 3px var(--colorLavandaClaro2, rgba(198,193,223,0.1));
}

/* ========================================= */
/* Calendar Body (Views Container) */
/* ========================================= */
.dqa-calendar-body {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* View containers (week, month, day, year) */
.dqa-calendar-view {
    display: none;
}

.dqa-calendar-view.active {
    display: block;
}

/* ========================================= */
/* Loading State */
/* ========================================= */
.dqa-schedule-full-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.dqa-calendar-loading {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
    font-size: 1.4rem;
}

/* ========================================= */
/* Modal for Event Details */
/* ========================================= */
.dqa-event-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.dqa-event-modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dqa-event-modal {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.dqa-modal-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--colorMoradoOscuro);
}

.dqa-modal-title {
    font-size: 2.5rem !important;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex: 1;
}

.dqa-modal-close {
    width: 3.2rem;
    height: 3.2rem;
    background-color: transparent !important;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    color: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.dqa-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Modal Body */
.dqa-modal-body {
    padding: 3rem;
    background-color: var(--colorLavandaClaro2, rgba(198,193,223,0.1));
}

.dqa-modal-info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.dqa-modal-info-icon {
    font-size: 2rem;
    color: var(--colorMoradoOscuro, rgba(168,162,208,1));
    min-width: 24px;
}

.dqa-modal-info-content {
    flex: 1;
}

.dqa-modal-info-label {
    font-size: 1.6rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.dqa-modal-info-value {
    font-size: 1.8rem;
    color: #000;
    font-weight: 600;
}

/* Modal Footer */
.dqa-modal-footer {
    padding: 0 3rem 3rem 3rem;
    border-top: none;
    background-color: var(--colorLavandaClaro2, rgba(198,193,223,0.1));
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.dqa-modal-btn {
    font-family: var(--fuentePrincipalDash) !important;
    padding: 1rem 3rem !important;
    font-size: 1.6rem !important;
    font-weight: 500 !important;
    border-radius: 10rem !important;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none !important;
}

.dqa-modal-btn-primary {
    background-color: var(--colorMoradoOscuro, rgba(168,162,208,1)) !important;
    color: #fff !important;
}

.dqa-modal-btn-primary:hover {
    background-color: var(--colorMoradoOscuro, rgba(168,162,208,1)) !important;
    color: #fff !important;
}

.dqa-modal-btn-secondary {
    background-color: var(--btnSecondaryBg, #e5e7eb) !important;
    color: var(--btnSecondaryText, #374151) !important;
}

.dqa-modal-btn-secondary:hover {
    background-color: var(--btnSecondaryBg, #e5e7eb) !important;
    color: var(--btnSecondaryText, #374151) !important;
}

.dqa-modal-btn-danger {
    background-color: #dc2626;
    color: #fff;
}

.dqa-modal-btn-danger:hover {
    background-color: #b91c1c;
}

/* ========================================= */
/* Personal Event Modal (for creating/editing) */
/* ========================================= */
.dqa-personal-event-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.dqa-personal-event-modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.dqa-personal-event-modal {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: slideUp 0.3s ease;
}

/* Form Styles */
.dqa-form-group {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
}

.dqa-form-group label {
    font-family: var(--fuentePrincipalDash);
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 1rem;
}

.dqa-form-input,
input[type="text"].dqa-form-input,
input[type="date"].dqa-form-input,
input[type="time"].dqa-form-input,
textarea.dqa-form-input {
    font-family: var(--fuentePrincipalDash);
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
    border: none;
    border-radius: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

.dqa-form-input:focus,
input[type="text"].dqa-form-input:focus,
input[type="date"].dqa-form-input:focus,
input[type="time"].dqa-form-input:focus,
textarea.dqa-form-input:focus {
    outline: none;
    border: none;
    box-shadow: 0 0 0 3px var(--colorLavandaClaro2, rgba(198,193,223,0.1));
}

.dqa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

textarea.dqa-form-input {
    resize: vertical;
    min-height: 15rem;
}

/* ========================================= */
/* Responsive */
/* ========================================= */
@media screen and (max-width: 768px) {
    .dqa-schedule-full-container {
        padding: 1rem;
    }

    .dqa-calendar-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .dqa-calendar-header-left,
    .dqa-calendar-header-right {
        justify-content: space-between;
    }

    .dqa-calendar-title {
        font-size: 1.8rem !important;
        min-width: auto;
    }

    .dqa-event-modal {
        width: 95%;
        max-height: 90vh;
    }

    .dqa-modal-header,
    .dqa-modal-body,
    .dqa-modal-footer {
        padding: 1.5rem;
    }

    .dqa-modal-title {
        font-size: 1.8rem !important;
    }
}
