/* --- Imports & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Vazirmatn:wght@300;400;600;800&display=swap');

:root {
    /* --- Source Palette (Custom Teal & Slate) --- */
    --teal-lightest: #81f3cb; /* Cyan Accent */
    --teal-light: #17cdc6;    /* Bright Teal */
    --teal-primary: #27a2a4;  /* Main Brand Color */
    --teal-dark: #0cdbdb;     /* Dark Teal */
    --teal-deep: #088ba2;     /* Deepest Teal (Text/Backgrounds) */

    /* --- Theme Variables --- */
    --primary-color: var(--teal-primary);
    --primary-color-hover: var(--teal-dark);
    --text-on-primary: #ffffff;

    --text-color-main: #37474f;     /* Slate Dark */
    --text-color-secondary: #607d8b; /* Slate Gray */
    --text-color-muted: #90a4ae;

    --bg-main: #f0f2f5;       /* Very light gray/blue for body */
    --bg-container: #ffffff;   /* Pure white for panels */
    --bg-card: #ffffff;        /* Cards */
    
    /* Inputs */
    --input-bg: #fcfcfc;
    --input-border: #cfd8dc;
    --input-focus: var(--teal-primary);

    /* Status Colors */
    --status-success: #00c853;
    --status-error: #ff1744;
    --status-warning: #ffab00;

    /* Spacing & Borders */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-float: 0 15px 35px rgba(0, 191, 165, 0.15); /* Teal glow */
}

/* --- Global Reset & Typography --- */
* {
    box-sizing: border-box;
    outline: none;
}

html, body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-color-main);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 800;
    color: var(--text-color-main);
    letter-spacing: -0.5px;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }

input[dir="ltr"] { text-align: left; direction: ltr; }

/* --- FIXED LUXURY HEADER --- */
header.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    /* Luxury Gradient: Deep Teal to Rich Slate */
    background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
    box-shadow: 0 4px 20px rgba(0, 77, 64, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    transition: all 0.3s ease;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Toggle Button (Hamburger) */
.menu-toggle {
    background: rgba(255,255,255,0.1); /* Subtle glass effect */
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    direction: ltr; 
    padding-left: 5px;
    flex-shrink: 0;
}

.header-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px; /* Square padding for icons */
    width: 40px;  /* Fixed width for perfect circles */
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0; /* Prevents squishing on small phones */
}

.header-login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header-login-btn i {
    font-size: 1.1rem;
}

.header-login-btn .login-text {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}
.menu-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}
@media (min-width: 768px) {
    
    .header-login-btn {
        width: auto; /* Allow auto width when text is shown */
        padding: 8px 16px;
        border-radius: 50px;
    }
    .header-login-btn .login-text {
        display: inline;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    /* Hide the big Register button on mobile to prevent overflow */
    /* Users can use the side-drawer menu to register */
    .nav-button {
        display: none; 
    }

    /* Increase gap slightly for touch targets */
    .header-left-group {
        gap: 15px;
    }
}

/* Brand Area */
.brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    direction: rtl; 
}

.brand-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.brand-name {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* --- Mobile Brand Adjustments --- */
@media (max-width: 600px) {
    /* 1. Make the Logo smaller to match text */
    .brand-logo {
        height: 32px; /* Reduced from 42px */
    }

    /* 2. Make the Brand Name smaller */
    .brand-name {
        font-size: 0.85rem; /* Reduced from 1.2rem */
        font-weight: 600;   /* Slightly lighter */
    }
    
    /* 3. Reduce gap between logo and text */
    .brand-area {
        gap: 8px;
    }
}

/* Optional: For very small phones (e.g. iPhone SE) */
@media (max-width: 360px) {
    .brand-name {
        font-size: 0.75rem; /* Even smaller if needed */
    }
}

/* --- SIDE DRAWER MENU (Right Side Slide-in) --- */
.side-drawer {
    position: fixed;
    top: 0;
    right: 0; /* Align to Right edge */
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 1002;
    transform: translateX(100%); /* Hide to the right */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.side-drawer.open {
    transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
    height: 70px; /* Match main header height */
    background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    color: white;
    justify-content: space-between;
    direction: ltr; 
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.drawer-close-btn:hover { transform: scale(1.1); }

/* Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 30, 40, 0.6); /* Dark teal overlay */
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Drawer Content Links */
.drawer-content {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drawer-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    color: var(--text-color-secondary);
    text-decoration: none;
    transition: all 0.3s;
    direction: rtl;
    border-right: 4px solid transparent;
}

.drawer-link i {
    margin-left: 15px;
    width: 20px;
    text-align: center;
    color: var(--teal-primary);
    font-size: 1.1rem;
}

.drawer-link:hover {
    background: rgba(0, 191, 165, 0.05);
    color: var(--teal-dark);
    border-right-color: var(--teal-primary);
}

/* --- Main Layout --- */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 80vh;
    padding-top: 100px !important; /* Push content down below fixed header */
}

/* --- Hero & Titles --- */
h1.page-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-color-main);
}
h1.page-title span { color: var(--primary-color); }

/* --- Schedule / Timeline (Minimal) --- */
#schedule-wrapper {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    height: 700px;
    display: flex;
    position: relative;
    margin-bottom: 3rem;
}

#time-axis {
    width: 60px;
    border-left: 1px solid var(--input-border);
    background: #fafafa;
    position: relative;
    flex-shrink: 0;
}

