/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --background-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-light: rgba(0, 0, 0, 0.1);

    /* Error Colors */
    --error-color: #ef4444;
    --error-dark: #dc2626;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Source Sans Pro', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 24px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-title {
    font-size: 3rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* ===== HEADER ===== */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 48px;
    width: auto;
    border-radius: var(--border-radius-sm);
    /* Ensure logo is always visible */
    opacity: 1 !important;
    transform: none !important;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    /* Override any fade-in effects for the brand name */
    opacity: 1 !important;
    transform: none !important;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* Fix for logout button styling */
.logout-btn {
    color: var(--text-dark) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm) !important;
    transition: var(--transition) !important;
    position: relative !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.logout-btn:hover {
    color: var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.1) !important;
    transform: translateY(-1px) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="music-notes" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><text x="15" y="20" font-size="16" fill="rgba(255,255,255,0.1)" text-anchor="middle">♪</text></pattern></defs><rect width="100" height="100" fill="url(%23music-notes)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}



/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== TUTORS SECTION ===== */
.tutors-section {
    padding: var(--section-padding);
    background: var(--background-white);
}

.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    justify-items: center;
}



.tutor-card {
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.tutor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.tutor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.tutor-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.tutor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    /* Ensure images are always visible and not affected by fade-in animations */
    opacity: 1 !important;
    transform: none !important;
}

.tutor-card:hover .tutor-image img {
    transform: scale(1.05);
}

.tutor-instrument {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tutor-info {
    padding: 2.5rem;
}

.tutor-name {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tutor-grade {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.tutor-bio {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.tutor-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.interest-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.book-tutor-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--background-light) 0%, #f1f5f9 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--background-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: var(--section-padding);
    background: var(--background-white);
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    overflow: hidden;
}

.testimonial-card {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.testimonial-content p {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.author-details {
    color: var(--text-light);
    font-size: 1rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.carousel-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--background-light) 0%, #f1f5f9 100%);
}

.faq-grid {
    max-width: 900px;
    margin: 4rem auto 0;
}

.faq-item {
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.faq-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 1.2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 2rem 2rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--section-padding);
    background: var(--background-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    background: var(--background-white);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 60px;
    text-align: center;
}

.contact-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

.contact-form {
    background: var(--background-light);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--background-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 48px;
    border-radius: var(--border-radius-sm);
}

.footer-logo h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--background-white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        gap: 0.5rem;
    }

    .main-nav.active .nav-link {
        padding: 0.75rem 1rem;
        border-radius: var(--border-radius-sm);
        text-align: center;
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content {
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tutors-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .section-padding {
        padding: 80px 0;
    }



    .booking-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        gap: 0.5px;
    }

    .calendar-day {
        padding: 0.75rem 0.25rem;
        min-height: 50px;
        font-size: 0.9rem;
    }

    .calendar-day-header {
        padding: 0.75rem 0.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .tutor-card {
        margin: 0 1rem;
    }

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

    .tutor-info {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

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

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

/* ===== SCROLL ANIMATIONS - DISABLED ===== */
/* All scroll animations have been disabled to prevent elements from disappearing */

/* Ensure all elements are always visible */
* {
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure images are always visible */
img {
    opacity: 1 !important;
    transform: none !important;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn:focus,
.nav-link:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== CALENDAR SYSTEM ===== */
.calendar-section {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-light);
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.calendar-nav {
    display: flex;
    gap: 1rem;
}

.calendar-nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.calendar-day-header {
    background: var(--background-light);
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.calendar-day {
    background: var(--background-white);
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day:hover {
    background: var(--background-light);
}

.calendar-day.other-month {
    color: var(--text-light);
    opacity: 0.5;
}

.calendar-day.available {
    background: var(--background-light);
    color: var(--primary-color);
    font-weight: 600;
}

.calendar-day.available:hover {
    background: var(--primary-color);
    color: white;
}

.calendar-day.available.has-slots::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.calendar-day.booked {
    background: var(--error-color);
    color: white;
    cursor: not-allowed;
}

.calendar-day.booked:hover {
    background: var(--error-dark);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.selected:hover {
    background: var(--primary-dark);
}

/* ===== BOOKING SYSTEM ===== */
.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.booking-calendar {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-light);
    padding: 2rem;
}

.booking-form-section {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-light);
    padding: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    margin: 0;
}

.booking-form {
    display: none;
}

.booking-form.active {
    display: block;
}

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

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.booking-summary {
    background: var(--background-light);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.booking-summary h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item span:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-item span:last-child {
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.success-message {
    display: none;
    background: var(--accent-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1rem;
    text-align: center;
}

.success-message.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== TIME SLOTS ===== */
.time-slot {
    background: var(--background-white);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    position: relative;
}

.time-slot:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-slot.available {
    background: var(--background-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.time-slot.booked {
    background: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
    cursor: not-allowed;
    opacity: 0.8;
}

.time-slot.booked:hover {
    transform: none;
    box-shadow: none;
}

.time-slot.unavailable {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.unavailable:hover {
    transform: none;
    box-shadow: none;
}

/* Booking display styles */
.time-slot.booked {
    background: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
    cursor: default;
    opacity: 0.9;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    overflow: hidden;
    position: relative;
}

.booking-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    width: 100%;
    height: 100%;
}

.student-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1;
}

.cancel-booking-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.6rem;
    transition: var(--transition);
    flex-shrink: 0;
    position: absolute;
    top: 2px;
    right: 2px;
}

.cancel-booking-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.time-slot.booked:hover {
    transform: none;
    box-shadow: none;
    opacity: 1;
}

/* Tooltip styles */
.time-slot[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: pre-line;
    z-index: 1000;
    max-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.25rem;
}