/* Inzira - Modern Education Platform Styles */

/* Navy Blue Brand Theme — overrides Bootstrap primary.
   Single navy primary used app-wide for buttons, links, badges and accents;
   the lighter shade is the hover. This keeps every surface on one navy instead
   of mixing navy chrome with lighter brand-blue components. */
:root {
    --bs-primary: #0f2d5a;
    --bs-primary-rgb: 15, 45, 90;
    --bs-link-color: #0f2d5a;
    --bs-link-hover-color: #1a5a9a;

    /* ── Design tokens ─────────────────────────────────────────────────────
       Single source of truth for the palette, type scale, spacing, radius and
       shadows. Prefer these variables over hard-coded values in new markup. */

    /* Colour */
    --color-navy:        #0f2d5a;   /* primary — nav chrome, buttons, accents */
    --color-navy-hover:  #1a5a9a;   /* lighter hover */
    --color-navy-deep:   #09203f;   /* gradient end / footer */
    --color-success:     #28a745;
    --color-warning:     #ffc107;
    --color-danger:      #dc3545;
    --color-info:        #17a2b8;
    --color-text:        #1a2e44;   /* primary text */
    --color-text-muted:  #6c757d;
    --color-surface:     #ffffff;
    --color-bg:          #f4f6f9;
    --color-border:      #e9ecef;

    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-xs:   0.75rem;   /* meta, badges */
    --font-size-sm:   0.875rem;  /* secondary text */
    --font-size-base: 1rem;      /* body */
    --font-size-lg:   1.125rem;  /* lead / sub-heading */
    --font-size-h4:   1.25rem;
    --font-size-h3:   1.5rem;
    --font-size-h2:   2rem;
    --font-size-h1:   2.5rem;
    --line-height-base: 1.6;

    /* Spacing scale (4px base) */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Radius & shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

/* Type-scale utility classes (opt-in; map to the tokens above) */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-base);
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    background: var(--color-navy);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    color: white !important;
    font-weight: bold;
    font-size: var(--font-size-h3);
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero {
    background: var(--color-navy);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: var(--color-navy);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    border: none;
}

/* Buttons */
.btn-primary {
    background: var(--color-navy);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 114, 182, 0.4);
}

