/* ===================================================================
   Report Service Portal - Professional Admin Dashboard Theme
   Modern, Clean, Material-inspired Design
   =================================================================== */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors - Material Design Blue */
    --primary: #1976d2;
    --primary-dark: #1976d2;
    --primary-light: #1976d2;
    --primary-rgb: 25, 118, 210;
    /* Secondary Colors - Material Design Teal */
    --secondary: #00897b;
    --secondary-dark: #00695c;
    --secondary-light: #26a69a;
    /* Sidebar Colors - Modern Dark Theme */
    --sidebar-bg: #1a237e;
    --sidebar-bg-gradient: linear-gradient(180deg, #1a237e 0%, #0d1642 100%);
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(255, 255, 255, 0.12);
    --sidebar-text: rgba(255, 255, 255, 0.7);
    --sidebar-text-active: #ffffff;
    --sidebar-heading: rgba(255, 255, 255, 0.5);
    --sidebar-border: rgba(255, 255, 255, 0.12);
    /* Background Colors */
    --bg-body: #f5f5f5;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-surface: #fafafa;
    /* Text Colors */
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-muted: #9e9e9e;
    --text-disabled: #bdbdbd;
    /* Status Colors - Material Design */
    --success: #43a047;
    --success-light: #e8f5e9;
    --success-dark: #2e7d32;
    --warning: #fb8c00;
    --warning-light: #fff3e0;
    --warning-dark: #ef6c00;
    --danger: #e53935;
    --danger-light: #ffebee;
    --danger-dark: #c62828;
    --info: #1e88e5;
    --info-light: #e3f2fd;
    --info-dark: #1565c0;
    /* Borders & Shadows - Material Design Elevation */
    --border-color: #e0e0e0;
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.12);
    /* Sidebar Dimensions */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 72px;
    --navbar-height: 64px;
    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-sidebar: 1080;
    --z-navbar: 1090;
    --z-toast: 1100;
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    /* Primary Colors - Material Design Blue for dark mode */
    --primary: #1976d2;
    --primary-dark: #1976d2;
    --primary-light: #1976d2;
    --primary-rgb: 100, 181, 246;
    /* Secondary Colors */
    --secondary: #4db6ac;
    --secondary-dark: #26a69a;
    --secondary-light: #80cbc4;
    /* Sidebar Colors */
    --sidebar-bg: #0d1421;
    --sidebar-bg-gradient: linear-gradient(180deg, #0d1421 0%, #06090f 100%);
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-active: rgba(100, 181, 246, 0.2);
    --sidebar-text: rgba(255, 255, 255, 0.6);
    --sidebar-text-active: #ffffff;
    --sidebar-heading: rgba(255, 255, 255, 0.4);
    --sidebar-border: rgba(255, 255, 255, 0.08);
    /* Background Colors */
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-header: #1e1e1e;
    --bg-surface: #2c2c2c;
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-disabled: rgba(255, 255, 255, 0.38);
    /* Status Colors - Material Design for dark mode */
    --success: #81c784;
    --success-light: rgba(129, 199, 132, 0.12);
    --success-dark: #66bb6a;
    --warning: #ffb74d;
    --warning-light: rgba(255, 183, 77, 0.12);
    --warning-dark: #ffa726;
    --danger: #ef5350;
    --danger-light: rgba(239, 83, 80, 0.12);
    --danger-dark: #e53935;
    --info: #4fc3f7;
    --info-light: rgba(79, 195, 247, 0.12);
    --info-dark: #29b6f6;
    /* Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.12);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.45), 0 4px 8px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Theme transition */
body {
    transition: background-color var(--transition-base), color var(--transition-base);
}

.card,
.top-navbar,
.sidebar,
.form-control,
.form-select,
.btn {
    transition: background-color var(--transition-base),
                color var(--transition-base),
                border-color var(--transition-base);
}

/* ===================================================================
   Base Styles
   =================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 992px) {
    html {
        font-size: 15px;
    }
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===================================================================
   Accessibility - Skip Links
   =================================================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: linear-gradient(180deg, #1a237e 0%, #0d1642 100%);
   
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--warning);
    outline-offset: 2px;
}

/* ===================================================================
   Accessibility - Screen Reader Only Content
   =================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================================================
   Accessibility - Focus Indicators
   =================================================================== */
/* Enhanced focus styles for all interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Focus-visible for modern browsers (only show outline for keyboard navigation) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users in modern browsers */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

/* Enhanced focus for sidebar navigation */
.sidebar-menu-link:focus,
.sidebar-menu-link:focus-visible {
    outline: 3px solid var(--warning);
    outline-offset: -3px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Enhanced focus for buttons */
.btn:focus,
.btn:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.2);
}

.btn-primary:focus,
.btn-primary:focus-visible {
    outline-color: var(--warning);
}

/* Enhanced focus for form controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25);
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

/* Enhanced focus for custom controls */
.navbar-icon-btn:focus,
.navbar-icon-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.2);
}