.time-label {
    font-size: 0.75rem;
    color: var(--text-color-muted);
    font-family: 'Inter', sans-serif;
    position: absolute;
    right: 8px;
    transform: translateY(-50%);
}

#timeline-container {
    flex-grow: 1;
    display: flex;
    background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 100% 40px; /* Grid lines */
}

.day-column {
    flex: 1;
    border-left: 1px solid rgba(0,0,0,0.04);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background: transparent;
}
.day-column:last-child { border-left: none; }

.day-header {
    text-align: center;
    padding: 15px 0;
    font-weight: 700;
    color: var(--text-color-secondary);
    background: rgba(255,255,255,0.9);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--input-border);
    font-size: 0.9rem;
}

.day-column:hover {
    background-color: rgba(0, 191, 165, 0.02);
    flex: 1.2;
}
.day-column.focused {
    flex: 2;
    background-color: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
    z-index: 10;
}
.day-column.focused .day-header { color: var(--primary-color); }

.class-card {
    position: absolute;
    border-radius: 8px; /* Slightly rounder */
    padding: 8px 12px;
    color: white;
    font-size: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    
    /* --- NEW: Visual Separator for Overlaps --- */
    border: 1px solid rgba(255, 255, 255, 0.4); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle depth */

    /* --- NEW: Smooth Animation --- */
    transition: 
        transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
        width 0.2s ease,
        right 0.2s ease,
        box-shadow 0.2s ease,
        z-index 0s; /* Z-index changes instantly */
    
    z-index: 10; /* Default Layer */
}

.class-card:hover {
    z-index: 100 !important; /* Force to very front */
    transform: scale(1.03) translateY(-2px); /* Pop out */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25) !important; /* Strong shadow */
    
    /* Optional: If you want hovered cards to ALWAYS expand to full width */
    /* width: 94% !important; */
    /* right: 3% !important; */
}

.class-subject {
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.class-time { font-size: 0.75em; opacity: 0.9; font-family: 'Inter', sans-serif; }

/* --- Cards Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.modern-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.teacher-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    padding: 4px;
    border: 2px solid var(--primary-color);
    background: #fff;
}
.teacher-photo img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Forms --- */
.auth-container {
    max-width: 420px;
    margin: 4rem auto;
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.form-group { margin-bottom: 1.5rem; text-align: right; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    font-weight: 600;
}

input[type="text"], input[type="password"], input[type="number"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text-color-main);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.15);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 191, 165, 0.3);
}
.btn:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 191, 165, 0.4);
}
.btn-secondary {
    background: transparent;
    border: 1px solid var(--input-border);
    color: var(--text-color-secondary);
    box-shadow: none;
    margin-top: 10px;
}
.btn-secondary:hover {
    background: var(--bg-main);
    color: var(--text-color-main);
    border-color: var(--text-color-secondary);
}

/* OTP */
.otp-inputs-container { display: flex; justify-content: center; gap: 12px; margin: 1.5rem 0; direction: ltr;}
.otp-input {
    width: 50px !important; height: 50px;
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 700;
    padding: 0 !important;
}

/* --- Calendar --- */
#calendar-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--input-border);
    margin-top: 2rem;
}
.calendar-header {
    background: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.calendar-header h2 { font-size: 1.4rem; color: var(--primary-color); }
.calendar-header button {
    background: var(--bg-main);
    color: var(--text-color-main);
    border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer;
}
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fcfcfc;
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid var(--input-border);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--input-border);
    gap: 1px;
}
.calendar-day {
    background: #fff;
    min-height: 120px;
    padding: 10px;
    position: relative;
}
.calendar-day .day-number { font-weight: 700; color: var(--text-color-secondary); margin-bottom: 5px; display: block; }
.calendar-day.today { background-color: #f0fdff; }
.calendar-day.today .day-number { color: var(--primary-color); }

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
    color: var(--text-color-secondary);
    border-top: 1px solid var(--input-border);
    background: #fff;
}
.social-icons a {
    color: var(--text-color-secondary);
    font-size: 1.5rem;
    margin: 0 12px;
}
.social-icons a:hover { color: var(--primary-color); }

/* --- Utilities & Mobile --- */
.paint-drip { display: none !important; }
.message { padding: 10px; border-radius: 6px; font-size: 0.9rem; margin-top: 10px; text-align: center;}
.success-message { background-color: rgba(0, 200, 83, 0.1); color: var(--status-success); }
.error-message { background-color: rgba(255, 23, 68, 0.1); color: var(--status-error); }

.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 30, 40, 0.7); /* Dark Teal overlay */
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Class to trigger fade in */
.modal-backdrop.visible {
    opacity: 1;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-float);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.visible .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px; left: 15px; /* Left because RTL */
    background: rgba(0,0,0,0.05);
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-secondary);
    z-index: 10;
    transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,0,0,0.1); color: var(--status-error); }

.modal-header-section {
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-dark));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    text-align: center;
}

.modal-subtitle { opacity: 0.9; font-size: 0.95rem; margin-top: 5px; }

#modal-teacher-img-container img {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    object-fit: cover;
}

.modal-body { padding: 1.5rem; }

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-color-main);
    font-weight: 600;
}
.info-row i { color: var(--teal-primary); width: 20px; text-align: center; }

.modal-description {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    line-height: 1.7;
    margin: 1rem 0;
}

.modal-cta { margin-top: 1rem; }

/* --- Teacher Card Styles --- */
.teacher-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 191, 165, 0.15); /* Teal Glow */
    border-color: rgba(0, 191, 165, 0.3);
}