.btn-secondary {
    background: var(--color-text-muted);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.btn-success {
    background: var(--color-success);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.btn-danger {
    background: var(--color-danger);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

/* --- Re-theme Bootstrap "info" (cyan) to the app navy ------------------------
   Recolor only — changes NO markup/content and keeps each element's shape. This
   brings every stray cyan button/badge/background/border/icon onto the navy
   theme. Semantic `.alert-info` notices and chart colors are left untouched. */
.btn-info {
    background-color: var(--color-navy) !important;
    border-color: var(--color-navy) !important;
    color: #fff !important;
}
.btn-info:hover, .btn-info:focus, .btn-info:active {
    background-color: #1a5a9a !important;   /* navy hover shade */
    border-color: #1a5a9a !important;
    color: #fff !important;
}
.btn-outline-info {
    color: var(--color-navy) !important;
    border-color: var(--color-navy) !important;
}
.btn-outline-info:hover, .btn-outline-info:focus, .btn-outline-info:active {
    background-color: var(--color-navy) !important;
    border-color: var(--color-navy) !important;
    color: #fff !important;
}
.text-info { color: var(--color-navy) !important; }
.border-info { border-color: var(--color-navy) !important; }
.bg-info { background-color: var(--color-navy) !important; }
/* Cyan badges default to dark text; on navy they need light text. */
.badge.bg-info, .bg-info.badge { color: #fff !important; }
/* Info notices: soft navy tint instead of Bootstrap's blue (stays light/readable). */
.alert-info {
    color: #0f2d5a;
    background-color: #e8eef5;
    border-color: #c3d2e6;
}
.alert-info .alert-link { color: #0a2145; }

/* Module lesson-content headings — bold and visually distinct so a student can
   clearly see where one section ends and the next begins. Applies wherever content
   renders (module learn page, course-detail accordion, previews) — consistent
   across every course. */
.module-content h1, .module-content h2, .module-content h3,
.module-content h4, .module-content h5, .module-content h6 {
    color: #0f2d5a;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}
.module-content h1 { font-size: 1.7rem; }
/* Major section headers get a divider rule so transitions read at a glance. */
.module-content h2 { font-size: 1.5rem; padding-bottom: 0.3rem; border-bottom: 2px solid #dbe3ef; }
.module-content h3 { font-size: 1.3rem; padding-bottom: 0.25rem; border-bottom: 1px solid #e6ecf5; }
.module-content h4 { font-size: 1.15rem; }
/* Sub-headings within a section: bold and set-off, but subordinate to the header. */
.module-content h5, .module-content h6 {
    font-size: 1.02rem;
    font-weight: 600;
    color: #1a5a9a;
    margin-top: 1.6rem;
    margin-bottom: 0.55rem;
}
/* First heading in a block shouldn't push a big gap at the very top. */
.module-content > :first-child { margin-top: 0; }

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid var(--color-border);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-navy);
    box-shadow: 0 0 0 0.2rem rgba(41, 114, 182, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Tutor Cards */
.tutor-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.tutor-card:hover {
    transform: translateY(-5px);
}

.tutor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-navy);
}

.tutor-rating {
    color: var(--color-warning);
    font-size: 1.1rem;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    height: 200px;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Profile Section */
.profile-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-navy);
}

/* Dashboard */
.dashboard-stats {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: var(--font-size-h1);
    font-weight: bold;
    color: var(--color-navy);
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: #343a40;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: var(--font-size-h2);
    }
    
    .hero p {
        font-size: var(--font-size-base);
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-navy);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Utility Classes */
.text-gradient {
    background: var(--color-navy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--color-navy);
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.rounded-custom {
    border-radius: var(--radius-lg);
}

/* ============================================
   PROFESSIONAL TUTOR DASHBOARD STYLES
   ============================================ */

/* Tutor Dashboard Container */
.tutor-dashboard {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Professional Header */
.tutor-header {
    background: var(--color-navy);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tutor-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin: 0;
    color: white;
}

.tutor-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
}

.tutor-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulse 2s infinite;
}

.status-text {
    font-weight: 500;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Performance Metrics Dashboard */
.metrics-dashboard {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

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

.metrics-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}

.metrics-controls {
    margin-left: auto;
}

.metrics-period {
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

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

.metric-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 5px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.metric-card.primary {
    border-left-color: var(--color-navy);
}

.metric-card.success {
    border-left-color: var(--color-success);
}

.metric-card.info {
    border-left-color: var(--color-info);
}

.metric-card.warning {
    border-left-color: var(--color-warning);
}

.metric-icon {
    font-size: var(--font-size-h1);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.metric-card.primary .metric-icon {
    color: var(--color-navy);
}

.metric-card.success .metric-icon {
    color: var(--color-success);
}

.metric-card.info .metric-icon {
    color: var(--color-info);
}

.metric-card.warning .metric-icon {
    color: var(--color-warning);
}

.metric-value {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin: 0;
    color: var(--color-navy);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.metric-trend.positive {
    color: var(--color-success);
}

.metric-trend.negative {
    color: var(--color-danger);
}

/* Tutor Sidebar */
.tutor-sidebar {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sidebar-action:hover {
    background: #f8f9fa;
    color: var(--color-navy);
    text-decoration: none;
    border-color: var(--color-border);
}

.sidebar-action.primary {
    background: var(--color-navy);
    color: white;
}

.sidebar-action.primary:hover {
    background: var(--color-navy);
    color: white;
    transform: translateY(-2px);
}

/* Tutor Tabs */
.tutor-tabs {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tutor-nav-tabs {
    background: #f8f9fa;
    border-bottom: 2px solid var(--color-border);
    padding: 0 1rem;
    margin: 0;
}

.tutor-nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 1rem 1.5rem;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tutor-nav-tabs .nav-link:hover {
    color: var(--color-navy);
    background: transparent;
    border: none;
}

.tutor-nav-tabs .nav-link.active {
    color: var(--color-navy);
    background: white;
    border: none;
    border-bottom: 3px solid var(--color-navy);
}

.tutor-tab-content {
    padding: 2rem;
}

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

.tab-header h3 {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}

.tab-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.course-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-navy);
}

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

.course-icon {
    width: 50px;
    height: 50px;
    background: var(--color-navy);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-h3);
}

.course-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-status.active {
    background: #d4edda;
    color: #155724;
}

.course-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.course-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-navy);
    margin: 0 0 0.5rem 0;
}

.course-subject {
    color: var(--color-text-muted);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.course-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.course-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-text-muted);
}

.empty-state i {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: var(--font-size-h3);
    margin-bottom: 0.5rem;
    color: var(--color-navy);
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Bookings Container */
.bookings-container {
    margin-top: 1rem;
}

.calendar-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 500px;
}

.bookings-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.bookings-sidebar h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.booking-list {
    margin-bottom: 2rem;
}

.booking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
}

.booking-time {
    font-weight: 600;
    color: var(--color-navy);
    min-width: 80px;
}

.booking-student {
    flex: 1;
}

.booking-student strong {
    display: block;
    color: var(--color-navy);
    font-size: 0.9rem;
}

.booking-student span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.booking-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.booking-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.booking-status.pending {
    background: #fff3cd;
    color: #856404;
}

.availability-settings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Messaging Container */
.messaging-container {
    margin-top: 1rem;
}

.student-list {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 500px;
}

.student-list h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.student-search {
    margin-bottom: 1rem;
}

.student-items {
    max-height: 400px;
    overflow-y: auto;
}

.student-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 0.5rem;
}

.student-item:hover {
    background: #f8f9fa;
}

.student-item.active {
    background: #e3f2fd;
    border: 2px solid var(--color-navy);
}

.student-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.student-info {
    flex: 1;
}

.student-info strong {
    display: block;
    color: var(--color-navy);
    font-size: 0.9rem;
}

.student-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.unread-count {
    background: var(--color-danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.chat-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 500px;
    display: flex;
    flex-direction: column;
}

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

.chat-header h4 {
    margin: 0;
    color: var(--color-navy);
}

.online-status {
    color: var(--color-success);
    font-size: 0.8rem;
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
}

.message-content {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--color-navy);
}

.message.sent .message-content {
    background: var(--color-navy);
    color: white;
}

.message-time {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
    text-align: right;
}

.message.received .message-time {
    text-align: left;
}

.chat-input {
    padding: 1rem 1.5rem;
    border-top: 2px solid var(--color-border);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    border: 2px solid var(--color-border);
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

.chat-input input:focus {
    border-color: var(--color-navy);
    box-shadow: none;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.analytics-chart {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.analytics-chart h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.analytics-chart canvas {
    max-height: 300px;
}

.satisfaction-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.satisfaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.metric-label {
    font-weight: 500;
    color: var(--color-navy);
}

.metric-value {
    font-weight: 600;
    color: var(--color-navy);
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating i {
    color: var(--color-warning);
}

.rating-value {
    margin-left: 0.5rem;
    font-weight: 600;
    color: var(--color-navy);
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--color-navy);
    background: #f8f9fa;
}

.upload-zone i {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.upload-zone h4 {
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.upload-zone input {
    display: none;
}

/* Responsive Design for Tutor Dashboard */
@media (max-width: 1200px) {
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .tutor-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .metrics-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metrics-controls {
        margin-left: 0;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tab-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .tutor-title {
        font-size: var(--font-size-h2);
    }
    
    .tutor-subtitle {
        font-size: var(--font-size-base);
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .tutor-nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tutor-tab-content {
        padding: 1rem;
    }
    
    .bookings-container .row {
        flex-direction: column;
    }
    
    .messaging-container .row {
        flex-direction: column;
    }
    
    .student-list,
    .chat-container {
        height: 300px;
    }
}

/* ── Mobile touch targets (WCAG 2.5.5 / kid-friendly) ──────────────────────
   On phones/tablets, make primary interactive elements at least ~44px tall and
   vertically centred so taps land reliably. Kept minimal to avoid bulk. */
@media (max-width: 768px) {
    .btn:not(.btn-sm):not(.btn-close),
    .form-control,
    .form-select {
        min-height: 44px;
    }
    .btn:not(.btn-sm):not(.btn-close) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* Nav items in the off-canvas drawers / tab lists */
    .snav-item, .tnav-item, .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