/* Enhanced focus for dropdown toggle */
.user-dropdown-toggle:focus,
.user-dropdown-toggle:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced focus for sidebar toggle */
.sidebar-toggle:focus,
.sidebar-toggle:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.2);
}

/* ===================================================================
   Layout - Wrapper
   =================================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===================================================================
   Sidebar Styles
   =================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg-gradient);
    z-index: var(--z-sidebar);
    transition: width var(--transition-base), transform var(--transition-base);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar Header / Brand */
.sidebar-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--sidebar-border);
    min-height: var(--navbar-height);
    flex-shrink: 0;
    gap: 6px;
}

.sidebar-brand-logo {
    display: block;
    height: 34px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
    flex-shrink: 0;
}

.sidebar-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    margin-right: 14px;
    font-size: 1.35rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.sidebar-brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
    line-height: 1.3;
    width: 100%;
    text-align: center;
}

.sidebar-brand-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--sidebar-text);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-heading {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sidebar-heading);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin: 3px 0.75rem;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.sidebar-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-light);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
    border-radius: 0 2px 2px 0;
}

.sidebar-menu-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
    transform: translateX(2px);
}

.sidebar-menu-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
}

.sidebar-menu-link.active::before {
    transform: scaleY(1);
}

.sidebar-menu-link i {
    width: 24px;
    font-size: 1.15rem;
    margin-right: 14px;
    text-align: center;
    opacity: 0.75;
    transition: all var(--transition-fast);
}

.sidebar-menu-link:hover i,
.sidebar-menu-link.active i {
    opacity: 1;
    transform: scale(1.1);
}

/* Sidebar Logout Button */
.sidebar-logout-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
}

.sidebar-logout-btn:hover i {
    color: #ef5350;
}

/* Sidebar Divider */
.sidebar-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 1.5rem;
}

/* Sidebar User Info */
.sidebar-user {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 12px;
    font-size: 0.9rem;
}

.sidebar-user-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.sidebar-user-role {
    color: var(--sidebar-text);
    font-size: 0.75rem;
}

/* ===================================================================
   Main Content Area
   =================================================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-base);
}

/* Top Navbar */
.top-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.navbar-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--bg-body);
    color: var(--primary);
}

.navbar-search {
    position: relative;
}

.navbar-search input {
    width: 300px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.navbar-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.navbar-search i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top:14px;
}

.navbar-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-body);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-icon-btn:hover {
    background: var(--primary-light);
    color: white;
}

.navbar-icon-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.user-dropdown-toggle:hover {
    background: var(--bg-body);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Dropdown Menu Enhancements */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-body);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
    color: var(--text-muted);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* ===================================================================
   Page Content
   =================================================================== */
.page-content {
    flex: 1;
    padding: 1.5rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title i {
    color: var(--primary);
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.page-breadcrumb a:hover {
    color: var(--primary);
}

/* ===================================================================
   Cards
   =================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1rem 1.25rem;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--primary);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
}

/* Stat Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.stat-card-info p {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.primary .stat-card-info p { color: var(--primary); }
.stat-card.primary .stat-card-icon { background: rgba(78, 115, 223, 0.1); color: var(--primary); }

.stat-card.success .stat-card-info p { color: var(--success); }
.stat-card.success .stat-card-icon { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.stat-card.info .stat-card-info p { color: var(--info); }
.stat-card.info .stat-card-icon { background: rgba(59, 130, 246, 0.1); color: var(--info); }

.stat-card.warning .stat-card-info p { color: var(--warning); }
.stat-card.warning .stat-card-icon { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

.stat-card.danger .stat-card-info p { color: var(--danger); }
.stat-card.danger .stat-card-icon { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* Border-left style cards (for compatibility) */
.border-left-primary { border-left: 4px solid var(--primary) !important; }
.border-left-success { border-left: 4px solid var(--success) !important; }
.border-left-info { border-left: 4px solid var(--info) !important; }
.border-left-warning { border-left: 4px solid var(--warning) !important; }
.border-left-danger { border-left: 4px solid var(--danger) !important; }

/* ===================================================================
   Tables
   =================================================================== */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--bg-body);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-hover tbody tr:hover {
    background: rgba(78, 115, 223, 0.04);
}

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.4);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