.teacher-card-img-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 5px;
    border: 2px dashed var(--teal-primary); /* Decorative border */
    position: relative;
}

.teacher-card-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-card-img {
    transform: scale(1.1);
}

.teacher-name {
    font-size: 1.3rem;
    color: var(--text-color-main);
    margin-bottom: 0.5rem;
}

.teacher-short-bio {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-text {
    background: none;
    border: none;
    color: var(--teal-primary);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    transition: gap 0.3s;
}

.teacher-card:hover .btn-text {
    gap: 12px; /* Arrow moves on hover */
}

/* --- Teacher Modal (Luxury Split Layout) --- */
.teacher-modal-card {
    background: white;
    width: 90%;
    max-width: 900px; /* Wider for split view */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-backdrop.visible .teacher-modal-card {
    transform: scale(1);
}

.modal-layout {
    display: flex;
    flex-direction: column-reverse; /* Mobile: Image top, Text bottom */
    height: 80vh; /* Fixed height for scrollable bio */
    max-height: 600px;
}

/* Desktop Split */
@media (min-width: 768px) {
    .modal-layout {
        flex-direction: row;
        height: 500px;
    }
}

/* Left Side: Gallery */
.modal-gallery-col {
    flex: 1.2;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.gallery-frame {
    width: 100%;
    height: 100%;
    position: relative;
}

.modal-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth Fade */
}

.modal-slide.active {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-size: 0.9rem;
}

/* Right Side: Info */
.modal-info-col {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto; /* Scroll if content is long */
}

.modal-avatar-container img {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 3px solid var(--teal-primary);
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.divider {
    width: 100px;
    border: 0;
    height: 2px;
    background: var(--teal-light);
    margin: 1rem auto;
}

.modal-bio-scroll {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--text-color-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding: 0 10px;
    text-align: justify;
}

.modal-action-btn {
    width: 100%;
    padding: 12px;
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    left: 15px; /* Positioned on the left for RTL layouts */
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-color-secondary);
    z-index: 20; /* Ensure it sits above images */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close-btn:hover {
    background: #ffffff;
    color: var(--status-error); /* Red on hover */
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* --- Fix: Mobile Layout for Teacher Modal --- */
@media (max-width: 768px) {
    /* 1. Ensure the modal fits on screen and allows internal scrolling */
    .teacher-modal-card {
        height: 85vh; /* Fixed height relative to viewport */
        width: 95%;   /* Wider on mobile */
        display: flex;
        flex-direction: column;
    }

    /* 2. Adjust Layout Direction: Images Top, Info Bottom */
    .modal-layout {
        flex-direction: column-reverse; 
        height: 100%;
        width: 100%;
    }

    /* 3. FIX: Restrict Gallery Height so it doesn't push text out */
    .modal-gallery-col {
        flex: 0 0 220px; /* FIXED height for images. Won't grow. */
        height: 220px;
        width: 100%;
    }

    /* 4. Allow Info section to take ALL remaining space */
    .modal-info-col {
        flex: 1; /* Takes the rest of the height (85vh - 220px) */
        padding: 1rem 1.5rem; /* Slightly smaller padding */
        overflow: hidden; /* Essential for the inner scroll to work */
    }

    /* 5. Ensure the bio scrolls properly inside the remaining space */
    .modal-bio-scroll {
        max-height: none; /* Remove any old limits */
        flex-grow: 1;     /* Grow to fill the info column */
        overflow-y: auto; /* Scrollable text */
        margin-bottom: 10px;
    }
    
    /* 6. Smaller avatar on mobile to save space */
    .modal-avatar-container img {
        width: 70px; 
        height: 70px;
        margin-bottom: 0.5rem;
    }

    .modal-action-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* 1. Wrapper: Enable Horizontal Scrolling */
    #schedule-wrapper {
        display: flex; /* Keep flex to hold axis + container side-by-side */
        overflow-x: auto; /* Enable scroll */
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        scroll-behavior: smooth;
        height: 700px !important; /* Force fixed height to match desktop logic */
        position: relative;
        background: var(--bg-card);
        border: 1px solid rgba(0,0,0,0.05);
        margin-bottom: 3rem;
    }

    /* 2. Timeline Container: Must be wide enough to hold all columns */
    #timeline-container {
        display: flex; /* Row layout */
        flex-direction: row !important; /* Force row, NOT column */
        min-width: 1000px; /* Ensure it's wider than the screen so it scrolls */
        background-size: 100% 40px; /* Keep grid lines */
    }

    /* 3. Time Axis: Sticky on the Right (RTL) or Left */
    #time-axis {
        display: block !important; /* Show it! */
        position: sticky;
        left: 0; /* Stick to left edge */
        z-index: 50; /* Above cards */
        background: #fafafa;
        border-left: 1px solid var(--input-border);
        width: 50px;
        flex-shrink: 0; /* Don't shrink */
        box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    }

    /* 4. Columns: Fixed width for mobile */
    .day-column {
        min-width: 140px; /* Fixed width per day so they don't squish */
        flex-shrink: 0;
        border-left: 1px solid rgba(0,0,0,0.04);
        margin: 0 !important; /* Remove gaps, use borders */
        border-radius: 0 !important;
        background: transparent;
    }

    /* 5. Headers: Sticky Top */
    .day-header {
        position: sticky;
        top: 0;
        z-index: 40; /* Above cards, below Modal */
        background: rgba(255,255,255,0.95);
        font-size: 0.85rem;
    }

    /* 6. Cards: Ensure text is visible on small cards */
    .class-card {
        padding: 4px 6px !important;
        font-size: 0.7rem !important;
    }
    
    /* Hide scrollbar for cleaner look (optional) */
    #schedule-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    #schedule-wrapper::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 4px;
    }
}

