:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --primary-color: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    /* GitHub Primer-inspired Typography Scale */
    --font-size-base: 14px;
    --font-size-small: 12px;
    --font-size-h1: 24px;
    --font-size-h2: 20px;
    --font-size-h3: 18px;
    --font-size-h4: 16px;
    --font-size-h5: 14px;
    --font-size-h6: 12px;
    
    /* GitHub Primer-inspired Input Sizes */
    --input-height: 32px;
    --input-height-lg: 40px;
    --input-font-size: 14px;
    --input-padding-x: 12px;
    --input-padding-y: 5px;
    --button-height: 32px;
    --button-font-size: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.5;
    background-color: #f6f8fa;
    color: #1f2328;
}

/* GitHub Primer-inspired Typography */
h1, .h1 { font-size: var(--font-size-h1); font-weight: 600; line-height: 1.25; }
h2, .h2 { font-size: var(--font-size-h2); font-weight: 600; line-height: 1.25; }
h3, .h3 { font-size: var(--font-size-h3); font-weight: 600; line-height: 1.25; }
h4, .h4 { font-size: var(--font-size-h4); font-weight: 600; line-height: 1.5; }
h5, .h5 { font-size: var(--font-size-h5); font-weight: 600; line-height: 1.5; }
h6, .h6 { font-size: var(--font-size-h6); font-weight: 600; line-height: 1.5; }

/* GitHub Primer-inspired Form Controls */
.form-control {
    font-size: var(--input-font-size) !important;
    padding: var(--input-padding-y) var(--input-padding-x) !important;
    min-height: var(--input-height) !important;
    line-height: 1.5 !important;
    border-radius: 6px !important;
    border: 1px solid #d0d7de !important;
    background-color: #ffffff !important;
    color: #1f2328 !important;
}

.form-control:focus {
    border-color: #0969da !important;
    box-shadow: inset 0 0 0 1px #0969da !important;
    outline: none !important;
}

.form-control::placeholder {
    color: #6e7781 !important;
}

/* Form control sizes */
.form-control-sm {
    min-height: 28px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
}

.form-control-lg {
    min-height: var(--input-height-lg) !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
}

/* GitHub Primer-inspired Select */
.form-select {
    font-size: var(--input-font-size) !important;
    padding: var(--input-padding-y) var(--input-padding-x) !important;
    min-height: var(--input-height) !important;
    border-radius: 6px !important;
    border: 1px solid #d0d7de !important;
}

/* Input Group Styling for consistent heights */
.input-group .form-control {
    min-height: var(--input-height) !important;
}

.input-group-text {
    font-size: var(--input-font-size) !important;
    padding: var(--input-padding-y) var(--input-padding-x) !important;
    min-height: var(--input-height) !important;
    line-height: 1.5 !important;
    border-radius: 0 6px 6px 0 !important;
    border: 1px solid #d0d7de !important;
    background-color: #f6f8fa !important;
    color: #57606a !important;
}

.input-group .form-control:first-child {
    border-radius: 6px 0 0 6px !important;
}

/* GitHub Primer-inspired Buttons */
.btn {
    font-size: var(--button-font-size) !important;
    font-weight: 500 !important;
    padding: 5px 16px !important;
    min-height: var(--button-height) !important;
    border-radius: 6px !important;
    line-height: 20px !important;
}

.btn-sm {
    font-size: 12px !important;
    padding: 3px 12px !important;
    min-height: 28px !important;
}

.btn-lg {
    font-size: 16px !important;
    padding: 8px 20px !important;
    min-height: var(--input-height-lg) !important;
}

/* GitHub Primer-inspired Labels */
.form-label, label {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #1f2328;
    margin-bottom: 4px;
}

.form-text, small, .text-muted {
    font-size: var(--font-size-small) !important;
    color: #656d76 !important;
}

/* GitHub Primer-inspired Cards */
.card {
    border: 1px solid #d0d7de !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(31, 35, 40, 0.12), 0 8px 24px rgba(66, 74, 83, 0.08) !important;
    transition: box-shadow 0.2s ease-in-out !important;
}

.card:hover {
    box-shadow: 0 3px 6px rgba(31, 35, 40, 0.15), 0 12px 28px rgba(66, 74, 83, 0.12) !important;
}