.btn-success:hover {
    background: #0d9f6e;
    border-color: #0d9f6e;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ===================================================================
   Badges
   =================================================================== */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge.bg-success { background: var(--success) !important; }
.badge.bg-danger { background: var(--danger) !important; }
.badge.bg-warning { background: var(--warning) !important; color: #000 !important; }
.badge.bg-info { background: var(--info) !important; }
.badge.bg-primary { background: var(--primary) !important; }

/* ===================================================================
   Forms
   =================================================================== */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===================================================================
   Alerts
   =================================================================== */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
}

/* ===================================================================
   Toast Notifications
   =================================================================== */
.toast-container {
    z-index: 9999 !important;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease-out;
    margin-bottom: 0.75rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.hide {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast .toast-body {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.toast .toast-body i {
    flex-shrink: 0;
}

.toast .btn-close {
    opacity: 0.8;
}

.toast .btn-close:hover {
    opacity: 1;
}

/* Toast color variants */
.toast.bg-success {
    background-color: var(--success) !important;
}

.toast.bg-danger {
    background-color: var(--danger) !important;
}

.toast.bg-warning {
    background-color: var(--warning) !important;
    color: #000 !important;
}

.toast.bg-warning .btn-close {
    filter: invert(1);
}

.toast.bg-info {
    background-color: var(--info) !important;
}

/* Toast stacking - ensure proper spacing */
.toast-container .toast:not(:last-child) {
    margin-bottom: 0.75rem;
}

/* ===================================================================
   Footer
   =================================================================== */
.main-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}
/* ===================================================================
   Login Page Styles
   =================================================================== */

/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fb;
}

.parent-box {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: white;
}

.left-title {
    width: 50%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5a623 0%, #f5a623 30%, #764ba2 100%);
    color: white;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .left-title::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" opacity="0.1"><path d="M20 20 L80 20 L80 80 L20 80 Z" fill="none" stroke="white" stroke-width="2"/><circle cx="50" cy="50" r="15" fill="none" stroke="white" stroke-width="2"/></svg>') repeat;
        background-size: 50px 50px;
    }

    .left-title h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .left-title p {
        font-size: 1.1rem;
        max-width: 400px;
        line-height: 1.6;
        opacity: 0.9;
        position: relative;
        z-index: 1;
    }

    .left-title .welcome-badge {
        background: rgba(245, 166, 35, 0.2);
        padding: 0.5rem 1.5rem;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 2rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(245, 166, 35, 0.3);
        position: relative;
        z-index: 1;
    }

.login-card {
    width: 50%;

    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
    box-shadow: -5px 0 30px rgba(245, 166, 35, 0.1);
}

.login-header {
    margin-bottom: 2.5rem;
}

    .login-header h1 {
        font-size: 2rem;
        font-weight: 600;
        color: #1a1f36;
        margin-bottom: 0.5rem;
    }

    .login-header p {
        color: #6b7280;
        font-size: 0.95rem;
        line-height: 1.5;
    }

.login-body .form-label {
    display: block;
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-body .form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

    .login-body .form-control:focus {
        outline: none;
        border-color: #f5a623;
        box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
    }

    .login-body .form-control::placeholder {
        color: #9ca3af;
        opacity: 0.7;
    }

.login-body .btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #f5a623 0%, #f5a623 50%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

    .login-body .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .login-body .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(245, 166, 35, 0.3);
    }

        .login-body .btn-primary:hover::before {
            left: 100%;
        }

    .login-body .btn-primary:active {
        transform: translateY(0);
    }

.login-footer {
    margin-top: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}

    .login-footer a {
        color: #f5a623;
        text-decoration: none;
        font-weight: 500;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }*/

/* ===================================================================
   Login Page Styles
   =================================================================== */

.trademark {
font:black;
}


:root {
    --primary: #1976d2;
    --primary-dark: #1976d2;
    --primary-gradient: linear-gradient(135deg, #1a237e 0%, #0d1642 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fb;
}

.parent-box {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: white;
}

.left-title {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:20px;
    background: var(--primary-gradient);
    color: white;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-text {
    font-size: .875rem;
    color: #9ca3af;
    margin: 0;
    padding: 0;
}

.login-powered-by {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    line-height: 1;
}

.login-powered-by-logo {
    display: inline-block;
    height: 29px;
    width: auto;
    object-fit: contain;
    vertical-align: baseline;
}

.description-text {
  
    font-size: 42px;
   
    line-height: 1.6;
    color: white;
    max-width: 500px;
    text-align: center;
}

    .left-title::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" opacity="0.1"><path d="M20 20 L80 20 L80 80 L20 80 Z" fill="none" stroke="white" stroke-width="2"/><circle cx="50" cy="50" r="15" fill="none" stroke="white" stroke-width="2"/></svg>') repeat;*/
        background-size: 50px 50px;
    }

    .left-title .welcome-text {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 2rem;
        position: relative;
        z-index: 1;
        line-height: 1.3;
        max-width: 500px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    /* Optional welcome back badge if needed */
    .left-title .welcome-badge {
        background: rgba(245, 166, 35, 0.15);
        padding: 0.75rem 2rem;
        border-radius: 50px;
        font-weight: 600;
        font-size: 1rem;
        letter-spacing: 1px;
        margin-bottom: 2rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(245, 166, 35, 0.2);
        position: relative;
        z-index: 1;
    }

    .left-title p {
        font-size: 1.2rem;
        max-width: 450px;
        line-height: 1.8;
        opacity: 0.95;
        position: relative;
        z-index: 1;
        font-weight: 400;
    }

.main-text {
    font-size: 2.0rem;
    font-weight: 700;
    color: #1a237e;
    text-align: center; /* Centers the text horizontally */
    width: 100%; /* Ensures it takes full width */
}

.login-card {
    width: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    box-shadow: -5px 0 30px rgba(245, 166, 35, 0.05);
}

.login-header {
    margin-bottom: 2.5rem;
    text-align: center;

}

.login-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(245, 166, 35, 0.2);
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 400;
}

.login-body {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

    .login-body .form-label {
        display: block;
        font-weight: 600;
        color: #1a1f36;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

        .login-body .form-label i {
            margin-right: 0.5rem;
            color: var(--primary);
            font-size: 1rem;
        }

    .login-body .form-control {
        width: 100%;
        padding: 1rem 1.25rem;
        border: 2px solid #e5e7eb;
        border-radius: 14px;
        font-size: 1rem;
        transition: all 0.3s ease;
        margin-bottom: 1.25rem;
        background-color: #f9fafc;
    }

        .login-body .form-control:hover {
            border-color: #cbd5e1;
            background-color: white;
        }

        .login-body .form-control:focus {
            outline: none;
            border-color: var(--primary);
            background-color: white;
            box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
        }

        .login-body .form-control::placeholder {
            color: #9ca3af;
            opacity: 0.7;
            font-weight: 400;
        }

/* Password field container */
.position-relative {
    position: relative;
    margin-bottom: 1.25rem;
}

#passwordInput {
    padding-right: 3rem;
    margin-bottom: 0;
}

#togglePasswordBtn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #9ca3af;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

    #togglePasswordBtn:hover {
        color: var(--primary);
    }

    #togglePasswordBtn i {
        font-size: 1.2rem;
    }

.form-check {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: var(--primary);
    margin: 0;
}

.form-check-label {
    color: #4b5563;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
}

.login-body .btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(245, 166, 35, 0.2);
    margin: 1.5rem 0 1rem;
}

    .login-body .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(245, 166, 35, 0.3);
    }

    .login-body .btn-primary:active {
        transform: translateY(0);
    }

    .login-body .btn-primary i {
        font-size: 1.2rem;
    }