/* --- Dashboard Styles --- */

.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    color: var(--text-color-main);
    margin-bottom: 1.5rem;
    border-right: 4px solid var(--teal-primary);
    padding-right: 15px;
}
.section-title span { color: var(--teal-primary); font-weight: 400; font-size: 0.9em; }

/* Profile Card */
.profile-card {
    padding: 2rem;
    border-top: 5px solid var(--teal-primary); /* Accent top border */
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 10px;
    background: #f9f9f9;
    transition: background 0.2s;
}

.profile-item:hover { background: #f0fdfc; }

.profile-item i {
    font-size: 1.4rem;
    color: var(--teal-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 191, 165, 0.1);
    border-radius: 8px;
}

.profile-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color-secondary);
}

.profile-item .value {
    display: block;
    font-weight: 700;
    color: var(--text-color-main);
}

/* Calendar Styles */
.cal-nav-btn {
    background: transparent;
    border: 1px solid var(--input-border);
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color-secondary);
    transition: all 0.2s;
}
.cal-nav-btn:hover { border-color: var(--teal-primary); color: var(--teal-primary); }

.calendar-day.other-month {
    background: #fdfdfd;
    opacity: 0.5;
}

.calendar-event-list {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Class Status Pills */
.class-pill {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.1s;
}
.class-pill:hover { transform: scale(1.02); }

/* Status Colors */
.status-pending {
    background: #eceff1; color: #546e7a; /* Grey */
}
.status-present {
    background: rgba(0, 200, 83, 0.15); color: #007E33; /* Green */
    border: 1px solid rgba(0, 200, 83, 0.2);
}
.status-absent {
    background: rgba(255, 23, 68, 0.1); color: #cc0000; /* Red */
    border: 1px solid rgba(255, 23, 68, 0.2);
}

/* Renewal Modal Specifics */
.renewal-card {
    max-width: 500px !important;
}

.renewal-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

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

.stat-label { font-size: 0.8rem; color: var(--text-color-muted); display: block; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--text-color-main); }

.renewal-form-container {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .calendar-weekdays, .calendar-grid {
        font-size: 0.8rem;
    }
    .class-pill span { display: none; } /* Show only icon on mobile calendar to save space */
    .class-pill { justify-content: center; padding: 6px 0; }
}

/* --- New: Active Packages Grid --- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.package-card {
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent */
    backdrop-filter: blur(12px); /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px; /* Softer corners */
    padding: 2rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.5); /* Inner glow */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

CSS
/* File: public/css/style.css (Append/Replace specific sections) */

/* --- LUXURY DASHBOARD CARDS (Glassmorphism) --- */
.package-card {
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent */
    backdrop-filter: blur(12px); /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px; /* Softer corners */
    padding: 2rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.5); /* Inner glow */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 191, 165, 0.2);
    border-color: rgba(0, 191, 165, 0.3);
}

/* Decorative Gradient Blob behind the card */
.package-card::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 100px; height: 100px;
    background: var(--teal-light);
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
}

.pkg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.pkg-header h4 {
    font-size: 1.3rem;
    font-weight: 800;
    background: -webkit-linear-gradient(45deg, var(--teal-deep), var(--teal-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pkg-teacher { font-size: 0.85rem; color: var(--text-color-secondary); }

.pkg-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.6);
}

.stat .val {
    font-size: 1.8rem; /* Bigger numbers */
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.pkg-stats .lbl { font-size: 0.75rem; color: var(--text-color-muted); }

.pkg-progress-bg {
    height: 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.pkg-progress-bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--teal-light), var(--teal-primary));
    box-shadow: 0 0 10px rgba(0, 191, 165, 0.4);
}

.btn-sm {
    padding: 8px; font-size: 0.85rem; background: transparent; 
    border: 1px solid var(--teal-primary); color: var(--teal-primary); border-radius: 6px; cursor: pointer;
}
.btn-sm:hover { background: var(--teal-primary); color: white; }

/* --- Calendar Pill Update --- */
.status-available {
    background: white; 
    border: 1px dashed var(--text-color-muted);
    color: var(--text-color-secondary);
    opacity: 0.7;
}

