/* SLMT Technology LMS - Main Stylesheet */

/* Color Scheme */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* SLMT Brand Colors */
    --slmt-primary: #1e3a8a;
    --slmt-secondary: #3b82f6;
    --slmt-accent: #06b6d4;
    --slmt-success: #10b981;
    --slmt-warning: #f59e0b;
    --slmt-danger: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--slmt-primary) 0%, var(--slmt-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--slmt-secondary) 0%, var(--slmt-accent) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-100);
}

/* Login Page Styles */
.login-page {
    background: var(--gradient-primary);
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;
}

.login-brand-side {
    background: var(--gradient-primary);
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.brand-content {
    text-align: center;
    color: white;
    z-index: 1;
    position: relative;
    max-width: 400px;
    padding: 2rem;
}

.brand-logo {
    margin-bottom: 3rem;
}

.logo-img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.brand-features {
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--slmt-accent);
}

.feature-item span {
    font-weight: 500;
}

.login-form-side {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

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

.mobile-logo {
    margin-bottom: 2rem;
}

.mobile-logo h2 {
    color: var(--slmt-primary);
    font-weight: 700;
    margin-top: 1rem;
}

.logo-img-sm {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    padding: 0.8rem;
}

.login-title {
    color: var(--slmt-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--gray-600);
    margin-bottom: 0;
}

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

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--slmt-secondary);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--slmt-secondary);
}

.btn-login {
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-accent);
}

.login-footer {
    text-align: center;
    color: var(--gray-600);
}

.demo-accounts {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.demo-accounts h6 {
    color: var(--slmt-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.demo-list {
    display: grid;
    gap: 0.5rem;
}

.demo-item {
    font-size: 0.9rem;
    padding: 0.5rem;
    background: white;
    border-radius: 5px;
    border-left: 3px solid var(--slmt-secondary);
}

.demo-item strong {
    color: var(--slmt-primary);
}

.copyright {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    overflow: visible; /* ensure no clipping across container */
}

.sidebar {
    width: 280px;
    background: var(--gradient-primary);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
    left: 0;
    top: 0;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Fallback: constrain any img inside sidebar header (force with !important) */
.sidebar .sidebar-header img,
.sidebar .sidebar-header .sidebar-logo,
.sidebar .sidebar-header .logo-img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    margin-bottom: 0.75rem;
    object-fit: contain !important;
    display: block !important;
}

/* Some pages (e.g., teacher/dashboard.php) use .sidebar-logo instead of .logo-img */
.sidebar-header .sidebar-logo {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    margin-bottom: 0.75rem;
    object-fit: contain !important;
    display: block !important;
}

/* Sidebar logo block (match current markup) */
.sidebar-header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-header .logo-img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    margin-bottom: 0.75rem;
    object-fit: contain !important; /* prevent SVG/PNG from overflowing */
    display: block !important;      /* avoid inline spacing quirks */
}

.sidebar-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Sidebar menu (match current markup) */
.sidebar-menu {
    padding: 1rem 0;
}

/* Menu items */
.sidebar .menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

/* Enforce link color/decoration across states */
.sidebar .menu-item,
.sidebar .menu-item:link,
.sidebar .menu-item:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Extra safety for any sidebar anchors */
.sidebar a,
.sidebar a:link,
.sidebar a:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

.sidebar a:hover,
.sidebar a:focus {
    text-decoration: none !important;
}

.sidebar .menu-item:hover,
.sidebar .menu-item:focus {
    text-decoration: none !important;
}

.sidebar .menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: var(--slmt-accent);
}

.sidebar .menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-left-color: var(--slmt-accent);
}

.sidebar .menu-item i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

.sidebar .menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0.75rem 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--slmt-accent);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: var(--slmt-accent);
}

.nav-link i {
    width: 20px;
    margin-right: 1rem;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: var(--gray-100);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible; /* allow dropdowns to overflow */
}

.main-content.expanded {
    margin-left: 80px;
}

.content-wrapper {
    padding: 0;
    min-height: calc(100vh - 80px);
    overflow: visible; /* ensure no clipping */
}

.top-navbar {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* use auto margin on .navbar-right to push to edge */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1100; /* above .sidebar (1000) so dropdowns overlay */
    width: 100%;
    gap: 1rem;
    overflow: visible; /* dropdowns should not be clipped */
}

.navbar-brand {
    font-weight: 700;
    color: var(--slmt-primary);
    margin: 0;
}

/* Topbar layout helpers */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto !important; /* force push to the right */
}

.navbar-item {
    position: relative; /* anchor dropdown menu */
}

.navbar-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--gray-700);
    position: relative; /* anchor badge */
}

.navbar-btn:hover {
    background: var(--gray-100);
}

.navbar-btn .notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--slmt-danger);
    color: #fff;
    border-radius: 999px;
    padding: 0 6px;
    font-size: 10px;
    line-height: 16px;
}

/* Ensure dropdown overlays sidebar and content */
.navbar-item .dropdown-menu {
    z-index: 2000;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
    transform: none !important; /* avoid Popper transforms conflicting with sticky */
}

/* Enforce right-aligned menus when using dropdown-menu-end */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Strong, predictable dropdown placement in topbar */
.top-navbar .dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    transform: none !important;
    margin-top: 8px !important;
    z-index: 2600 !important; /* ensure above sidebar overlay and other elements */
}

/* Ensure notification dropdown aligns to trigger and stays within viewport */
.top-navbar .navbar-item {
    position: relative;
}

.top-navbar .navbar-item .dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    transform: none !important;
    margin-top: 8px !important;
}