.text-center {
    text-align: center;
    margin: 1.25rem 0;
}

    .text-center a {
        color: #6b7280;
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.5rem;
    }

        .text-center a:hover {
            color: var(--primary);
        }

        .text-center a i {
            font-size: 1rem;
        }

.login-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

/* Validation styles */
.text-danger {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
    display: block;
    padding-left: 0.25rem;
    margin-top: 8px;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 968px) {
    .parent-box {
        flex-direction: column;
    }

    .left-title,
    .login-card {
        width: 100%;
    }

    .left-title {
        padding: 4rem 2rem;
        min-height: 300px;
    }

        .left-title .welcome-text {
            font-size: 2rem;
        }

    .login-card {
        padding: 3rem 2rem;
    }

    .login-body {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .left-title {
        padding: 3rem 1.5rem;
    }

        .left-title .welcome-text {
            font-size: 1.75rem;
        }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-header h1 {
        font-size: 1.75rem;
    }
}
/* Validation styles */
.text-danger {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
    display: block;
    padding-left: 0.25rem;
    margin-top: 8px;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 968px) {
    .parent-box {
        flex-direction: column;
    }
    
    .left-title,
    .login-card {
        width: 100%;
    }
    
    .left-title {
        padding: 4rem 2rem;
        min-height: 300px;
    }
    
    .left-title .welcome-text {
        font-size: 2rem;
    }
    
    .login-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .left-title {
        padding: 3rem 1.5rem;
    }
    
    .left-title .welcome-text {
        font-size: 1.75rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
}
/* Divider style */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #6b7280;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e5e7eb;
    }

    .divider span {
        padding: 0 1rem;
        font-weight: 500;
        font-size: 0.9rem;
    }

/* Optional: Add an orange accent element */
.orange-accent {
    width: 80px;
    height: 4px;
    background: #1976d2;
    border-radius: 2px;
    margin: 1.5rem auto;
}

/* Responsive */
@media (max-width: 968px) {
    .parent-box {
        flex-direction: column;
    }

    .left-title {
        padding: 4rem 2rem;
    }

    .login-card {
        width: 100%;
        min-width: auto;
        padding: 3rem 2rem;
    }
}
/* ===================================================================
   Accordion / Module List
   =================================================================== */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-body {
    padding: 0;
}

/* List Group in Accordion */
.list-group-flush .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-fast);
}

.list-group-flush .list-group-item:hover {
    background: var(--bg-body);
}

.list-group-flush .list-group-item:first-child {
    border-top: none;
}

/* ===================================================================
   DataTables Customization
   =================================================================== */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.15);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    color: white !important;
}

/* ===================================================================
   Utilities
   =================================================================== */