/* --- Registration Radio Styling --- */
.radio-group { display: flex; gap: 10px; margin-top: 5px; }
.radio-pack {
    flex: 1; border: 1px solid var(--input-border); border-radius: 8px; padding: 10px;
    cursor: pointer; text-align: center; transition: all 0.2s;
}
.radio-pack:hover { border-color: var(--teal-primary); background: #f0fdfc; }
.radio-pack.selected {
    border-color: var(--teal-primary); background: rgba(0, 191, 165, 0.1); color: var(--teal-dark);
    font-weight: 700;
}
.radio-pack input { display: none; }
.pack-name { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.pack-price { display: block; font-size: 0.8rem; color: var(--text-color-muted); }

/* --- Admin Panel Styles --- */

/* SMS Panel */
.admin-panel-card {
    border-top: 4px solid var(--teal-dark);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--input-border);
}

.panel-header h2 { margin: 0; font-size: 1.2rem; color: var(--teal-deep); }
.panel-header i { margin-left: 8px; }

.credit-badge {
    background: #e0f2f1;
    color: var(--teal-dark);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.textarea-wrapper {
    position: relative;
}
.textarea-wrapper i {
    position: absolute;
    left: 10px; bottom: 10px;
    color: var(--text-color-muted);
    opacity: 0.5;
}

/* Admin Calendar Day */
.day-badge {
    font-size: 0.75rem;
    background: var(--teal-lightest);
    color: var(--teal-deep);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-block;
}

.calendar-dots {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 4px;
}
.dot { width: 4px; height: 4px; background: var(--teal-primary); border-radius: 50%; }

/* Admin Modal Student Cards */
.admin-student-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.admin-student-card:hover {
    background: #fff;
    border-color: var(--teal-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.student-info h3 { margin: 0 0 5px 0; font-size: 1rem; color: var(--text-color-main); }
.student-info .class-name { font-size: 0.85rem; color: var(--text-color-secondary); }

.attendance-controls {
    display: flex;
    gap: 10px;
}

.att-btn {
    border: 1px solid var(--input-border);
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
}

.att-btn:hover { opacity: 1; transform: translateY(-1px); }

/* Active States */
.att-btn.present-btn.active {
    background: var(--status-success);
    color: white;
    border-color: var(--status-success);
    opacity: 1;
    box-shadow: 0 4px 10px rgba(0, 200, 83, 0.3);
}

.att-btn.absent-btn.active {
    background: var(--status-error);
    color: white;
    border-color: var(--status-error);
    opacity: 1;
    box-shadow: 0 4px 10px rgba(255, 23, 68, 0.3);
}

.scrollable-list {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px; /* Prevent scrollbar overlapping content */
}

/* --- Class Registration Card Styles --- */

.section-subtitle {
    text-align: center;
    color: var(--text-color-secondary);
    margin-bottom: 2rem;
}

.class-registration-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.class-registration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 191, 165, 0.15); /* Teal Glow */
}

/* Card Header */
.reg-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.reg-icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--teal-light), var(--teal-primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 191, 165, 0.3);
}

.reg-title-box h3 {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    color: var(--text-color-main);
}

.reg-teacher {
    font-size: 0.85rem;
    color: var(--text-color-secondary);
}

/* Meta Info */
.class-meta {
    background: #fcfcfc;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--input-border);
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-dark);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.desc {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    line-height: 1.6;
    margin: 0;
}

/* Package Selector (Radios) */
.package-selector-area {
    margin-top: 5px;
}

.pack-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color-main);
    display: block;
    margin-bottom: 8px;
}

.radio-group {
    display: flex;
    gap: 10px;
}

.radio-pack {
    flex: 1;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
}

.radio-pack:hover {
    border-color: var(--teal-light);
    background: #f0fdfc;
}

/* Selected State for Radio */
.radio-pack.selected {
    border-color: var(--teal-primary);
    background: rgba(0, 191, 165, 0.08);
    color: var(--teal-deep);
}

.radio-pack.selected::after {
    content: '\f00c'; /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    background: var(--teal-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.radio-pack input { display: none; } /* Hide actual radio */

.pack-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.pack-price {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color-secondary);
}

/* Button & Loading */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-color-muted);
    font-size: 1.1rem;
}

.submit-button {
    margin-top: 10px;
    background: linear-gradient(135deg, var(--teal-primary), var(--teal-dark));
}
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(1);
}

