/* Class Affairs Page */

.page-header {
    background: linear-gradient(135deg, #00040b 0%, #2963bd 70%, #00040b 100%);
    padding: 70px 20px;
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.page-header .container {
    position: relative;
    overflow: visible;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    margin: 2rem 0 0 0;
    animation: rotate 28s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-title {
    font-size: 2.8rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    text-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.page-subtitle {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Header Search Container */
.header-search-container {
    max-width: 600px;
    margin: 25px auto 0;
    width: 100%;
    position: relative;
    z-index: 100;
    overflow: visible;
}

.header-search-form {
    width: 100%;
    position: relative !important;
    overflow: visible !important;
    z-index: 100;
}

/* Header Search Input Wrapper - Glass Style */
.header-search-input-wrapper {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.header-search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.header-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    padding: 10px 0;
    outline: none;
    font-family: 'Vazirmatn', sans-serif;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-icon .search-icon-svg {
    width: 1.2rem;
    height: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    opacity: 0.9;
}

.header-clear-btn {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.header-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.header-search-results {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    font-weight: 600;
}

/* Autocomplete suggestions */
.header-search-form .teacher-suggestions {
    position: fixed;
    top: auto;
    right: auto;
    left: auto;
    margin-top: 0;
    z-index: 10000;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid #e9ecef;
    min-width: 300px;
    max-width: 600px;
}

.header-search-form .teacher-suggestions.show {
    display: block;
}

.header-search-form .teacher-suggestions .suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
    background: #ffffff;
}

.header-search-form .teacher-suggestions .suggestion-item:first-child {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.header-search-form .teacher-suggestions .suggestion-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.header-search-form .teacher-suggestions .suggestion-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.header-search-form .teacher-suggestions .suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.header-search-form .teacher-suggestions .suggestion-text {
    color: #212529;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    display: block;
}

.header-search-form .teacher-suggestions .suggestion-meta {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 400;
}

.intro-section {
    padding: 50px 20px;
}

.intro-box {
    background: #fff;
    padding: 36px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 960px;
    margin: 0 auto;
    border-right: 5px solid #764ba2;
}

.intro-title {
    font-size: 1.9rem;
    background: linear-gradient(135deg, #6f95d0 0%, #003180 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 800;
}

.intro-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intro-list li {
    padding: 14px 0 14px 0;
    padding-right: 36px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    font-weight: 500;
}

.intro-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #22c55e;
    font-weight: 700;
    font-size: 1.4rem;
}

.week-nav-section {
    background: #f8f9fa;
    padding: 22px 0;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.week-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-btn {
    background: #fff;
    color: #1f2937;
    padding: 10px 22px;
    border-radius: 22px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    font-weight: 600;
}

.nav-btn:hover {
    background:linear-gradient(135deg, #6f95d0 0%, #003180 100%);
    color: #fff;
    transform: translateY(-2px);
}

.current-week {
    text-align: center;
}

.week-label {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.week-dates {
    font-weight: 800;
    font-size: 1.1rem;
    color: #111827;
}

.quick-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.today-btn {
    background: #22c55e;
    color: #fff;
    padding: 8px 18px;
    border-radius: 18px;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: 700;
}

.today-btn:hover {
    background: #16a34a;
}

.day-selection {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 800;
    background:  linear-gradient(135deg, #6f95d0 0%, #003180 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
}

.day-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.day-button-wrapper {
    width: 100%;
}

.day-button {
    width: 100%;
    background: linear-gradient(135deg, #6f95d0 0%, #003180 100%);
    color: #fff;
    border: none;
    padding: 20px 25px;
    border-radius: 15px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.28);
    text-align: right;
    position: relative;
    overflow: hidden;
}

.day-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0058ff 0%, #4b4190 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.day-button:hover::before {
    opacity: 1;
}

.day-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.38);
}

.day-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.day-button.active {
    background: linear-gradient(135deg, #0058ff 0%, #4b4190 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.day-button.no-slots {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

.day-button-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.day-button .day-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.day-slot-count {
    font-size: 0.95rem;
    opacity: 0.92;
    font-weight: 600;
}

.day-no-slots {
    font-size: 0.95rem;
    opacity: 0.8;
    font-style: italic;
}

.day-date-label {
    font-size: 0.92rem;
    font-weight: 500;
    opacity: 0.9;
}

.day-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-right: auto;
}

.day-button.active .day-arrow {
    transform: rotate(180deg);
}

.time-slots-container {
    background: #fff;
    border-radius: 0 0 15px 15px;
    padding: 20px;
    margin-top: -5px;
    border: 2px solid #e9ecef;
    border-top: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-slot-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.time-slot-category-card {
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.time-slot-category-card.has-slots {
    border-color: #667eea;
    cursor: pointer;
}

.time-slot-category-card.has-slots:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border-color: #5a6fd8;
}

.time-slot-category-card.no-slots {
    opacity: 0.6;
    cursor: not-allowed;
}

.category-header {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 16px 20px;
    text-align: right;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #1f2937;
}

.time-slot-category-card.has-slots .category-header {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
}

.time-slot-category-card.has-slots:hover .category-header {
    background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 800;
}

.category-count {
    font-size: 0.95rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
}

.time-slot-category-card.has-slots:hover .category-count {
    background: rgba(255, 255, 255, 0.3);
}

.category-empty {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

.time-slot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.time-slot:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: #fff;
    text-decoration: none;
    transform: translateX(5px);
}

.time-display {
    font-size: 1rem;
}

.class-count {
    font-size: 0.95rem;
    opacity: 0.9;
}

.no-classes-message {
    background: #fff;
    border-radius: 0 0 15px 15px;
    padding: 30px 20px;
    margin-top: -5px;
    border: 2px solid #e9ecef;
    border-top: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #6b7280;
    font-style: italic;
    animation: slideDown 0.3s ease-out;
}

@media (max-width: 1024px) {
    .page-header {
        padding: 55px 15px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1.05rem;
    }
}

/* Responsive styles for search box */
@media (max-width: 1024px) {
    .header-search-container {
        max-width: 100%;
        margin: 20px auto 0;
    }
    
    .header-search-input-wrapper {
        padding: 6px 15px;
    }
    
    .header-search-input {
        font-size: 0.95rem;
        padding: 8px 0;
    }
    
    .header-search-form .teacher-suggestions {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding: 32px 15px;
    }

    .intro-box {
        padding: 26px 20px;
    }

    .intro-title {
        font-size: 1.6rem;
    }

    .intro-list li {
        font-size: 1rem;
        padding: 12px 0;
        padding-right: 30px;
    }

    .week-nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-btn {
        width: 100%;
        max-width: 220px;
    }

    .day-button {
        padding: 18px 20px;
        font-size: 1.05rem;
    }

    .day-button .day-name {
        font-size: 1.1rem;
    }

    .time-slots-container {
        padding: 16px;
    }
    
    .header-search-container {
        margin: 15px auto 0;
    }
    
    .header-search-input-wrapper {
        padding: 5px 12px;
        border-radius: 25px;
    }
    
    .header-search-input {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    
    .header-search-icon {
        font-size: 1rem;
    }
    
    .header-search-form .teacher-suggestions {
        max-height: 250px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 12px;
    }

    .page-title {
        font-size: 1.9rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .intro-box {
        padding: 20px 15px;
    }

    .intro-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .day-button {
        padding: 15px 18px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .day-button .day-name {
        font-size: 1.05rem;
    }
}

