.text-gray-300 { color: #d1d5db; }
.text-gray-500 { color: #6b7280; }
.text-gray-800 { color: #1f2937; }

.font-weight-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; }

/* ===================================================================
   Responsive Styles
   =================================================================== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .navbar-search {
        display: none;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-card .card-body {
        padding: 1rem;
    }

    .stat-card-info h3 {
        font-size: 1.5rem;
    }

    .user-info {
        display: none;
    }
}

/* ===================================================================
   Accessibility - Reduced Motion
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================================================
   Accessibility - High Contrast Mode Support
   =================================================================== */
@media (prefers-contrast: high) {
    /* Enhance borders and outlines for high contrast */
    .card,
    .btn,
    .form-control,
    .form-select {
        border-width: 2px;
    }

    /* Ensure focus indicators are more visible */
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline-width: 4px;
    }
}

/* ===================================================================
   Accessibility - Focus Trap for Modals
   =================================================================== */
.modal.show {
    /* Ensure modals are announced to screen readers */
    display: flex !important;
}

.modal-backdrop {
    /* Prevent interaction with background content */
    pointer-events: auto;
}

/* ===================================================================
   Accessibility - Loading States
   =================================================================== */
.loading-overlay[role="status"] {
    /* Ensure loading overlays are announced */
    display: flex;
}

[aria-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

[aria-busy="true"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* ===================================================================
   Accessibility - Improved Color Contrast
   =================================================================== */
/* Ensure sufficient contrast for text */
.text-muted {
    color: #6b7280 !important; /* WCAG AA compliant */
}

.sidebar-text {
    color: #b7c0cd; /* Enhanced contrast on dark background */
}

/* Badge contrast improvements */
.badge.bg-warning {
    background: var(--warning) !important;
    color: #000 !important; /* Ensure readable contrast */
    font-weight: 600;
}

/* Alert contrast improvements */
.alert-warning {
    background: var(--warning-light);
    color: #92400e; /* Enhanced contrast */
    border: 1px solid #f59e0b;
}

/* Link contrast */
a {
    color: var(--primary);
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* ===================================================================
   Print Styles
   =================================================================== */
@media print {
    .sidebar,
    .top-navbar,
    .main-footer,
    .btn,
    .alert {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .card {
        border: 1px solid #000;
        box-shadow: none;
    }

    /* Show skip links and focus indicators in print */
    .skip-link {
        display: none !important;
        background: #1976d2;
    }
}

/* ===================================================================
   Animation Classes
   =================================================================== */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===================================================================
   Loading Overlay
   =================================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 58, 0.85);
    backdrop-filter: blur(4px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.loading-overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    min-width: 280px;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.loading-subtext {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Loading overlay with pulsing icon variant */
.loading-overlay-icon {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ===================================================================
   Button Loading States
   =================================================================== */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button with inline spinner (more flexible) */
.btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

/* Disabled button styles enhancement */
.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ===================================================================
   Skeleton Loading
   =================================================================== */
.skeleton {
    background: linear-gradient(90deg,
        #f0f0f0 0%,
        #f0f0f0 40%,
        #e0e0e0 50%,
        #e0e0e0 55%,
        #f0f0f0 65%,
        #f0f0f0 100%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Skeleton variants */
.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skeleton-button {
    height: 40px;
    width: 120px;
    border-radius: 8px;
}

/* Skeleton table */
.skeleton-table-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.skeleton-table-cell {
    flex: 1;
    height: 2.5rem;
    border-radius: 6px;
}

/* Skeleton card with content */
.skeleton-report-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skeleton-report-card .skeleton-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-report-card .skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===================================================================
   Spinner Variants
   =================================================================== */
.spinner-border-primary {
    color: var(--primary);
}

.spinner-border-success {
    color: var(--success);
}

.spinner-border-info {
    color: var(--info);
}

.spinner-border-warning {
    color: var(--warning);
}

.spinner-border-danger {
    color: var(--danger);
}

/* Inline spinner with text */
.spinner-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================================================
   Icon Box Utility Classes (Material Design)
   =================================================================== */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
}

/* Icon Box Sizes */
.icon-box-sm {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.icon-box-md {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
}

.icon-box-lg {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.icon-box-xl {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
}

/* Icon Box Color Variants */
.icon-box-primary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.icon-box-success {
    background: rgba(67, 160, 71, 0.1);
    color: var(--success);
}

.icon-box-info {
    background: rgba(30, 136, 229, 0.1);
    color: var(--info);
}

.icon-box-warning {
    background: rgba(251, 140, 0, 0.1);
    color: var(--warning);
}

.icon-box-danger {
    background: rgba(229, 57, 53, 0.1);
    color: var(--danger);
}

.icon-box-secondary {
    background: var(--bg-body);
    color: var(--text-secondary);
}

/* Dark mode icon box adjustments */
[data-theme="dark"] .icon-box-primary {
    background: rgba(var(--primary-rgb), 0.15);
}

[data-theme="dark"] .icon-box-success {
    background: rgba(129, 199, 132, 0.15);
}

[data-theme="dark"] .icon-box-info {
    background: rgba(79, 195, 247, 0.15);
}

[data-theme="dark"] .icon-box-warning {
    background: rgba(255, 183, 77, 0.15);
}

[data-theme="dark"] .icon-box-danger {
    background: rgba(239, 83, 80, 0.15);
}

/* ===================================================================
   Enhanced Button Variants
   =================================================================== */
.btn-secondary {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-body);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background: var(--bg-body);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger-dark);
    border-color: var(--danger-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: #000;
}

.btn-warning:hover {
    background: var(--warning-dark);
    border-color: var(--warning-dark);
    color: #000;
}

.btn-info {
    background: var(--info);
    border-color: var(--info);
}

.btn-info:hover {
    background: var(--info-dark);
    border-color: var(--info-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

/* Soft Button Variants (Material Design) */
.btn-soft-primary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: none;
}

.btn-soft-primary:hover {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-dark);
}

.btn-soft-success {
    background: var(--success-light);
    color: var(--success-dark);
    border: none;
}

.btn-soft-success:hover {
    background: rgba(67, 160, 71, 0.2);
    color: var(--success-dark);
}

.btn-soft-danger {
    background: var(--danger-light);
    color: var(--danger-dark);
    border: none;
}

.btn-soft-danger:hover {
    background: rgba(229, 57, 53, 0.2);
    color: var(--danger-dark);
}

.btn-soft-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
    border: none;
}

.btn-soft-warning:hover {
    background: rgba(251, 140, 0, 0.2);
    color: var(--warning-dark);
}

.btn-soft-info {
    background: var(--info-light);
    color: var(--info-dark);
    border: none;
}

.btn-soft-info:hover {
    background: rgba(30, 136, 229, 0.2);
    color: var(--info-dark);
}

/* Button Icon alignment */
.btn i,
.btn .bi {
    line-height: 1;
}

/* Button Group Enhancements */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

/* ===================================================================
   Enhanced Form Controls
   =================================================================== */
.form-control-lg,
.form-select-lg {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--border-radius-lg);
}

.form-control-sm,
.form-select-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
}

/* Floating Labels Enhancement */
.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 1rem;
}

.form-floating > label {
    padding: 1rem;
    color: var(--text-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
}

/* Input Groups Enhancement */
.input-group-text {
    background: var(--bg-body);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary);
}

/* Form Validation Styles */
.form-control.is-valid {
    border-color: var(--success);
    background-image: none;
}

.form-control.is-valid:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
}

.form-control.is-invalid {
    border-color: var(--danger);
    background-image: none;
}

.form-control.is-invalid:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.valid-feedback {
    color: var(--success);
}

.invalid-feedback {
    color: var(--danger);
}

/* Custom Checkbox and Radio */
.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15rem;
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.form-check-input:hover {
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* Switch Enhancement */
.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    border-radius: 1.25rem;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===================================================================
   Enhanced Card Styles
   =================================================================== */
.card-elevated {
    border: none;
    box-shadow: var(--shadow-md);
}

.card-elevated:hover {
    box-shadow: var(--shadow-lg);
}

.card-flat {
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.card-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.card-gradient-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
    border: none;
}

.card-gradient-info {
    background: linear-gradient(135deg, var(--info) 0%, var(--info-dark) 100%);
    color: white;
    border: none;
}

.card-gradient-warning {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
    color: #000;
    border: none;
}

/* Card Actions */
.card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Clickable Card */
.card-clickable {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-clickable:active {
    transform: translateY(0);
}

/* ===================================================================
   Report Card Component
   =================================================================== */
.report-card {
    transition: all var(--transition-fast);
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.report-card .card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.report-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Report Card Icon */
.report-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.25rem;
}

/* ===================================================================
   Text Truncation Utilities
   =================================================================== */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================================
   Breadcrumb Enhancement
   =================================================================== */
.breadcrumb-modern {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
}

.breadcrumb-modern li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-modern a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-modern a:hover {
    color: var(--primary);
}

.breadcrumb-modern .active {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===================================================================
   Module Info Alert
   =================================================================== */
.module-info-alert {
    background: var(--info-light);
    border: none;
    border-radius: var(--border-radius);
    color: var(--info-dark);
}

[data-theme="dark"] .module-info-alert {
    background: rgba(var(--info-rgb, 30, 136, 229), 0.12);
    color: var(--info);
}

/* ===================================================================
   Table Column Utilities
   =================================================================== */
.description-column {
    max-width: 200px;
}

.action-column {
    width: 120px;
}

/* Search Input Utility */
.search-input-lg {
    width: 250px;
}


/* Large Icon Display for Error/Status Pages */
.icon-display {
    font-size: 8rem;
    line-height: 1;
}

/* Notification Icon Box */
.notification-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon-box i {
    font-size: 1.5rem;
}

/* Notification Message */
.notification-message {
    font-size: 0.9rem;
}

/* Unread Indicator */
.unread-indicator i {
    font-size: 0.5rem;
}

/* ===================================================================
   Badge Soft Variants
   =================================================================== */
.badge-soft-info {
    background-color: rgba(var(--info-rgb, 30, 136, 229), 0.1);
    color: var(--info);
    border: 1px solid var(--info);
    width: fit-content;
}

.badge-soft-danger {
    background-color: rgba(var(--danger-rgb, 229, 57, 53), 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
    width: fit-content;
}

.badge-soft-success {
    background-color: rgba(var(--success-rgb, 67, 160, 71), 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    width: fit-content;
}

/* Small Text Utility */
.small-text {
    font-size: 0.75rem;
}

/* Font Weight Utility */
.fw-medium {
    font-weight: 500;
}

/* ===================================================================
   Progress Indicators
   =================================================================== */
.progress-circular {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(78, 115, 223, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.progress-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.progress-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.progress-dot:nth-child(1) { animation-delay: 0s; }
.progress-dot:nth-child(2) { animation-delay: 0.2s; }
.progress-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1.2); }
}

/* ===================================================================
   Notification Bell Component
   =================================================================== */
.notification-dropdown .navbar-icon-btn {
    position: relative;
}

.notification-bell-badge {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.notification-dropdown-menu {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.notification-list {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: var(--bg-card);
}

.notification-list::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 3px;
}

.notification-dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.notification-dropdown-item:hover {
    background-color: var(--bg-body);
}

.notification-dropdown-item.unread {
    background-color: rgba(78, 115, 223, 0.05);
    border-left: 3px solid var(--primary);
}

.notification-dropdown-item:last-child {
    border-bottom: none;
}

.notification-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

/* ===================================================================
   Multi-Select Control
   =================================================================== */
.multiselect-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.375rem;
    background-color: var(--bg-card);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.multiselect-control:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.multiselect-control option {
    padding: 0.5rem;
    cursor: pointer;
}

.multiselect-control option:checked {
    background: linear-gradient(0deg, var(--primary) 0%, var(--primary) 100%);
    color: white;
}

.multiselect-control option:hover {
    background-color: var(--bg-body);
}

/* ===================================================================
   Comment Styles
   =================================================================== */
.comment-item {
    border-left: 3px solid var(--border-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.comment-item:hover {
    border-left-color: var(--primary);
}

.comment-item.reply {
    margin-left: 2rem;
    margin-top: 1rem;
    border-left-color: var(--text-muted);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.comment-author {
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.comment-edited-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
}

.comment-content {
    margin-left: 2.5rem;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-actions {
    margin-left: 2.5rem;
    margin-top: 0.5rem;
    display: flex;
    gap: 0.75rem;
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-action-btn:hover {
    color: var(--primary);
}

.comment-action-btn.delete-btn:hover {
    color: var(--danger);
}

.reply-form {
    margin-left: 2.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-body);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.comments-container {
    max-height: none;
}

.comment-replies {
    margin-top: 0.5rem;
}

/* Animation for new comments */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item.new-comment {
    animation: slideIn 0.3s ease-out;
}

/* Loading state */
.comment-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state styling */
#noCommentsMessage i {
    opacity: 0.3;
}

/* ===================================================================
   Global Search Dropdown
   =================================================================== */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1050;
}

.search-result-item:hover,
.search-result-item.active {
    background-color: var(--bg-body);
}

.search-result-item mark {
    background-color: rgba(var(--warning-rgb, 251, 140, 0), 0.25);
    padding: 0;
    border-radius: 2px;
}

/* ===================================================================
   Shared Report Page
   =================================================================== */
.shared-report-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.share-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.share-info-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.report-viewer {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    min-height: 400px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.password-form {
    max-width: 400px;
    margin: 2rem auto;
}

/* Icon Circle - large circular icon display */
.icon-circle-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-circle-lg.icon-circle-primary {
    background: rgba(var(--primary-rgb), 0.1);
}

.icon-circle-lg.icon-circle-danger {
    background: rgba(229, 68, 68, 0.1);
}

/* ===================================================================
   Error Page Card Headers
   =================================================================== */
.error-card-header {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.error-card-header.error-warning {
    background: var(--warning);
    color: var(--text-dark);
}

.error-card-header.error-danger {
    background: var(--danger);
    color: white;
}

.error-card-header.error-info {
    background: var(--info);
    color: white;
}

.error-card-header.error-secondary {
    background: var(--text-muted);
    color: white;
}

/* ===================================================================
   Notification Type Icon Styles
   =================================================================== */
/* Notification icon box - base styles already defined above */
.notification-icon-box.notification-icon-success,
.notification-icon-box.notification-icon-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.notification-icon-box.notification-icon-danger,
.notification-icon-box.notification-icon-failed,
.notification-icon-box.notification-icon-revoked {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.notification-icon-box.notification-icon-info,
.notification-icon-box.notification-icon-scheduled {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.notification-icon-box.notification-icon-warning,
.notification-icon-box.notification-icon-alert {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.notification-icon-box.notification-icon-purple,
.notification-icon-box.notification-icon-shared {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.notification-icon-box.notification-icon-primary,
.notification-icon-box.notification-icon-default {
    background: rgba(78, 115, 223, 0.1);
    color: #4e73df;
}

/* Notification bell badge positioning */
.notification-bell-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 1.5em;
    height: 1.5em;
    display: none;
    align-items: center;
    justify-content: center;
}

.notification-bell-badge.show {
    display: inline-flex;
}

/* Toast container z-index */
.toast-container {
    z-index: 9999;
}

/* Fade-in animation for content replacement */
.content-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================================================
   Utility Classes - Replacing Inline Styles
   =================================================================== */

/* Notification Dropdown Dimensions */
.notification-dropdown-menu {
    width: 380px;
    max-height: 550px;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Spinner Sizes */
.spinner-lg {
    width: 3rem;
    height: 3rem;
}

/* Table Column Widths */
.table-col-5 {
    width: 5%;
}

.table-col-10 {
    width: 10%;
}

.table-col-15 {
    width: 15%;
}

.table-col-20 {
    width: 20%;
}

.table-col-25 {
    width: 25%;
}

.table-col-35 {
    width: 35%;
}

.table-col-37 {
    width: 37.5%;
}

/* Stack trace display */
.stack-trace-display {
    font-size: 0.85rem;
    white-space: pre-wrap;
}

/* Bulk Action Select Auto Width */
.bulk-action-select {
    width: auto;
}

/* Text Decoration None */
.text-decoration-none {
    text-decoration: none;
}

/* Small Font Size */
.fs-xs {
    font-size: 0.75rem;
}

.fs-xxs {
    font-size: 0.5rem;
}

/* Letter Spacing */
.letter-spacing-wide {
    letter-spacing: 0.5px;
}

/* Pre-wrap for code display */
.white-space-pre-wrap {
    white-space: pre-wrap;
}

/* Min Height for Textareas */
.min-h-150 {
    min-height: 150px;
}

/* Search Dropdown Initial State */
.search-dropdown {
    display: none;
}

/* Slide Toggle Animation Classes */
.slide-toggle {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.slide-toggle.collapsed {
    max-height: 0;
    opacity: 0;
}

.slide-toggle.expanded {
    max-height: 500px;
    opacity: 1;
}

/* Reply Form Animation */
.reply-form {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.reply-form.show {
    max-height: 300px;
    opacity: 1;
    padding: 1rem 0;
}

/* Add Comment Form Animation */
#addCommentForm {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#addCommentForm.d-none {
    max-height: 0;
    opacity: 0;
}

#addCommentForm:not(.d-none) {
    max-height: 300px;
    opacity: 1;
}
/* Keep height and padding similar to Bootstrap inputs */
.select2-container .select2-selection--single {
    height: 40px !important; /* Force 40px height */
    padding: 0.375rem 0.75rem; /* Bootstrap-like padding */
    font-size: 1rem; /* Match Bootstrap font size */
    box-sizing: border-box; /* Include padding/border in height */
    line-height: 40px !important; /* Vertically center text */
    cursor: pointer;
    display: block;
    user-select: none;
}

 

/* Arrow alignment */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important; /* Match box height */
    top: 0 !important; /* Align arrow vertically */
}

/* Dropdown styling */
.select2-container .select2-dropdown {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}

/* ===================================================================
   Legacy report parameter forms (Razor Index views under /Reports/...)
   Wider controls, aligned label/value rows, fewer clipped select labels
   =================================================================== */
form.legacy-report-parameters .row.mb-3 {
    align-items: flex-start;
}

form.legacy-report-parameters .row.mb-3 > [class*="col-"] {
    min-width: 0;
}

form.legacy-report-parameters .row.mb-3 > .col-form-label {
    padding-top: calc(0.375rem + 1px);
}

form.legacy-report-parameters .form-select,
form.legacy-report-parameters .form-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    /* Default layout: label col-md-3 + control col-md-4 leaves unused space; give controls more width */
    form.legacy-report-parameters .row.mb-3 > .col-md-4:not(.offset-md-3):not(.offset-md-4),
    form.legacy-report-parameters .row.mb-3 > .col-md-5:not(.offset-md-3):not(.offset-md-4) {
        flex: 1 1 auto;
        max-width: min(100%, 42rem);
    }

    form.legacy-report-parameters .row.mb-3 > .col-md-3.col-form-label {
        flex: 0 0 22%;
        max-width: 22%;
    }
}

/* Select2 inside legacy forms matches Bootstrap control width */
form.legacy-report-parameters .select2-container {
    width: 100% !important;
    max-width: 100%;
}

/* Helper text under selects (e.g. "Select Merchant") must not clip */
form.legacy-report-parameters .form-text,
form.legacy-report-parameters small.text-muted {
    display: block;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    margin-top: 0.35rem;
    line-height: 1.4;
    max-width: 100%;
}