.submit-button.register-btn {
    /* 1. Structure & Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Space between icon and text */
    padding: 14px 32px; /* Generous padding for a substantial feel */
    border: none;
    border-radius: 50px; /* Modern "pill" shape */

    /* 2. Typography */
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit; /* Uses your site's main Persian font */
    text-decoration: none;
    white-space: nowrap;

    /* 3. Visuals & Gradient Background */
    /* Using a 45deg gradient for dynamic flow.
       Colors used: A deep teal to a vibrant emerald green. */
    background: linear-gradient(45deg, #097c75, #06a3bb); 
    /* Alternate Blue/Purple Option: background: linear-gradient(45deg, #6a11cb, #2575fc); */
    
    background-size: 200% auto; /* Essential for the smooth hover gradient shift */

    /* 4. Depth & Shadows */
    /* A subtle shadow giving it a 3D effect off the page */
    box-shadow: 0 4px 15px rgba(0, 146, 69, 0.3);

    /* 5. Interaction Properties */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth elastic transition */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* The Icon itself */
.submit-button.register-btn i {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

/* --- HOVER STATE (When mouse is over) --- */
.submit-button.register-btn:hover {
    /* Shift background position to animate the gradient */
    background-position: right center; 
    
    /* Lift the button physically up */
    transform: translateY(-4px);
    
    /* Increase shadow size and create a colored "glow" below it */
    box-shadow: 0 12px 25px rgba(0, 146, 69, 0.5);
}

/* Subtle icon animation on hover */
.submit-button.register-btn:hover i {
    /* Slight shake/tilt of the cart icon */
    transform: rotate(-10deg) scale(1.1);
}


/* --- ACTIVE STATE (When clicked/pressed) --- */
.submit-button.register-btn:active {
    /* Push the button down below its original starting point */
    transform: translateY(2px);
    
    /* Shrink shadow to simulate being pressed against the page */
    box-shadow: 0 2px 5px rgba(0, 146, 69, 0.2);
    
    transition: all 0.1s ease; /* quicker transition for press feel */
}

/* --- Luxury Footer Styles --- */

.main-footer {
    background: linear-gradient(135deg, #138c93, #0bbea9ba); /* Deep Dark Teal */
    color: #e0f2f1; /* Very light teal-white text */
    padding-top: 4rem;
    margin-top: 5rem;
    border-top: 4px solid var(--teal-primary);
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Brand gets more space */
    gap: 2rem;
}

/* Columns */
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

/* .footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 100px;
    height: 3px;
    background: var(--teal-light); 
    border-radius: 2px;
} */

/* Brand Column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.footer-logo-img { height: 40px; width: auto; filter: brightness(0) invert(1); /* Make logo white */ }
.footer-brand-name { font-size: 1.3rem; font-weight: 800; color: white; }
.footer-bio { font-size: 0.9rem; line-height: 1.8; opacity: 0.8; }

/* Links Column */
.links-col ul { list-style: none; padding: 0; }
.links-col li { margin-bottom: 10px; }
.links-col a {
    color: #b2dfdb;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.links-col a:hover {
    color: var(--teal-light);
    padding-right: 5px; /* Slide effect */
}

/* Socials & Contact */
.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    background: white;
}
.social-btn.instagram:hover { color: #E1306C; }
.social-btn.telegram:hover { color: #0088cc; }
.social-btn.whatsapp:hover { color: #25D366; }

.contact-info { font-weight: 700; font-size: 1.1rem; color: white; }

/* Enamad (Trust Seal) Styling */
.trust-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.enamad-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    width: 100px; /* Standard Enamad width */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 191, 165, 0.2); /* Teal Glow */
    transition: transform 0.3s;
}

.enamad-wrapper:hover { transform: scale(1.05); }

.enamad-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.trust-label {
    margin-top: 10px;
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: center;
}

/* Bottom Bar */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #80cbc4;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-bottom strong { color: white; }

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr; /* 2x2 grid on tablets */
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-content {
        display: flex;
        flex-direction: column; /* Stack vertically on mobile */
        text-align: center;
    }
    
    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%); /* Center underline */
    }

    .footer-logo { justify-content: center; }
    .social-icons { justify-content: center; }
    
    .links-col a:hover { padding-right: 0; }
}

/* --- Gallery Loader Styles --- */
.gallery-loader {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    color: var(--text-color-muted);
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 191, 165, 0.1);
    border-left-color: var(--teal-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.manager-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 1rem;
}

.student-list-item {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-right: 4px solid transparent; /* Status indicator */
    transition: transform 0.2s;
    cursor: pointer;
}

.student-list-item:hover {
    transform: translateX(-5px);
    background: #fcfcfc;
}

.item-info h4 { margin: 0; font-size: 1rem; color: var(--text-color-main); }
.item-sub { font-size: 0.8rem; color: var(--text-color-muted); display: block; margin-top: 4px; }

.item-stat {
    text-align: center;
    background: rgba(0,0,0,0.03);
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--teal-deep);
}
/* --- Admin Student List States --- */
.student-list-item {
    border-right: 4px solid transparent;
    transition: transform 0.2s;
}

/* Good State (Green) */
.student-list-item.good { border-right-color: var(--status-success); } 

/* Warning State (Orange - 1 Session Left) */
.student-list-item.warning { border-right-color: var(--status-warning); background-color: #fffbf0; } 

/* Expired State (Red - 0 Sessions Left) */
.student-list-item.expired { border-right-color: var(--status-error); background-color: #fff5f5; }

/* Status Badges inside the card */
.item-stat.stat-expired { color: var(--status-error); background: rgba(255, 23, 68, 0.1); border: 1px solid rgba(255, 23, 68, 0.2); }
.item-stat.stat-warning { color: var(--status-warning); background: rgba(255, 171, 0, 0.1); border: 1px solid rgba(255, 171, 0, 0.2); }

/* --- Data Tables --- */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Force scroll on mobile */
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f4f6f8;
    color: var(--text-color-secondary);
    font-weight: 700;
    font-size: 0.9rem;
}

.data-table td {
    font-size: 0.95rem;
    color: var(--text-color-main);
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

/* Status Badges in Table */
.status-paid { color: var(--status-success); font-weight: bold; }
.status-pending { color: var(--status-warning); }
.status-failed { color: var(--status-error); }

/* --- STORE STYLES --- */

.store-layout {
    padding-top: 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.store-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(39, 162, 164, 0.1), rgba(255,255,255,0));
    border-radius: 20px;
}

.store-hero h1 { font-size: 2.5rem; color: var(--teal-deep); margin-bottom: 0.5rem; }
.store-hero h1 span { color: var(--teal-primary); }

/* Tabs */
.store-tabs-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.store-tabs {
    display: inline-flex;
    gap: 10px;
    padding: 5px;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--input-border);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-color-secondary);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover { color: var(--teal-primary); background: #f0fdfc; }
.tab-btn.active { background: var(--teal-primary); color: white; box-shadow: 0 4px 10px rgba(39, 162, 164, 0.3); }

/* Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 0 1rem 4rem;
}

/* 1. Define the Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 2. Update the Card Style to use it */
.store-item-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Hover transition */
    display: flex;
    flex-direction: column;
    cursor: pointer;

    /* New Animation Properties */
    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    /* Animation delay will be set via JS */
}