/* Dashboard stat cards with enhanced shadow */
.dashboard-card,
.stat-card {
    box-shadow: 0 1px 3px rgba(31, 35, 40, 0.12), 0 8px 24px rgba(66, 74, 83, 0.08) !important;
}

.dashboard-card:hover,
.stat-card:hover {
    box-shadow: 0 4px 12px rgba(31, 35, 40, 0.18), 0 16px 32px rgba(66, 74, 83, 0.14) !important;
    transform: translateY(-2px);
}

.card-header {
    background-color: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
    padding: 12px 16px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #1f2328;
}

/* Allow Bootstrap background color classes to override */
.card-header.bg-primary {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-bottom-color: var(--primary-color) !important;
}

.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-primary i {
    color: #fff !important;
}

.card-body {
    padding: 16px !important;
}

/* GitHub Primer-inspired Tables */
.table {
    font-size: var(--font-size-base) !important;
}

.table th {
    font-weight: 600 !important;
    background-color: #f6f8fa !important;
    border-bottom: 1px solid #d0d7de !important;
}

.table td, .table th {
    padding: 8px 16px !important;
    border-color: #d0d7de !important;
}

/* GitHub Primer-inspired Badges */
.badge {
    font-size: var(--font-size-small) !important;
    font-weight: 500 !important;
    padding: 2px 8px !important;
    border-radius: 2em !important;
}

/* Required Field Asterisk Styling */
.asteriskField {
    color: #dc3545 !important;
    font-weight: bold;
}

label .asteriskField,
.form-label .asteriskField {
    color: #dc3545 !important;
}

/* For Django forms that output asterisks */
.required label:after,
label.required:after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Ensure all asterisks in labels are red */
label span:contains("*"),
.form-label span:contains("*") {
    color: #dc3545 !important;
}

/* Direct asterisk styling for inline use */
label > *:contains("*"),
.form-label > *:contains("*") {
    color: #dc3545 !important;
}