.notification-dropdown {
    min-width: 320px;
    width: clamp(320px, 40vw, 380px);
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    overflow-y: auto;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    overscroll-behavior: contain; /* prevent background page scroll while inside */
    background: #fff;
}

.user-dropdown {
    min-width: 260px;
}

/* User button alignment */
.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap; /* prevent wrapping of chevron */
}

/* User info stack inside topbar button */
.user-btn .user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-btn i.fas.fa-chevron-down {
    font-size: 0.8rem;
    opacity: 0.8;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.content-area {
    padding: 2rem;
}

/* Modal should appear above sticky top navbar */
.modal {
    z-index: 1200 !important; /* above .top-navbar (1100) */
}

.modal-backdrop {
    z-index: 1190 !important;
}

/* Enhanced Header and User Profile Styling */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.navbar-item {
    position: relative;
}

.navbar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.user-btn {
    padding: 0.75rem 1.25rem !important;
    border: 1px solid var(--gray-200) !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.user-btn:hover {
    background: var(--gray-50) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    transform: translateY(-1px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.user-dropdown {
    min-width: 280px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
}

.user-dropdown .dropdown-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4a90e2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown .user-details h6 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.user-dropdown .user-details p {
    margin: 0.25rem 0;
    font-size: 14px;
    opacity: 0.9;
}

.user-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.user-dropdown .dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.user-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification-dropdown {
    min-width: 320px;
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    overflow-y: auto;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    overscroll-behavior: contain;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notification-content h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-content p {
    margin: 0.25rem 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-content small {
    font-size: 11px;
    color: var(--text-muted);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--slmt-secondary);
}

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

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

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

.stats-card.danger {
    border-left-color: var(--slmt-danger);
}

.stats-card.info {
    border-left-color: var(--slmt-accent);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.stats-icon.primary {
    background: var(--gradient-primary);
}

.stats-icon.success {
    background: linear-gradient(135deg, var(--slmt-success) 0%, #059669 100%);
}

.stats-icon.warning {
    background: linear-gradient(135deg, var(--slmt-warning) 0%, #d97706 100%);
}

.stats-icon.danger {
    background: linear-gradient(135deg, var(--slmt-danger) 0%, #dc2626 100%);
}

.stats-icon.info {
    background: linear-gradient(135deg, var(--slmt-accent) 0%, #0891b2 100%);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--slmt-primary);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--gray-600);
    font-weight: 500;
    margin: 0;
}

/* Button Styles */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-600);
    color: white;
}

.btn-success {
    background: var(--slmt-success);
    color: white;
}

.btn-warning {
    background: var(--slmt-warning);
    color: white;
}

.btn-danger {
    background: var(--slmt-danger);
    color: white;
}

.btn-info {
    background: var(--slmt-accent);
    color: white;
}

/* Table Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--gray-100);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-primary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--slmt-primary);
    border-left: 4px solid var(--slmt-secondary);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--slmt-success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left: 4px solid var(--slmt-warning);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid var(--slmt-danger);
}

/* Mobile Navigation */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--slmt-primary);
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show sidebar toggle button on mobile */
    .sidebar-toggle {
        display: inline-block !important;
    }
    
    /* Mobile sidebar - hidden by default */
    .sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 2500;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    /* Show sidebar when active */
    .sidebar.show {
        left: 0;
    }
    
    /* Main content adjustments */
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Top navbar mobile adjustments */
    .top-navbar {
        padding: 0.75rem 1rem;
        position: fixed; /* force visible regardless of parent overflow */
        top: 0;
        left: 0;
        right: 0;
        z-index: 1500; /* above sidebar (1300) and overlay (1250) */
        display: flex !important; /* ensure visible */
        min-height: 56px; /* prevent collapse */
        background: #fff; /* ensure contrast */
        border-bottom: 1px solid var(--gray-200);
    }

    /* Push content below fixed navbar across possible containers */
    .main-content,
    .content,
    .content-area {
        padding-top: 72px !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Content area mobile padding */
    .content-area {
        padding: 1rem;
    }
    
    /* Stats cards mobile layout */
    .stats-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1.5rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Table responsive */
    .table-responsive {
        border-radius: 10px;
        overflow-x: auto;
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Hide login brand side on mobile */
    .login-brand-side {
        display: none !important;
    }
    
    /* Dropdown menu mobile adjustments */
    .dropdown-menu {
        position: absolute !important;
        transform: none !important;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        z-index: 2600 !important;
    }

    /* Make notification dropdown fully visible on small screens */
    .top-navbar .dropdown-menu.notification-dropdown {
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: none !important;
        position: fixed !important;
        top: 60px !important;
        transform: none !important;
        margin-top: 0 !important;
    }

    /* Slightly constrain user dropdown too */
    .top-navbar .dropdown-menu.user-dropdown {
        right: 8px !important;
        left: auto !important;
        max-width: calc(100vw - 16px);
        position: absolute !important;
        transform: none !important;
        margin-top: 8px !important;
    }
    
    /* User dropdown adjustments */
    .navbar-actions .dropdown-menu {
        right: 8px !important;
        left: auto !important;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-300);
    border-top: 4px solid var(--slmt-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Utility Classes */
.text-slmt-primary { color: var(--slmt-primary) !important; }
.text-slmt-secondary { color: var(--slmt-secondary) !important; }
.text-slmt-accent { color: var(--slmt-accent) !important; }
.bg-slmt-primary { background-color: var(--slmt-primary) !important; }
.bg-slmt-secondary { background-color: var(--slmt-secondary) !important; }
.bg-slmt-accent { background-color: var(--slmt-accent) !important; }
.gradient-primary { background: var(--gradient-primary) !important; }
.gradient-accent { background: var(--gradient-accent) !important; }