/* Keep the Hover Effect */
.store-item-card:hover {
    transform: translateY(-8px) scale(1.02) !important; /* !important to override animation end state if needed, though usually hover works on top */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    height: 220px;
    width: 100%;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.store-item-card:hover img { transform: scale(1.05); }

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-color-main);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-weight: 800;
    color: var(--teal-dark);
    font-size: 1.1rem;
}
.card-price span { font-size: 0.7rem; font-weight: 400; color: #888; margin-right: 3px; }

.btn-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--teal-lightest);
    color: var(--teal-deep);
    display: flex; align-items: center; justify-content: center;
    border: none;
    transition: all 0.2s;
}
.btn-icon:hover { background: var(--teal-primary); color: white; transform: scale(1.1); }

/* Modal specific */
.product-card-modal {
    max-width: 800px;
    width: 90%;
    display: flex;
    flex-direction: column;
}

.product-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

@media(min-width: 768px) {
    .product-modal-content { flex-direction: row; }
    .pm-image { flex: 1; height: 400px; }
    .pm-details { flex: 1; padding: 20px; }
}

.pm-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.pm-price { font-size: 1.5rem; color: var(--teal-primary); font-weight: 800; display: block; margin: 10px 0; }
.qty-selector {
    display: flex; align-items: center; gap: 10px; border: 1px solid #ddd; border-radius: 8px; padding: 5px;
}
.qty-selector button { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 0 10px; }
.pm-actions { display: flex; gap: 15px; margin-top: 2rem; align-items: center; }
.btn-buy { flex: 1; border-radius: 12px; }

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--status-error);
    color: white;
    font-size: 0.7rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--teal-deep);
}
#cart-btn { position: relative; }

/* Cart Drawer Specifics */
.cart-drawer { width: 350px; max-width: 90%; z-index: 1100; left: 0; right: auto; transform: translateX(-100%); }
.cart-drawer.open { transform: translateX(0); }

.cart-content { flex: 1; overflow-y: auto; padding: 20px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--input-border); background: #f9f9f9; }

/* Cart Items */
.cart-item {
    display: flex; gap: 10px; margin-bottom: 15px; background: white; 
    padding: 10px; border-radius: 12px; border: 1px solid #eee;
    animation: fadeInUp 0.3s ease;
}
.cart-item img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.cart-item-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-title { font-size: 0.9rem; font-weight: 700; color: var(--text-color-main); }
.cart-item-price { font-size: 0.85rem; color: var(--teal-primary); }

.cart-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.qty-mini { display: flex; align-items: center; gap: 8px; background: #f0f0f0; border-radius: 6px; padding: 2px 6px; }
.qty-mini button { background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--teal-dark); }
.btn-remove { color: var(--status-error); background: none; border: none; cursor: pointer; font-size: 0.8rem; }

.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; margin-bottom: 15px; color: var(--teal-dark); }

/* Empty Cart State */
.empty-cart { text-align: center; padding: 40px 20px; color: var(--text-color-muted); }
.empty-cart i { font-size: 3rem; margin-bottom: 15px; opacity: 0.5; }

.purchases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.purchase-card {
    background: white; border-radius: 16px; padding: 1.5rem;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s;
}
.purchase-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.pch-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.pch-id { font-weight: 800; color: var(--teal-deep); }
.pch-date { font-size: 0.8rem; color: var(--text-color-secondary); }

.pch-items { display: flex; gap: 8px; margin-bottom: 15px; overflow-x: auto; padding-bottom: 5px; }
.pch-thumb { width: 40px; height: 40px; border-radius: 8px; border: 1px solid #eee; object-fit: cover; flex-shrink: 0;}

.pch-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; font-weight: 700; }
.pch-status { padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; }
.pch-status.paid { background: #e8f5e9; color: #2e7d32; }
.pch-status.cancelled { background: #ffebee; color: #c62828; }

/* --- Progress Bar (Luxury Minimal) --- */
.progress-wrapper {
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--teal-deep);
    margin-bottom: 5px;
    font-weight: 700;
}
.progress-track {
    width: 100%;
    height: 8px;
    background: #e0f2f1;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--teal-light), var(--teal-primary));
    border-radius: 10px;
    transition: width 0.1s linear;
}

/* --- Image Preview Box --- */
.image-preview-box {
    margin-top: 10px;
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}
.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#remove-image-btn {
    position: absolute;
    top: 2px; right: 2px;
    background: rgba(255,255,255,0.8);
    border: none;
    color: var(--status-error);
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
}

