﻿    /* ========================================
     1. GLOBAL & RESET
     ========================================
  */
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

    :root {
        --brand-green: #009d63;
        --brand-dark: #1e293b;
        --bg-light: #f1f5f9;
        --text-muted: #64748b;
        --sidebar-w: 260px;
    }

    body {
        font-family: 'Poppins', sans-serif;
        background-color: var(--bg-light);
        color: var(--brand-dark);
        overflow-x: hidden;
        margin: 0;
    }

    /* ========================================
     2. SIDEBAR & LAYOUT (PROFESSIONAL WHITE)
     ========================================
  */
    #wrapper {
        display: flex;
        width: 100%;
        align-items: stretch;
    }

    /* Sidebar Fixed Left - Clean White Theme */
    #sidebar-wrapper {
        min-width: var(--sidebar-w);
        max-width: var(--sidebar-w);
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background-color: #ffffff;
        /* Pure White */
        border-right: 1px solid #e2e8f0;
        /* Light elegant border */
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.03);
        /* Very soft shadow */
        z-index: 1000;
        transition: all 0.3s ease;
        overflow-y: hidden;
        display: flex;
        flex-direction: column;
    }

    #page-content-wrapper {
        width: 100%;
        margin-left: var(--sidebar-w);
        padding: 0;
        min-height: 100vh;
        transition: all 0.3s;
    }

    /* Navbar Fixed at Top */
    .navbar-light {
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        padding: 15px 30px;
        position: fixed;
        top: 0;
        left: var(--sidebar-w);
        right: 0;
        z-index: 999;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* Add padding to page content wrapper only */
    #page-content-wrapper {
        padding-top: 70px;
    }

    /* ========================================
     3. SIDEBAR ITEMS (CLEAN STYLE)
     ========================================
  */
    .sidebar-heading {
        padding: 1.8rem 1.5rem;
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--brand-green);
        /* Brand Color Heading */
        text-align: center;
        border-bottom: 1px dashed #e2e8f0;
        /* Dashed separator */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: #fafafa;
        /* Slight tint for header */
    }

    /* Standard Menu Items */
    .list-group-item {
        border: none;
        padding: 14px 25px;
        color: #64748b !important;
        /* Slate Gray Text */
        font-weight: 600;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        margin: 5px 15px;
        /* Spacing around items */
        border-radius: 8px;
        background: transparent !important;
        transition: all 0.3s ease;
        position: relative;
    }

    .list-group-item i {
        transition: transform 0.3s ease;
        color: #94a3b8;
        /* Muted icon */
        width: 25px;
        text-align: center;
        margin-right: 12px;
        font-size: 1.1rem;
    }

    /* Hover Effects */
    .list-group-item:hover {
        background-color: #f0fdf4 !important;
        /* Very light green bg */
        color: var(--brand-green) !important;
        padding-left: 30px;
        /* Slide right animation */
    }

    .list-group-item:hover i {
        transform: scale(1.2);
        color: var(--brand-green);
    }

    /* Active State */
    .list-group-item.active {
        background-color: var(--brand-green) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 157, 99, 0.25);
    }

    .list-group-item.active i {
        color: #ffffff;
    }

    /* --- SPECIAL STYLE FOR PROFILE BOX --- */
    /* This targets the Profile link specifically to make it look like a card */
    #link-profile {
        margin-top: auto;
        /* Pushes it to the bottom of the list area */
        margin-bottom: 10px;
        background: #f8fafc !important;
        /* Light Gray Box */
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 15px 20px;
    }

    #link-profile:hover {
        background: #ffffff !important;
        border-color: var(--brand-green);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        padding-left: 20px;
        /* No slide for profile box */
        transform: translateY(-2px);
        /* Lift up instead */
    }

    #link-profile.active {
        background: var(--brand-green) !important;
        border-color: var(--brand-green);
        color: white !important;
    }

    /* Logout Container */
    .logout-container {
        border-top: 1px solid #e2e8f0;
        padding: 20px;
        background: #ffffff;
    }

    .logout-container a {
        background: #fee2e2;
        /* Light Red BG */
        color: #ef4444 !important;
        /* Red Text */
        justify-content: center;
        transition: all 0.3s;
    }

    .logout-container a:hover {
        background: #ef4444;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    /* ========================================
     3. SIDEBAR ITEMS (BOLD & STYLISH)
     ========================================
  */

    /* --- NEW LOGO HEADER STYLE --- */
    .sidebar-heading {
        padding: 20px;
        background: #ffffff;
        border-bottom: 1px dashed #e2e8f0;
        margin-bottom: 10px;
    }

    .sidebar-brand-box {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        /* Light Green Shape */
        padding: 12px 15px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        /* Bouncy animation */
        border: 1px solid #bbf7d0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
        cursor: pointer;
        text-decoration: none;
    }

    .sidebar-brand-box:hover {
        background: linear-gradient(135deg, #009d63 0%, #007c4d 100%);
        /* Turn Green on Hover */
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 10px 20px rgba(0, 157, 99, 0.25);
        border-color: transparent;
    }

    /* Icon Style inside Box */
    .sidebar-brand-icon {
        color: #009d63;
        /* Green Icon */
        font-size: 1.6rem;
        transition: all 0.3s ease;
    }

    /* Text Style inside Box */
    .sidebar-brand-text {
        font-size: 1.1rem;
        font-weight: 800;
        /* Extra Bold */
        color: #1e293b;
        /* Dark Text */
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
        transition: all 0.3s ease;
        text-align: left;
    }

    /* Hover Effects: Text & Icon turn White */
    .sidebar-brand-box:hover .sidebar-brand-icon,
    .sidebar-brand-box:hover .sidebar-brand-text {
        color: #ffffff !important;
    }

    /* --- MENU ITEMS (BOLD & DARK) --- */
    .list-group-item {
        border: none;
        padding: 14px 25px;
        color: #1e293b !important;
        /* Dark Black/Navy Text for Visibility */
        font-weight: 700;
        /* Bold Font */
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        margin: 5px 15px;
        border-radius: 8px;
        background: transparent !important;
        transition: all 0.3s ease;
    }

    .list-group-item i {
        transition: transform 0.3s ease;
        color: #64748b;
        /* Slightly lighter icon */
        width: 25px;
        text-align: center;
        margin-right: 12px;
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* Hover Effects */
    .list-group-item:hover {
        background-color: #f0fdf4 !important;
        color: var(--brand-green) !important;
        padding-left: 30px;
    }

    .list-group-item:hover i {
        transform: scale(1.2);
        color: var(--brand-green);
    }

    /* Active State */
    .list-group-item.active {
        background-color: var(--brand-green) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 157, 99, 0.25);
    }

    .list-group-item.active i {
        color: #ffffff;
    }

    /* Profile Box Style */
    #link-profile {
        margin-top: auto;
        margin-bottom: 10px;
        background: #f1f5f9 !important;
        /* Slightly darker gray box */
        border: 1px solid #cbd5e1;
        color: #0f172a !important;
        /* Deep black text */
    }

    #link-profile:hover {
        background: #ffffff !important;
        border-color: var(--brand-green);
    }

    #link-profile.active {
        background: var(--brand-green) !important;
        border-color: var(--brand-green);
        color: white !important;
    }

    /* Logout Container */
    .logout-container {
        border-top: 1px solid #e2e8f0;
        padding: 20px;
        background: #ffffff;
    }

    .logout-container a {
        background: #fee2e2;
        color: #dc2626 !important;
        /* Darker Red */
        font-weight: 700;
        justify-content: center;
        transition: all 0.3s;
    }

    .logout-container a:hover {
        background: #ef4444;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

    /* ========================================
     4. WELCOME CARD & ANIMATIONS
     ========================================
  */
    .welcome-card {
        background: linear-gradient(135deg, #009d63 0%, #059669 100%);
        border-radius: 20px;
        padding: 50px 30px;
        text-align: center;
        margin-bottom: 30px;
        position: relative;
        overflow: hidden;
        color: #fff;
        border: none;
        box-shadow: 0 10px 25px rgba(0, 157, 99, 0.2);
    }

    .welcome-content-layer {
        position: relative;
        z-index: 5;
    }

    .welcome-intro {
        font-size: 1.2rem;
        transition: all 0.3s;
    }

    .welcome-name {
        font-size: 2.8rem;
        font-weight: 800;
        margin: 10px 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .welcome-name:hover {
        font-weight: 900;
        transform: scale(1.05);
    }

    .welcome-subtitle {
        font-size: 1.1rem;
        opacity: 0.75;
    }

    /* Infinite Wave Animation */
    .wave-container {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        z-index: 3;
        opacity: 0.3;
        line-height: 0;
        overflow: hidden;
    }

    .wave-svg {
        position: absolute;
        bottom: 0;
        left: 0;
        animation: infiniteWave 20s linear infinite;
    }

    .wave-path {
        fill: #ffffff !important;
    }

    @keyframes infiniteWave {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-1440px);
        }
    }

    /* Bubbles */
    .circles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        z-index: 1;
    }

    .circles li {
        position: absolute;
        display: block;
        list-style: none;
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.2);
        animation: animate 25s linear infinite;
        bottom: -150px;
        border-radius: 50%;
    }

    .circles li:nth-child(1) {
        left: 25%;
        width: 80px;
        height: 80px;
        animation-delay: 0s;
    }

    .circles li:nth-child(2) {
        left: 10%;
        width: 20px;
        height: 20px;
        animation-delay: 2s;
        animation-duration: 12s;
    }

    @keyframes animate {
        0% {
            transform: translateY(0) rotate(0deg);
            opacity: 1;
        }

        100% {
            transform: translateY(-1000px) rotate(720deg);
            opacity: 0;
        }
    }

    /* ========================================
     5. GENERAL UI
     ========================================
  */
    .info-badge {
        background: rgba(255, 255, 255, 0.2);
        padding: 10px 25px;
        border-radius: 30px;
        font-weight: 600;
        font-size: 1rem;
        margin: 5px;
        display: inline-flex;
        align-items: center;
        transition: all 0.3s ease;
    }

    .info-badge:hover {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
    }

    .info-badge i {
        margin-right: 8px;
    }

    .notice-card,
    .card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
        margin-bottom: 20px;
        transition: all 0.3s ease;
    }

    .notice-card:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 15px rgba(0, 157, 99, 0.2);
    }

    .notice-card {
        border-left: 5px solid var(--brand-green);
    }

    .notice-card p.text-dark {
        font-size: 1rem;
    }

    .notice-card .text-end {
        text-align: center !important;
    }

    /* Login Page */
    #login-section {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #f8fafc;
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #login-section.d-none {
        display: none !important;
    }

    .login-card {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        width: 100%;
        max-width: 380px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        text-align: center;
        border: 1px solid #e2e8f0;
    }

    .glass-btn {
        width: 100%;
        padding: 12px;
        background: var(--brand-green);
        color: white;
        border: none;
        border-radius: 50px;
        font-weight: 600;
        margin-top: 15px;
    }

    .glass-input {
        width: 100%;
        padding: 12px;
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        outline: none;
    }

    .glass-input:focus {
        border-color: var(--brand-green);
        background: #fff;
    }

    /* Mobile Responsive Improvements */
    @media (max-width: 768px) {
        #sidebar-wrapper {
            margin-left: calc(-1 * var(--sidebar-w));
            transition: margin 0.3s ease;
        }

        #page-content-wrapper {
            margin-left: 0;
            transition: margin 0.3s ease;
        }

        #wrapper.toggled #sidebar-wrapper {
            margin-left: 0;
        }

        .welcome-card {
            padding: 30px 20px;
        }

        .welcome-name {
            font-size: 2.2rem;
        }

        .info-badge {
            font-size: 0.9rem;
            padding: 8px 15px;
        }

        .notice-card {
            padding: 15px;
        }

        .list-group-item {
            font-size: 0.95rem;
            padding: 12px 15px;
        }

        /* Navbar adjustment for mobile */
        .navbar-light {
            left: 0;
        }
    }

    /* Added for Resources */
    .resource-box {
        margin-bottom: 40px;
        padding: 25px;
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    }

    .resource-header {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 20px;
        color: var(--brand-dark);
        padding-bottom: 12px;
        border-bottom: 2px solid #f1f5f9;
    }

    .resource-btn {
        display: block;
        padding: 15px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        text-decoration: none;
        color: var(--text-muted);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .resource-btn:hover {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        color: var(--brand-green);
        border-color: var(--brand-green);
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 8px 20px rgba(0, 157, 99, 0.2);
    }

    .resource-btn:active {
        transform: translateY(-2px) scale(1.01);
    }

    /* Resource Library - Original Design */
    .resource-box {
        margin-bottom: 40px;
        padding: 25px;
        background: #f8fafc;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    }

    .resource-header {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 20px;
        color: #1e293b;
        padding-bottom: 12px;
        border-bottom: 2px solid #e2e8f0;
        display: flex;
        align-items: center;
    }

    .resource-header i {
        color: #f59e0b;
        margin-right: 10px;
    }

    .resource-btn {
        display: block;
        padding: 18px 20px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .resource-btn:hover {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        border-color: #009d63;
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 8px 20px rgba(0, 157, 99, 0.2);
    }

    .resource-btn:active {
        transform: translateY(-2px) scale(1.01);
    }

    .resource-btn-inner {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .resource-pdf-icon {
        font-size: 1.6rem;
        color: #dc2626;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .resource-btn:hover .resource-pdf-icon {
        transform: scale(1.15);
    }

    .resource-link-text {
        font-weight: 700;
        font-size: 1rem;
        color: #1e293b;
        transition: all 0.3s ease;
    }

    .resource-btn:hover .resource-link-text {
        color: #009d63;
        transform: scale(1.02);
    }

    .resource-item {
        position: relative;
    }

    .resource-delete-inline {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #fff;
        border: 1px solid #e2e8f0;
        color: #94a3b8;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        opacity: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .resource-item:hover .resource-delete-inline {
        opacity: 1;
    }

    .resource-delete-inline:hover {
        color: #dc2626;
        border-color: #dc2626;
        background: #fee2e2;
    }

    /* ============================
       CLASS SCHEDULE STYLES
       ============================ */
    .schedule-section {
        background: #fff;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        padding: 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    }

    .schedule-card {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
    }

    /* Month Picker */
    .month-picker button {
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #current-month-display {
        min-width: 150px;
        text-align: center;
        font-size: 1.1rem;
        color: #1e293b;
    }


    /* Class Schedule Table */
    .class-schedule-table {
        margin: 0;
        border: 1px solid #e2e8f0;
        border-top: none;
        border-radius: 0 0 12px 12px;
        overflow: hidden;
    }

    .class-schedule-table thead th {
        background: var(--brand-green);
        color: #fff;
        font-weight: 600;
        padding: 14px 15px;
        font-size: 0.9rem;
        border: none;
        text-align: center;
    }

    .class-schedule-table thead {
        border-radius: 12px 12px 0 0;
        overflow: hidden;
    }

    .class-schedule-table tbody td {
        padding: 15px;
        vertical-align: middle;
        border: 1px solid #e2e8f0;
        text-align: center;
        transition: all 0.3s ease;
    }

    /* Row hover effects */
    .class-row {
        transition: all 0.3s ease;
    }

    .class-row:hover {
        transform: scale(1.01);
        box-shadow: 0 4px 15px rgba(0, 157, 99, 0.15);
        position: relative;
        z-index: 1;
    }

    .class-row:hover .hover-green {
        color: #009d63 !important;
        font-weight: 600;
    }

    /* Hidden rows for View More functionality */
    .class-row-hidden {
        display: none;
    }

    /* Row Types */
    .today-row {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
        border-left: 4px solid #009d63;
    }

    .pending-row {
        background: #fef2f2 !important;
        border-left: 4px solid #dc2626;
    }

    .future-row {
        background: #f8fafc !important;
        border-left: 4px solid #94a3b8;
    }

    /* View Full Month Button */
    .view-full-month-btn {
        border-radius: 50px;
        padding: 10px 25px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .view-full-month-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 157, 99, 0.3);
    }

    /* Batch Badge */
    .batch-badge {
        background: #e0f2fe;
        color: #0369a1;
        padding: 5px 12px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 0.85rem;
    }

    /* Mark Done Button */
    .mark-done-btn {
        border-radius: 50px;
        padding: 6px 15px;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }

    .mark-done-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 157, 99, 0.3);
    }

    /* Routine Cards */
    .routine-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 30px 20px;
        text-align: center;
        transition: all 0.3s ease;
        flex: 1;
        min-width: 200px;
        max-width: 100%;
    }

    .routine-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 157, 99, 0.15);
        border-color: #009d63;
    }

    .routine-icon {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #009d63 0%, #059669 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
    }

    .routine-icon i {
        color: #fff;
        font-size: 2rem;
    }

    .routine-batch {
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 8px;
        font-size: 1.1rem;
    }

    /* Stats Cards */
    .stats-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
    }

    .stats-batch {
        font-weight: 700;
        color: #0369a1;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e0f2fe;
    }

    .stats-table {
        margin: 0;
    }

    .stats-table th {
        font-weight: 600;
        background: #f8fafc;
        font-size: 0.85rem;
    }

    .stats-table td {
        font-size: 0.9rem;
    }

    /* Added for Teacher Cards */
    .teacher-card {
        text-align: center;
    }

    .profile-img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
    }

    .dept-badge {
        background: #e0f2fe;
        color: #0369a1;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .contact-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        padding: 10px;
        border-top: 1px solid #f1f5f9;
    }

    .copy-icon {
        cursor: pointer;
        color: var(--text-muted);
    }

    .copy-icon:hover {
        color: var(--brand-green);
    }

    /* Badge for Urgent Notices */
    .badge-urgent {
        background: #ef4444;
        color: white;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: 0.75rem;
    }

    /* Meeting Row */
    .meeting-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .meeting-title {
        font-weight: 600;
    }

    .btn-meeting {
        padding: 8px 20px;
        background: var(--brand-green);
        color: white;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 500;
    }

    .btn-meeting:hover {
        background: #007c4d;
    }

    /* Policy Button */
    .policy-custom-btn {
        display: block;
        padding: 15px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        text-decoration: none;
        color: var(--text-muted);
    }

    .policy-custom-btn:hover {
        background: #fee2e2;
        color: #b91c1c;
    }

    /* ========================================
     MESSAGES SECTION - MODERN SPLIT PANEL
     ======================================== */

    /* Messages Wrapper */
    .messages-wrapper {
        display: flex;
        gap: 0;
        height: 600px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    /* Left Sidebar */
    .messages-sidebar {
        width: 350px;
        border-right: 1px solid #e2e8f0;
        display: flex;
        flex-direction: column;
        background: #f8fafc;
    }

    /* Message Tabs */
    .message-tabs {
        display: flex;
        border-bottom: 1px solid #e2e8f0;
        background: #fff;
    }

    .message-tab {
        flex: 1;
        padding: 15px 20px;
        border: none;
        background: transparent;
        color: #64748b;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

    .message-tab:hover {
        background: #f8fafc;
        color: var(--brand-green);
    }

    .message-tab.active {
        color: var(--brand-green);
        background: #f0fdf4;
    }

    .message-tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--brand-green);
        animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
        from {
            transform: scaleX(0);
        }

        to {
            transform: scaleX(1);
        }
    }

    /* Message List */
    .message-list {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
    }

    .message-list::-webkit-scrollbar {
        width: 6px;
    }

    .message-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

    .message-list::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    /* Message List Item */
    .message-list-item {
        padding: 15px;
        margin-bottom: 8px;
        border-radius: 10px;
        background: #fff;
        border: 1px solid #e2e8f0;
        cursor: pointer;
        transition: all 0.3s ease;
        animation: fadeInUp 0.4s ease;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .message-list-item:hover {
        background: #f0fdf4;
        border-color: var(--brand-green);
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(0, 157, 99, 0.1);
    }

    .message-list-item.active {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        border-color: var(--brand-green);
        box-shadow: 0 4px 12px rgba(0, 157, 99, 0.15);
    }

    .message-sender {
        font-weight: 700;
        color: #1e293b;
        font-size: 0.95rem;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .message-preview {
        color: #64748b;
        font-size: 0.85rem;
        margin-bottom: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .message-time {
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: 500;
    }

    /* Right Content Panel */
    .messages-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        background: #fff;
        position: relative;
    }

    /* Empty State */
    .empty-message-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 40px;
        text-align: center;
    }

    .empty-message-state i {
        opacity: 0.3;
    }

    /* Compose Form Panel */
    #compose-form-panel {
        display: flex;
        flex-direction: column;
        height: 100%;
        animation: slideInRight 0.3s ease;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .compose-header {
        padding: 20px 25px;
        border-bottom: 1px solid #e2e8f0;
        background: #f8fafc;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .compose-header h6 {
        color: #1e293b;
    }

    .btn-close-compose {
        border: none;
        background: #fff;
        color: #64748b;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-close-compose:hover {
        background: #fee2e2;
        color: #dc2626;
        transform: rotate(90deg);
    }

    .compose-body {
        padding: 25px;
        overflow-y: auto;
        flex: 1;
    }

    /* Message Detail Panel */
    #message-detail-panel {
        height: 100%;
        overflow-y: auto;
    }

    .message-detail-header {
        padding: 20px 25px;
        border-bottom: 1px solid #e2e8f0;
        background: #f8fafc;
    }

    .message-detail-sender {
        font-weight: 700;
        font-size: 1.1rem;
        color: #1e293b;
        margin-bottom: 5px;
    }

    .message-detail-time {
        color: #64748b;
        font-size: 0.85rem;
    }

    .message-detail-body {
        padding: 25px;
        line-height: 1.8;
        color: #334155;
        font-size: 0.95rem;
    }

    .message-attachment-section {
        padding: 15px 25px;
        border-top: 1px solid #e2e8f0;
        background: #f8fafc;
    }

    .attachment-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        color: var(--brand-green);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .attachment-link:hover {
        background: #f0fdf4;
        border-color: var(--brand-green);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 157, 99, 0.15);
    }

    /* Direction Icons */
    .icon-inbox {
        color: #10b981;
    }

    .icon-sent {
        color: #3b82f6;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .messages-wrapper {
            flex-direction: column;
            height: auto;
            min-height: 500px;
        }

        .messages-sidebar {
            width: 100%;
            border-right: none;
            border-bottom: 1px solid #e2e8f0;
            max-height: 250px;
        }

        .messages-content {
            min-height: 400px;
        }
    }

    /* ========================================
     MESSAGES - CORRECTED SINGLE PANEL
     ======================================== */

    .messages-container-box {
        background: #fff;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        overflow: hidden;
        min-height: 500px;
    }

    .messages-tabs-row {
        display: flex;
        border-bottom: 1px solid #e5e7eb;
        background: #f9fafb;
        padding: 10px 15px;
        gap: 10px;
    }

    .msg-tab {
        padding: 8px 20px;
        border: none;
        background: transparent;
        color: #6b7280;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .msg-tab:hover {
        background: #e5e7eb;
        color: #009d63;
    }

    .msg-tab.active {
        background: transparent;
        color: #00a65a;
        border-bottom: 2px solid #00a65a;
        border-radius: 0;
    }

    .messages-content-area {
        padding: 20px;
        min-height: 450px;
    }

    .msg-list-item {
        padding: 15px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        background: #fff;
    }

    .msg-list-item:hover {
        background: #f9fafb;
        border-color: #009d63;
        box-shadow: 0 2px 8px rgba(0, 157, 99, 0.1);
    }

    /* Modal styles */
    .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        align-items: center;
        justify-content: center;
    }

    .modal-overlay.show {
        display: flex !important;
    }

    .compose-modal {
        background: #fff;
        border-radius: 8px;
        width: 90%;
        max-width: 500px;
        max-height: 90vh;
        overflow: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: modalSlideIn 0.3s ease;
    }

    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-header-custom {
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .btn-modal-close {
        border: none;
        background: transparent;
        font-size: 1.2rem;
        color: #6b7280;
        cursor: pointer;
        width: 30px;
        height: 30px;
        border-radius: 4px;
        transition: all 0.2s ease;
        padding: 0;
    }

    .btn-modal-close:hover {
        background: #fee2e2;
        color: #dc2626;
    }

    .modal-body-custom {
        padding: 20px;
    }

    .modal-footer-custom {
        padding: 15px 20px;
        border-top: 1px solid #e5e7eb;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }



    /* ========================================
     6. TEACHER DIRECTORY STYLES (UPDATED)
     ========================================
  */
    .teacher-card {
        transition: all 0.4s ease;
        overflow: hidden;
        border: 1px solid #f1f5f9;
        height: 100%;
        /* Equal height cards */
    }

    .teacher-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 157, 99, 0.15) !important;
        border-color: var(--brand-green);
    }

    /* Image Style */
    .teacher-img-container {
        position: relative;
        width: 120px;
        height: 120px;
        margin: 0 auto 15px;
    }

    .profile-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #f8fafc;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s ease;
    }

    .teacher-card:hover .profile-img {
        transform: scale(1.1);
        border-color: #d1fae5;
    }

    /* ID Badge (Gap Reduced) */
    .id-badge-box {
        display: inline-block;
        background: #334155;
        color: #fff;
        padding: 3px 10px;
        /* Slightly compact */
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.8rem;
        margin-bottom: 5px;
        /* Gap reduced from 15px to 5px */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        letter-spacing: 0.5px;
    }

    /* Name Animation */
    .teacher-name {
        font-size: 1.6rem;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .teacher-name:hover {
        color: var(--brand-green);
        transform: scale(1.08);
        text-shadow: 0 2px 10px rgba(0, 157, 99, 0.2);
    }

    /* Designation & Dept */
    .designation-text {
        color: #64748b;
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .dept-badge-styled {
        background: #e0f2fe;
        color: #0284c7;
        padding: 5px 15px;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
        margin-bottom: 20px;
    }

    /* About Text (Full Text + Left Align + Hover Box) */
    .teacher-about-text {
        font-size: 0.9rem;
        color: #475569;
        line-height: 1.6;
        margin-bottom: 20px;
        padding: 10px;
        /* Padding for the box effect */
        font-style: italic;
        text-align: left !important;
        /* Force Left Align */
        border: 1px solid transparent;
        /* Invisible border initially */
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    /* Hover effect for About Text */
    .teacher-about-text:hover,
    .teacher-about-text:active {
        border-color: var(--brand-green);
        /* Green Border */
        box-shadow: 0 4px 15px rgba(0, 157, 99, 0.1);
        /* Soft Shadow */
        background-color: #fcfdfd;
        /* Very light bg */
        cursor: pointer;
    }

    /* Contact Boxes */
    .contact-box-styled {
        background: #f8fafc;
        padding: 12px 15px;
        border-radius: 10px;
        margin-top: 10px;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .contact-box-styled:hover {
        background: #f0fdf4;
        border-color: var(--brand-green);
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(0, 157, 99, 0.1);
    }

    .contact-text {
        font-weight: 600;
        color: #334155;
        font-size: 0.95rem;
    }

    .contact-icon {
        color: var(--brand-green);
        font-size: 1.1rem;
    }


    /* ========================================
     7. POLICY & MEETING MINUTES STYLES (FINAL)
     ========================================
  */
    .policy-card-styled {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .policy-card-styled:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 157, 99, 0.1) !important;
        border-color: var(--brand-green);
    }

    /* Date Badge (Updated: Inline Style) */
    .policy-date-badge {
        background: #f0fdf4;
        color: #15803d;
        font-size: 0.85rem;
        font-weight: 600;
        padding: 6px 15px;
        border-radius: 20px;
        border: 1px solid #dcfce7;
        white-space: nowrap;
        margin-right: 15px;
        /* Gap between date and button */
    }

    /* Wrapper for Date + Button */
    .policy-action-wrapper {
        display: flex;
        align-items: center;
    }

    /* Left Side: Icon + Text */
    .policy-left-content {
        display: flex;
        align-items: center;
        flex-grow: 1;
        margin-right: 20px;
    }

    .policy-icon-box {
        background: #dcfce7;
        color: var(--brand-green);
        width: 50px;
        height: 50px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .policy-name-text {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 2px;
    }

    .policy-title-text {
        font-size: 0.9rem;
        color: #64748b;
        font-weight: 500;
        line-height: 1.4;
    }

    /* Button Style */
    .btn-view-doc {
        background-color: var(--brand-green);
        color: white;
        border-radius: 50px;
        padding: 8px 25px;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 4px 6px rgba(0, 157, 99, 0.2);
        transition: all 0.3s ease;
    }

    .btn-view-doc:hover {
        background-color: #007c4d;
        color: white;
        box-shadow: 0 6px 12px rgba(0, 157, 99, 0.3);
        transform: translateY(-2px);
    }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
        .policy-card-styled {
            flex-direction: column;
            align-items: flex-start;
        }

        .policy-left-content {
            margin-bottom: 15px;
            width: 100%;
            margin-right: 0;
        }

        .policy-action-wrapper {
            width: 100%;
            justify-content: space-between;
            /* Date left, Button right */
            margin-top: 5px;
        }

        .policy-date-badge {
            font-size: 0.8rem;
            margin-right: 0;
        }
    }


    /* ========================================
     8. MY PROFILE STYLES (NEW)
     ========================================
  */
    /* Profile Header Card */
    .profile-header-card {
        background: #fff;
        border-radius: 15px;
        padding: 30px;
        display: flex;
        align-items: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border: 1px solid #e2e8f0;
        margin-bottom: 25px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 4px solid #f0fdf4;
        object-fit: cover;
        margin-right: 25px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .profile-info h3 {
        font-weight: 800;
        color: #1e293b;
        margin: 0;
    }

    .profile-badge {
        background: #e0f2fe;
        color: #0284c7;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 700;
        display: inline-block;
        margin-top: 5px;
    }

    /* Today's Task Box */
    .task-box-modern {
        background: linear-gradient(135deg, #009d63, #007c4d);
        color: white;
        border-radius: 15px;
        padding: 25px;
        height: 100%;
        box-shadow: 0 10px 25px rgba(0, 157, 99, 0.2);
        position: relative;
        overflow: hidden;
    }

    .task-box-modern::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    /* Section Headers */
    .section-title-profile {
        font-size: 1.1rem;
        font-weight: 700;
        color: #334155;
        margin-bottom: 15px;
        border-left: 4px solid var(--brand-green);
        padding-left: 10px;
    }

    /* Schedule Table */
    .schedule-table-styled {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
        /* Space between rows */
    }

    .schedule-table-styled tr {
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
        transition: all 0.2s;
    }

    .schedule-table-styled tr:hover {
        transform: scale(1.01);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .schedule-table-styled td {
        padding: 15px;
        border: 1px solid #f1f5f9;
        border-width: 1px 0;
        /* Top and bottom borders only */
    }

    .schedule-table-styled td:first-child {
        border-left: 1px solid #f1f5f9;
        border-radius: 10px 0 0 10px;
        font-weight: 600;
        color: var(--brand-green);
    }

    .schedule-table-styled td:last-child {
        border-right: 1px solid #f1f5f9;
        border-radius: 0 10px 10px 0;
    }

    /* Info List */
    .info-list-item {
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }

    .info-icon-circle {
        width: 40px;
        height: 40px;
        background: #f1f5f9;
        color: #64748b;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
    }


    /* Task Header Flex Alignment */
    .task-header-flex {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .task-date-pill {
        background: rgba(255, 255, 255, 0.2);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        white-space: nowrap;
    }




    /* ========================================
     9. MOBILE & TABLET RESPONSIVENESS (FINAL)
     ========================================
  */

    /* Mobile Sidebar Handling */
    @media (max-width: 768px) {

        /* Hide Sidebar by default on mobile */
        #sidebar-wrapper {
            margin-left: -260px;
            position: fixed;
            z-index: 9999;
            height: 100%;
            transition: all 0.3s ease;
            box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        }

        /* Show Sidebar when Toggled */
        #wrapper.toggled #sidebar-wrapper {
            margin-left: 0;
        }

        /* Dim Background Overlay when Sidebar is open */
        #wrapper.toggled #page-content-wrapper::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            /* Dark overlay */
            z-index: 9990;
            /* Behind sidebar but above content */
            backdrop-filter: blur(2px);
        }

        /* Adjust Content Margins */
        #page-content-wrapper {
            margin-left: 0;
            width: 100%;
        }

        /* Dashboard Welcome Card */
        .welcome-card {
            padding: 30px 15px;
            border-radius: 15px;
        }

        .welcome-name {
            font-size: 2rem;
            /* Smaller font for mobile */
        }

        .info-badge {
            font-size: 0.85rem;
            padding: 8px 15px;
        }

        /* Profile Page Mobile Layout */
        .profile-header-card {
            flex-direction: column;
            text-align: center;
            padding: 20px;
        }

        .profile-avatar {
            margin-right: 0;
            margin-bottom: 15px;
            width: 80px;
            height: 80px;
        }

        .profile-info h3 {
            font-size: 1.5rem;
        }

        /* Task Box on Mobile */
        .task-box-modern {
            border-radius: 15px;
            margin-bottom: 10px;
        }

        .task-header-flex {
            align-items: center;
        }

        /* Policies & Buttons */
        .btn-view-doc {
            width: 100%;
            display: block;
            text-align: center;
            margin-top: 5px;
        }

        /* General Text */
        h2#page-title {
            font-size: 1.2rem;
        }
    }

    /* Tablet Specific Adjustments */
    @media (min-width: 769px) and (max-width: 1024px) {
        .profile-header-card {
            padding: 20px;
        }

        .welcome-name {
            font-size: 2.2rem;
        }
    }

    /* ========================================
     10. CLASS SCHEDULE PAGE STYLES
     ========================================
  */

    /* Section Title */
    .section-title-class {
        font-size: 1.2rem;
        font-weight: 700;
        color: #334155;
        margin-bottom: 20px;
        border-left: 4px solid var(--brand-green);
        padding-left: 12px;
    }

    /* Monthly Class Table */
    .monthly-class-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .monthly-class-table thead th {
        text-align: center;
        padding: 12px;
        color: var(--brand-dark);
        font-weight: 600;
        font-size: 0.95rem;
    }

    .class-row {
        background: #fff;
        border: 2px solid #bbf7d0;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .class-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 157, 99, 0.1);
        border-color: var(--brand-green);
    }

    .class-row td {
        padding: 15px;
        border: none;
        text-align: center;
    }

    .class-row td:first-child {
        border-radius: 10px 0 0 10px;
        font-weight: 600;
        color: var(--brand-green);
        text-align: center;
    }

    .class-row td:last-child {
        border-radius: 0 10px 10px 0;
        text-align: center;
    }

    /* Done/Completed Class Row */
    .class-row.done {
        opacity: 0.5;
        background: #f8fafc;
    }

    .class-row.done td {
        text-decoration: line-through;
        color: #94a3b8 !important;
    }

    .class-row.done:hover {
        transform: none;
        box-shadow: none;
    }

    /* Mark as Done Button */
    .mark-done-btn {
        background: var(--brand-green);
        color: white;
        border: none;
        padding: 6px 15px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mark-done-btn:hover {
        background: #007c4d;
        transform: scale(1.05);
    }

    .mark-done-btn.completed {
        background: #94a3b8;
        cursor: not-allowed;
    }

    .mark-done-btn.completed:hover {
        transform: none;
    }

    /* Pending Button (Red - for ADMIN only) */
    .mark-done-btn.pending-btn {
        background: #dc2626;
        color: white;
        animation: pulse-red 2s infinite;
    }

    .mark-done-btn.pending-btn:hover {
        background: #991b1b;
        transform: scale(1.05);
    }

    /* Pending Disabled (Red Locked - for non-admin users) */
    .mark-done-btn.pending-disabled {
        background: #dc2626;
        color: white;
        cursor: not-allowed;
        opacity: 0.7;
    }

    .mark-done-btn.pending-disabled:hover {
        transform: none;
        background: #dc2626;
    }

    /* Future Disabled Button (Gray - for future classes) */
    .mark-done-btn.future-disabled {
        background: #94a3b8;
        color: #64748b;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .mark-done-btn.future-disabled:hover {
        transform: none;
        background: #94a3b8;
    }

    /* Pending Row Highlight */
    .class-row.pending-row {
        border-color: #fca5a5;
        background: #fef2f2;
    }

    .class-row.pending-row:hover {
        border-color: #dc2626;
        box-shadow: 0 5px 15px rgba(220, 38, 38, 0.15);
    }

    /* Today's Class Row Highlight */
    .class-row.today-row {
        border-color: #86efac;
        background: #f0fdf4;
    }

    .class-row.today-row:hover {
        border-color: var(--brand-green);
    }

    /* Pulse Animation for Pending */
    @keyframes pulse-red {

        0%,
        100% {
            box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
        }

        50% {
            box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
        }
    }

    /* Fade Out Animation */
    @keyframes fadeOut {
        to {
            opacity: 0;
            transform: translateX(-20px);
        }
    }

    /* Checkbox Styling for Bulk Select */
    .row-checkbox {
        cursor: pointer;
        transform: scale(1.2);
    }

    #select-all-checkbox {
        cursor: pointer;
        transform: scale(1.2);
    }

    .selected-row {
        background-color: #f0fdf4 !important;
        border-left: 3px solid var(--brand-green);
    }

    /* Filter Section Styling */
    #pending-controls {
        background: #f8fafc;
        padding: 15px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
    }

    #pending-controls .form-select {
        border-color: #cbd5e1;
    }

    #pending-controls .form-select:focus {
        border-color: var(--brand-green);
        box-shadow: 0 0 0 0.25rem rgba(0, 157, 99, 0.1);
    }

    /* Batch Routine Cards */
    .routine-card {
        background: #fff;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .routine-card:hover {
        border-color: var(--brand-green);
        box-shadow: 0 8px 20px rgba(0, 157, 99, 0.15);
        transform: translateY(-3px);
    }

    .routine-card .batch-icon {
        font-size: 2.5rem;
        color: var(--brand-green);
    }

    .routine-card h6 {
        font-weight: 700;
        color: #1e293b;
        margin: 0;
    }

    .routine-card .btn-pdf {
        background: var(--brand-green);
        color: white;
        padding: 10px 25px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

    .routine-card .btn-pdf:hover {
        background: #007c4d;
        transform: scale(1.05);
    }

    /* Teacher Statistics Table */
    .stats-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        table-layout: fixed;
    }

    .stats-table thead {
        background: linear-gradient(135deg, var(--brand-green), #007c4d);
        color: white;
    }

    .stats-table th {
        padding: 15px;
        font-weight: 700;
        text-align: left;
        font-size: 0.9rem;
    }

    .stats-table tbody tr {
        border-bottom: 1px solid #f1f5f9;
        transition: all 0.3s ease;
    }

    .stats-table tbody tr:hover {
        background: #f0fdf4;
        box-shadow: inset 0 0 0 2px var(--brand-green);
        font-weight: 700;
    }

    .stats-table tbody tr:last-child {
        border-bottom: none;
    }

    .stats-table td {
        padding: 15px;
        color: #475569;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stats-table td:first-child {
        width: 60px;
        text-align: center;
        font-weight: 600;
        color: #94a3b8;
    }

    .stats-table td:nth-child(2) {
        width: auto;
    }

    .stats-table td:last-child {
        text-align: center;
        font-weight: 700;
        color: var(--brand-green);
        font-size: 1.1rem;
        width: 120px;
    }

    /* Batch Stats Wrapper */
    .batch-stats-wrapper {
        margin-bottom: 30px;
    }

    .batch-stats-wrapper h6 {
        background: #f1f5f9;
        padding: 12px 20px;
        border-radius: 8px;
        font-weight: 700;
        color: #334155;
        margin-bottom: 15px;
    }

    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #94a3b8;
    }

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .monthly-class-table {
            font-size: 0.85rem;
        }

        .class-row td {
            padding: 10px;
        }

        .routine-card {
            padding: 15px;
        }

        .stats-table {
            font-size: 0.85rem;
        }

        .stats-table th,
        .stats-table td {
            padding: 10px;
        }
    }

    /* ========================================
     11. ADMIN MODE TOGGLE SWITCH
     ========================================
  */
    .admin-toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 26px;
        margin: 0;
    }

    .admin-toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .admin-toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #cbd5e1;
        transition: 0.3s;
        border-radius: 26px;
    }

    .admin-toggle-slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .admin-toggle-switch input:checked+.admin-toggle-slider {
        background-color: var(--brand-green);
    }

    .admin-toggle-switch input:checked+.admin-toggle-slider:before {
        transform: translateX(24px);
    }

    .admin-toggle-slider:hover {
        box-shadow: 0 0 1px var(--brand-green);
    }

    /* ========================================
     12. ADMIN DASHBOARD
     ========================================
  */
    .admin-stat-card {
        background: white;
        border-radius: 16px;
        padding: 24px;
        display: flex;
        align-items: center;
        gap: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        border: 1px solid #f0f0f0;
    }

    .admin-stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .stat-icon {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: white;
    }

    .stat-number {
        font-size: 2rem;
        font-weight: 700;
        margin: 0;
        color: #1a202c;
    }

    .stat-label {
        font-size: 0.9rem;
        color: #718096;
        margin: 0;
        font-weight: 500;
    }

    .admin-section-card {
        background: white;
        border-radius: 16px;
        padding: 28px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid #f0f0f0;
    }

    .admin-section-title {
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 2px solid #f0f0f0;
    }

    .admin-audit-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .admin-audit-table thead th {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 14px 16px;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .admin-audit-table thead th:first-child {
        border-top-left-radius: 10px;
    }

    .admin-audit-table thead th:last-child {
        border-top-right-radius: 10px;
    }

    .admin-audit-table tbody td {
        padding: 14px 16px;
        border-bottom: 1px solid #f0f0f0;
        color: #4a5568;
        font-size: 0.9rem;
    }

    .admin-audit-table tbody tr:hover {
        background: #f7fafc;
    }

    .admin-audit-table tbody tr:last-child td {
        border-bottom: none;
    }

    @media (max-width: 768px) {
        .admin-stat-card {
            flex-direction: column;
            text-align: center;
        }

        .stat-number {
            font-size: 1.6rem;
        }

        .admin-audit-table {
            font-size: 0.8rem;
        }

        .admin-audit-table thead th,
        .admin-audit-table tbody td {
            padding: 10px 8px;
        }
    }

    /* ========================================
     TEACHER ABOUT - SEE MORE/LESS FUNCTIONALITY
     ========================================
  */
    .teacher-about-text {
        text-align: justify;
        font-size: 0.95rem;
        line-height: 1.6;
        color: #475569;
        margin-bottom: 10px;
        transition: max-height 0.4s ease;
        overflow: hidden;
    }

    .teacher-about-short {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .teacher-about-expanded {
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        max-height: none;
    }

    .btn-see-more {
        background: transparent;
        border: none;
        color: var(--brand-green);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        padding: 5px 0;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .btn-see-more:hover {
        color: #007c4d;
        transform: translateX(3px);
    }

    .btn-see-more i {
        transition: transform 0.3s ease;
        font-size: 0.75rem;
    }

    .btn-see-more:hover i {
        transform: translateY(2px);
    }

    /* ========================================
     FEEDBACK CARDS - PROFESSIONAL DESIGN
     ========================================
  */
    .feedback-card-modern {
        background: white;
        border-radius: 16px;
        padding: 0;
        margin-bottom: 20px;
        border: 2px solid transparent;
        background-image: linear-gradient(white, white),
            linear-gradient(135deg, #e2e8f0, #cbd5e1);
        background-origin: border-box;
        background-clip: padding-box, border-box;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .feedback-card-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 157, 99, 0.05), transparent);
        transition: left 0.6s ease;
    }

    .feedback-card-modern:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 157, 99, 0.15);
        background-image: linear-gradient(white, white),
            linear-gradient(135deg, #009d63, #00d084);
    }

    .feedback-card-modern:hover::before {
        left: 100%;
    }

    .feedback-card-header {
        padding: 18px 24px;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-bottom: 1px solid #e2e8f0;
    }

    .feedback-batch-badge {
        background: linear-gradient(135deg, #009d63, #00b377);
        color: white;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        box-shadow: 0 2px 8px rgba(0, 157, 99, 0.25);
    }

    .feedback-date-badge {
        background: linear-gradient(135deg, #f0fdf4, #dcfce7);
        color: #059669;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        border: 1px solid #86efac;
        display: inline-flex;
        align-items: center;
        box-shadow: 0 2px 6px rgba(0, 157, 99, 0.15);
    }

    .feedback-card-body {
        padding: 24px;
        position: relative;
    }

    .feedback-icon-wrapper {
        position: absolute;
        top: 16px;
        right: 20px;
        font-size: 2.5rem;
        color: #f1f5f9;
        opacity: 0.4;
        transition: all 0.3s ease;
    }

    .feedback-card-modern:hover .feedback-icon-wrapper {
        color: #009d63;
        opacity: 0.15;
        transform: scale(1.1) rotate(-5deg);
    }

    .feedback-text,
    .feedback-text-full {
        font-size: 1rem;
        line-height: 1.7;
        color: #334155;
        margin-bottom: 0;
        white-space: pre-wrap;
        word-break: break-word;
        position: relative;
        z-index: 1;
        font-weight: 400;
    }

    .feedback-text-full {
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .feedback-card-modern .btn-see-more {
        background: linear-gradient(135deg, #f0fdf4, #e6f7ed);
        border: 1px solid #bbf7d0;
        color: #009d63;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        padding: 8px 16px;
        border-radius: 20px;
        transition: all 0.3s ease;
        margin-top: 12px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 6px rgba(0, 157, 99, 0.1);
    }

    .feedback-card-modern .btn-see-more:hover {
        background: linear-gradient(135deg, #009d63, #00b377);
        color: white;
        border-color: #009d63;
        transform: translateX(3px);
        box-shadow: 0 4px 10px rgba(0, 157, 99, 0.2);
    }

    .feedback-card-modern .btn-see-more i {
        transition: transform 0.3s ease;
        font-size: 0.8rem;
    }

    .feedback-card-modern .btn-see-more:hover i {
        transform: translateX(2px);
    }

    .feedback-card-footer {
        padding: 14px 24px;
        background: linear-gradient(135deg, #f0fdf4, #dcfce7);
        border-top: 1px solid #bbf7d0;
        font-size: 0.85rem;
        color: #059669;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .feedback-card-footer i {
        font-size: 0.9rem;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .feedback-card-modern {
            margin-bottom: 16px;
        }

        .feedback-card-header {
            padding: 14px 18px;
        }

        .feedback-card-body {
            padding: 18px;
        }

        .feedback-batch-badge,
        .feedback-date-badge {
            font-size: 0.75rem;
            padding: 5px 10px;
        }

        .feedback-text,
        .feedback-text-full {
            font-size: 0.95rem;
        }

        .feedback-icon-wrapper {
            font-size: 2rem;
        }

        .feedback-card-footer {
            padding: 12px 18px;
        }
    }

    /* Notice Date Badge Styling */
    .notice-date-badge {
        background: linear-gradient(135deg, #f0fdf4, #dcfce7);
        color: #059669;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        border: 1px solid #86efac;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(0, 157, 99, 0.15);
    }

    .notice-date-badge i {
        font-size: 0.75rem;
    }

    /* ========================================
   TEACHER DIRECTORY STYLES - REDESIGNED
   ======================================== */

    /* Teacher Card Container */
    .teacher-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 30px 20px;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        /* Removed fixed height - now dynamic */
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }

    .teacher-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 157, 99, 0.15);
        border-color: #009d63;
    }

    /* Photo Container */
    .teacher-photo-container {
        width: 160px;
        height: 160px;
        margin: 0 auto 15px;
        border-radius: 50%;
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 3px solid #e0f2fe;
        box-shadow: 0 4px 10px rgba(0, 157, 99, 0.1);
        transition: all 0.3s ease;
    }

    .teacher-card:hover .teacher-photo-container {
        border-color: #009d63;
        transform: scale(1.05);
    }

    .teacher-photo-icon {
        font-size: 4rem;
        color: #009d63;
        opacity: 0.6;
    }

    .teacher-photo-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

    /* ID Badge */
    .teacher-id-badge {
        background: #1e293b;
        color: #ffffff;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 4px 12px;
        border-radius: 12px;
        display: inline-block;
        margin-bottom: 10px;
    }

    /* Teacher Name */
    .teacher-name {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }

    .teacher-card:hover .teacher-name {
        color: #009d63;
    }

    /* Designation */
    .teacher-designation {
        color: #64748b;
        font-size: 0.95rem;
        font-weight: 500;
        margin-bottom: 15px;
    }

    /* About Section with See More */
    .teacher-about-section {
        margin-bottom: 15px;
    }

    .teacher-about {
        color: #64748b;
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 8px;
        padding: 10px;
        background: #f8fafc;
        border-radius: 8px;
        text-align: left;
        border-left: 3px solid #009d63;
        transition: all 0.3s ease;
    }

    .teacher-about.collapsed {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .see-more-btn {
        background: none;
        border: none;
        color: #009d63;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        padding: 5px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
        transition: all 0.3s ease;
    }

    .see-more-btn:hover {
        color: #007a4d;
    }

    .see-more-btn i {
        font-size: 0.75rem;
    }

    /* Contact Info - Box Design */
    .teacher-contact {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .teacher-contact-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .teacher-contact-item:hover {
        border-color: #009d63;
        background: #f0fdf4;
    }

    .contact-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .contact-left i {
        font-size: 1.1rem;
        color: #009d63;
    }

    .contact-left span {
        color: #1e293b;
        font-weight: 500;
        font-size: 0.95rem;
    }

    .copy-btn {
        background: transparent;
        border: none;
        color: #94a3b8;
        padding: 5px 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 6px;
    }

    .copy-btn:hover {
        color: #009d63;
        background: #e0f2fe;
    }

    .copy-btn.copied {
        color: #009d63;
    }

    .copy-btn i {
        font-size: 1rem;
    }

    /* Search Bar Styling */
    #teacherSearch {
        border-right: none !important;
        font-size: 1rem;
        padding: 12px 15px;
    }

    .input-group-text {
        border-right: none;
        background: #ffffff;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .teacher-card {
            padding: 25px 15px;
        }

        .teacher-photo-container {
            width: 90px;
            height: 90px;
        }

        .teacher-name {
            font-size: 1.1rem;
        }
    }

    /* Empty State */
    #teacher-grid .fa-users {
        color: #cbd5e1;
    }

    /* Teacher Stats Table */
    .stats-table thead th {
        background: #009d63;
        color: #fff;
        border: none;
        padding: 12px 15px;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .stats-table tbody td {
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 15px;
        vertical-align: middle;
        font-size: 0.95rem;
    }

    .stats-table {
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
    }

    .batch-stats-wrapper {
        background: #fff;
        border-radius: 12px;
        /* padding: 20px; */
    }

    /* ============================
       STATS TABLE SPECIFIC STYLES
       ============================ */
    .stats-table tbody tr {
        transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
        background-color: #fff;
        border-bottom: 1px solid #f1f5f9;
        /* Default state */
    }

    .stats-table tbody tr:last-child {
        border-bottom: none;
    }

    /* Hover State: Zoom + Green Text */
    .stats-table tbody tr:hover {
        background-color: #f0fdf4 !important;
        /* Very light green bg */
        transform: scale(1.02);
        /* Zoom */
        box-shadow: 0 8px 20px rgba(0, 157, 99, 0.15);
        /* Shadow pop */
        z-index: 10;
        position: relative;
    }

    /* Change Text Color on Hover */
    .stats-table tbody tr:hover td,
    .stats-table tbody tr:hover td.fw-bold {
        color: var(--brand-green) !important;
        /* Green text */
        transition: color 0.1s ease;
    }

    /* Ensure Badge remains legible */

    /* ==========================================
       DOCUMENTS (POLICY & MEETINGS) REDESIGN
       ========================================== */

    .document-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .doc-row-card {
        border-left: 4px solid #fff;
        /* Default border matching bg */
        transition: all 0.3s ease;
    }

    /* Hover Animation */
    .doc-row-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
        border-left-color: #009d63;
        /* Green accent on hover */
    }

    /* Icon Box */
    .doc-icon-box {
        width: 50px;
        height: 50px;
        background-color: #f0fdf4;
        /* Light green bg */
        border-radius: 8px;
        color: #009d63;
        font-size: 1.2rem;
    }

    .doc-row-card:hover .doc-icon-box {
        background-color: #009d63;
        color: #fff;
        transition: all 0.3s ease;
    }

    /* Date Badge */
    .doc-date-badge {
        background-color: #f8fafc;
        color: #64748b;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        border: 1px solid #e2e8f0;
    }

    /* View Button */
    .btn-view-doc {
        background-color: #009d63;
        color: white;
        border: none;
        padding: 6px 18px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 600;
        transition: all 0.2s;
        text-decoration: none;
    }

    .btn-view-doc:hover {
        background-color: #007a4d;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 157, 99, 0.2);
    }

    /* Teacher Directory About Section Truncation */
    .teacher-about-section {
        margin-top: 10px;
        margin-bottom: 10px;
        text-align: left;
    }

    .teacher-about {
        font-size: 0.9rem;
        color: #64748b;
        margin-bottom: 5px;
        line-height: 1.5;
    }

    .teacher-about.collapsed {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .see-more-btn {
        background: none;
        border: none;
        color: var(--brand-green);
        font-size: 0.85rem;
        font-weight: 600;
        padding: 0;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .see-more-btn:hover {
        text-decoration: underline;
    }