/* Ensure Bootstrap text-danger is red for asterisks */
.text-danger {
    color: #dc3545 !important;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

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

.sidebar-header h4 {
    color: white;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0;
}

.sidebar-menu li {
    margin: 0.125rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.sidebar-menu a:hover {
    background: var(--sidebar-hover);
    color: white;
}

.sidebar-menu a.active {
    background: var(--primary-color);
    color: white;
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
}

.sidebar-menu a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-menu a i {
    font-size: 1rem;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu a .badge {
    margin-left: auto;
    font-size: 0.7rem;
}

/* Menu Section Headers */
.menu-section-header {
    padding: 0.875rem 1rem 0.375rem 1rem;
    margin-top: 0.5rem;
}

.menu-section-header:first-child {
    margin-top: 0;
}

.menu-section-header span {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

.sidebar-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.sidebar-footer a {
    display: block;
    margin: 0;
    padding: 0;
}

.sidebar-footer a span,
.sidebar-footer a i {
    margin: 0;
}

/* Collapsed Sidebar Styles */
.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-header {
    padding: 10px;
    justify-content: center;
}

.sidebar.collapsed .sidebar-header span {
    display: none;
}

.sidebar.collapsed .sidebar-header img {
    margin-right: 0 !important;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.sidebar.collapsed .sidebar-menu a i {
    margin-right: 0;
    font-size: 1rem;
}

.sidebar.collapsed .sidebar-menu a span {
    display: none;
}

.sidebar.collapsed .sidebar-menu a .badge {
    display: none;
}

.sidebar.collapsed .menu-section-header {
    padding: 0.5rem;
    text-align: center;
}

.sidebar.collapsed .menu-section-header span {
    display: none;
}

.sidebar.collapsed .menu-section-header::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

.sidebar.collapsed .sidebar-footer {
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.sidebar.collapsed .sidebar-footer a {
    justify-content: center;
}

.sidebar.collapsed .sidebar-footer a span {
    display: none;
}

.sidebar.collapsed .sidebar-footer a i {
    font-size: 1rem;
}

/* Main Content adjustment for collapsed sidebar */
.main-content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .navbar {
    left: var(--sidebar-collapsed-width);
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .sidebar-menu a {
    position: relative;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s;
}

.content-wrapper {
    padding: 2rem;
    padding-top: 80px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 1040;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

.user-role {
    font-size: 0.75rem;
    color: #64748b;
}

.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.card-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #111827;
}

.card-header h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: inherit;
}

.card-header h5 i {
    color: inherit;
    margin-right: 0.5rem;
}

.card-header:not(.bg-primary):not(.bg-secondary):not(.bg-success):not(.bg-warning):not(.bg-danger):not(.bg-info):not(.bg-dark) h5 {
    color: #111827;
}

.card-header:not(.bg-primary):not(.bg-secondary):not(.bg-success):not(.bg-warning):not(.bg-danger):not(.bg-info):not(.bg-dark) h5 i {
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

/* Stats Cards */
.stats-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stats-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-card.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

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

.stats-card.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.stats-card i {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}

.stats-card .stats-title {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stats-card .stats-value {
    font-size: 2rem;
    font-weight: 700;
}

/* Tables */
.table {
    background: white;
    font-size: 0.875rem;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
}

.table tbody td {
    vertical-align: middle;
    padding: 0.4rem 0.75rem;
}

.table-sm tbody td,
.table-sm thead th {
    padding: 0.3rem 0.5rem;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    font-size: 0.938rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: block;
}

.form-label small {
    font-weight: 400;
    color: #6b7280;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    font-size: 0.813rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.form-check-label {
    font-weight: 500;
    color: #374151;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Search Bar */
.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input {
    padding-left: 2.75rem;
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.pagination-sm .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.page-link {
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.page-link:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.page-link:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    z-index: 3;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    z-index: 1;
}

.page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
    font-size: 1.3rem;
    color: #6c757d;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
    vertical-align: baseline;
    margin-top: -2px;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f6f8fa;
}

.login-card {
    max-width: 400px;
    width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.login-header {
    text-align: center;
    padding: 1rem 1rem 0.5rem;
}

.login-header h2 {
    font-weight: 600;
    color: #1f2328;
    margin-bottom: 0.5rem;
    font-size: 24px;
}

.login-header p {
    color: #656d76;
}

.login-body {
    padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .navbar {
        left: 0;
    }
}

/* Form Section Headings */
h6.border-bottom {
    font-size: 0.938rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb !important;
    margin-bottom: 1.25rem !important;
}

/* Alert Messages */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* Form Validation */
.invalid-feedback {
    font-size: 0.813rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .alert {
    animation: fadeIn 0.3s ease-in-out;
}

/* Fix Bootstrap 5 form-select dropdown arrow */
.form-select,
select.form-select,
select[class*="form-select"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 16px 12px !important;
    padding-right: 3rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Ensure form-control also has consistent styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Button Loading Spinner Styles */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.btn-loading.btn-sm .spinner-border {
    width: 0.875rem;
    height: 0.875rem;
}

.btn-loading.btn-lg .spinner-border {
    width: 1.25rem;
    height: 1.25rem;
}

/* Smooth transition for button state changes */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:disabled {
    cursor: not-allowed;
}

/* Collapsible Submenu Styles */
.sidebar-menu .dropdown-toggle {
    cursor: pointer;
}

.sidebar-menu .dropdown-toggle::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    border: none;
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 0.875rem;
}

.sidebar-menu .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

.sidebar-menu .collapse {
    transition: height 0.3s ease;
}

.sidebar-menu .collapse.show {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-menu .collapse a {
    padding-left: 3.5rem;
    font-size: 0.9rem;
}

.sidebar-menu .collapse a i {
    font-size: 1rem;
}

.sidebar-menu .collapse a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =============================================
   NOTIFICATION DROPDOWN STYLES
   ============================================= */

.notification-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 18px;
}

/* Ensure notification dropdown parent has proper stacking context */
.navbar .dropdown {
    position: relative;
}

.notification-dropdown {
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    z-index: 99999 !important;
    position: absolute !important;
}

.notification-header {
    background: #f9fafb;
}

.notification-header h6 {
    color: #374151;
    font-weight: 600;
}

.notification-list {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.notification-item {
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f9fafb;
}

.notification-item.unread {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.notification-item.unread:hover {
    background-color: #dbeafe;
}

.notification-item.read {
    opacity: 0.85;
}

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

.notification-item.unread .notification-icon {
    background: #e0e7ff;
}

.notification-title {
    font-size: 0.875rem;
    line-height: 1.3;
}

.notification-message {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-footer {
    background: #f9fafb;
}

.notification-footer a {
    color: #3b82f6;
    font-weight: 500;
}

.notification-footer a:hover {
    color: #2563eb;
}