/* --- Toast Notification --- */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px; /* RTL aware */
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-right: 5px solid var(--teal-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    transform: translateX(100%);
    animation: slideInToast 0.4s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.error { border-right-color: var(--status-error); }
.toast i { font-size: 1.2rem; }
.toast.success i { color: var(--status-success); }
.toast.error i { color: var(--status-error); }

@keyframes slideInToast {
    to { transform: translateX(0); }
}
@keyframes fadeOutToast {
    to { opacity: 0; transform: translateY(10px); }
}

/* File: public/css/style.css - Append/Replace */

/* --- Mobile Responsiveness Enhancements --- */

@media (max-width: 768px) {
    /* 1. Global Padding Fixes */
    main {
        padding: 1rem;
        padding-top: 80px !important;
    }

    /* 2. Admin Tables: Scrollable Container */
    .table-responsive {
        overflow-x: auto; /* Allow horizontal scroll */
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
    }
    .data-table {
        min-width: 700px; /* Force scroll if table is wide */
    }
    .data-table th, .data-table td {
        white-space: nowrap; /* Prevent ugly wrapping */
        font-size: 0.85rem;
        padding: 10px;
    }

    /* 3. Modals: Full Screen & Scrollable */
    .modal-card {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
    }
    .modal-body {
        overflow-y: auto; /* Scroll inside modal */
        flex: 1;
        padding: 20px;
        padding-bottom: 80px; /* Space for bottom buttons */
    }
    .modal-header-section {
        flex-shrink: 0;
    }

    /* 4. Dashboard Grid Fixes */
    .dashboard-header-section {
        flex-direction: column;
    }
    .packages-grid {
        grid-template-columns: 1fr; /* Single column */
    }
    .package-card {
        margin-bottom: 15px;
    }

    /* 5. Calendar Grid Mobile */
    .calendar-weekdays, .calendar-grid {
        font-size: 0.75rem;
    }
    .calendar-day {
        min-height: 80px; /* Smaller boxes */
        padding: 5px;
    }
    .calendar-day .day-number {
        font-size: 0.9rem;
    }

    /* 6. Admin Store Management */
    #admin-store-content > div {
        flex-direction: column; /* Stack vertically */
    }
    
    /* 7. Store Grid Mobile */
    .store-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row */
        gap: 10px;
        padding: 0 5px 60px 5px;
    }
    .store-item-card .card-img-wrapper {
        height: 150px;
    }
    .card-title { font-size: 0.9rem; }
    .card-price { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .store-grid {
        grid-template-columns: 1fr; /* 1 item per row on very small screens */
    }
    .header-container {
        padding: 0 10px;
    }
    .brand-name {
        font-size: 0.9rem;
    }
}

/* --- Luxury & UI Tweaks --- */
.btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s;
}
.btn:active {
    transform: scale(0.98);
}

/* Smooth Input Focus */
input:focus, select:focus, textarea:focus {
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.1);
    background: white;
}

/* Toast Animations */
.toast {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-weight: 600;
}

.mini-calendar-section {
    max-width: 1000px;
    margin: 4rem auto;
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* Soft luxury shadow */
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(0,0,0,0.03);
}

.mini-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--input-border);
}

.mini-cal-title {
    font-size: 1.6rem;
    color: var(--teal-deep);
    font-weight: 800;
    font-family: 'Vazirmatn', sans-serif;
}

.mini-cal-controls {
    background: transparent;
    border: 1px solid var(--input-border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    color: var(--text-color-secondary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-cal-controls:hover {
    border-color: var(--teal-primary);
    color: var(--teal-primary);
    transform: scale(1.1);
    background: #f0fdfc;
}

.mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

/* Day Names Row */
.mini-cal-day-name {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-color-muted);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Day Cells */
.mini-cal-day {
    aspect-ratio: 1; /* Keeps them square */
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color-main);
    cursor: default;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    background: #fcfcfc;
}

.mini-cal-day:hover {
    background: #ffffff;
    border-color: var(--teal-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 191, 165, 0.1);
}

.mini-cal-day.today {
    background: var(--teal-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(39, 162, 164, 0.3);
}

/* Holiday Styling */
.mini-cal-day.is-holiday {
    color: var(--status-error);
    background: rgba(255, 23, 68, 0.04);
    border: 1px solid rgba(255, 23, 68, 0.1);
}

/* Minimal Dot for Holidays */
.mini-cal-day.is-holiday::after {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--status-error);
    border-radius: 50%;
    position: absolute;
    bottom: 10px;
}

/* Event Tooltip */
.mini-cal-day[data-title]:hover::before {
    content: attr(data-title);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal-deep);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.mini-cal-day[data-title]:hover::after {
    display: none; /* Hide dot when tooltip shows */
}

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

/* Mobile Response */
@media (max-width: 600px) {
    .mini-calendar-section { padding: 1.5rem; margin: 2rem 1rem; }
    .mini-cal-grid { gap: 6px; }
    .mini-cal-day { font-size: 0.9rem; border-radius: 10px; }
    .mini-cal-day.is-holiday::after { width: 3px; height: 3px; bottom: 5px; }
    .mini-cal-title { font-size: 1.2rem; }
}

.mini-cal-day.has-class {
    position: relative;
    font-weight: 700;
    color: var(--teal-deep);
}

.mini-cal-day.has-class::after {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--teal-primary); /* Teal dot for classes */
    border-radius: 50%;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(0, 191, 165, 0.4);
}

/* Override if it's also a holiday */
.mini-cal-day.is-holiday.has-class::after {
    display: none; /* Hide class dot on holidays */
}

CSS
/* --- SHARED HOLIDAY STYLING (Light Red Mode) --- */
/* Applies to Main Schedule Columns AND Admin/Dashboard Calendar Cells */

/* 1. Main Page Schedule Columns */
.day-column.is-holiday-mode {
    background-color: #fff5f8 !important; /* Very light red background */
    border-left-color: rgba(255, 23, 68, 0.1);
}

.day-column.is-holiday-mode .day-header {
    background-color: #ffebee !important; /* Slightly darker red for header */
    color: #c62828 !important; /* Red text */
}

/* 2. Admin & Dashboard Calendar Cells */
.calendar-day.is-holiday-mode {
    background-color: #fff5f8 !important;
    color: #c62828 !important;
    border: 1px solid rgba(255, 23, 68, 0.1);
}

.calendar-day.is-holiday-mode .day-number {
    color: #c62828 !important;
    font-weight: 800;
}

/* Add a visual badge for the schedule header */
.holiday-badge {
    display: block;
    font-size: 0.7rem;
    margin-top: 2px;
    color: #ef5350;
    font-weight: normal;
}