/**
 * Inventory Management System - Custom Styles
 */

:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 0px;
    --sidebar-bg: #2c3e50;
    --sidebar-hover: #34495e;
    --primary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Wrapper */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   MODERN SIDEBAR STYLES
   ============================================ */

.modern-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.modern-sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
}

/* Sidebar Header */
.modern-sidebar .sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.modern-sidebar .sidebar-logo {
    max-height: 38px;
    max-width: 140px;
    object-fit: contain;
}

.modern-sidebar .sidebar-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.modern-sidebar .sidebar-brand-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Body */
.modern-sidebar .sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.modern-sidebar .sidebar-body::-webkit-scrollbar {
    width: 5px;
}

.modern-sidebar .sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}

.modern-sidebar .sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.modern-sidebar .sidebar-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Sidebar Nav */
.modern-sidebar .sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-sidebar .sidebar-nav .nav-header {
    padding: 1.25rem 1.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(148, 163, 184, 0.6);
}

.modern-sidebar .sidebar-nav .nav-header span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-sidebar .sidebar-nav .nav-header span::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.modern-sidebar .sidebar-nav .nav-item {
    margin: 2px 0.75rem;
}

.modern-sidebar .sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    color: rgba(203, 213, 225, 0.9);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
}

.modern-sidebar .sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.modern-sidebar .sidebar-nav .nav-link.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.modern-sidebar .sidebar-nav .nav-link .nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modern-sidebar .sidebar-nav .nav-link .nav-icon i {
    font-size: 1rem;
}

.modern-sidebar .sidebar-nav .nav-link:hover .nav-icon {
    background: rgba(255, 255, 255, 0.1);
}

.modern-sidebar .sidebar-nav .nav-link.active .nav-icon {
    background: rgba(255, 255, 255, 0.2);
}

.modern-sidebar .sidebar-nav .nav-link span {
    flex: 1;
}

/* Nav Badges */
.modern-sidebar .nav-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
    margin-left: auto;
    margin-right: 0.5rem;
}

.modern-sidebar .nav-badge-sm {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Submenu Arrow */
.modern-sidebar .submenu-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: rgba(148, 163, 184, 0.5);
}

.modern-sidebar .nav-link[aria-expanded="true"] .submenu-arrow {
    transform: rotate(90deg);
}

/* Submenu */
.modern-sidebar .submenu {
    list-style: none;
    padding: 0.25rem 0 0.25rem 0;
    margin: 0;
}

.modern-sidebar .submenu .nav-link {
    padding: 0.5rem 1rem 0.5rem 3.25rem;
    font-size: 0.8125rem;
    color: rgba(148, 163, 184, 0.85);
    position: relative;
}

.modern-sidebar .submenu .nav-link i.bi-circle {
    font-size: 0.35rem;
    margin-right: 0.75rem;
    opacity: 0.5;
}

.modern-sidebar .submenu .nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.modern-sidebar .submenu .nav-link:hover i.bi-circle {
    opacity: 1;
}

/* Sidebar Footer */
.modern-sidebar .sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.modern-sidebar .sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-sidebar .sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.modern-sidebar .sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.modern-sidebar .sidebar-user-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-sidebar .sidebar-user-role {
    display: block;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.7);
}

.modern-sidebar .sidebar-logout {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    text-decoration: none;
}

.modern-sidebar .sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Legacy sidebar support */
.sidebar:not(.modern-sidebar) {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar:not(.modern-sidebar).collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
}

.sidebar:not(.modern-sidebar) .sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar:not(.modern-sidebar) .sidebar-header h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar:not(.modern-sidebar) .sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
}

.sidebar:not(.modern-sidebar) .sidebar-nav .nav-item {
    margin: 0.125rem 0;
}

.sidebar:not(.modern-sidebar) .sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar:not(.modern-sidebar) .sidebar-nav .nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar:not(.modern-sidebar) .sidebar-nav .nav-link.active {
    background: var(--primary-color);
    color: #fff;
}

.sidebar:not(.modern-sidebar) .sidebar-nav .nav-link i {
    width: 24px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.sidebar:not(.modern-sidebar) .sidebar-nav .nav-link .bi-chevron-down {
    width: auto;
    margin-right: 0;
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.sidebar:not(.modern-sidebar) .sidebar-nav .nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar:not(.modern-sidebar) .sidebar-nav .nav-header {
    padding: 1rem 1rem 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Submenu - Legacy */
.sidebar:not(.modern-sidebar) .sidebar-nav .submenu {
    list-style: none;
    padding-left: 0;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar:not(.modern-sidebar) .sidebar-nav .submenu .nav-link {
    padding: 0.5rem 1rem 0.5rem 3rem;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 0;
}

/* Top Navbar */
.navbar:not(.modern-navbar) {
    height: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#sidebarToggle {
    padding: 0;
    border: none;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.25rem;
}

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

/* Stat Cards */
.stat-card {
    border-radius: 0.5rem;
    padding: 1.25rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stat-card.primary { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.stat-card.success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-card.warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.stat-card.info { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.stat-card.danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.stat-card.teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }

.stat-card .stat-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.3;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
    font-size: 0.875rem;
}

/* Forms */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.375rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Buttons */
.btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h4 {
    margin: 0;
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 0.4em 0.65em;
}


/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1050 !important;
}

/* Footer */
.footer {
    margin-top: auto;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-card h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Action Buttons */
.action-btns .btn {
    padding: 0.25rem 0.5rem;
    margin: 0 0.125rem;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

/* Alert customization */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Product Image */
.product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Low stock indicator */
.low-stock {
    color: var(--danger-color);
    font-weight: 600;
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .footer,
    .btn,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar,
    .modern-sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }

    .sidebar.show,
    .modern-sidebar.show {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Custom scrollbar for sidebar */
.sidebar:not(.modern-sidebar)::-webkit-scrollbar {
    width: 6px;
}

.sidebar:not(.modern-sidebar)::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar:not(.modern-sidebar)::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar:not(.modern-sidebar)::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Quick stats row */
.quick-stats .stat-box {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid #eee;
}

.quick-stats .stat-box:last-child {
    border-right: none;
}

.quick-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.quick-stats .stat-text {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Chart Styles */
.chart-container {
    position: relative;
    min-height: 250px;
}

.card canvas {
    max-width: 100%;
}

/* Chart card heights for consistency */
.card .card-body canvas {
    min-height: 200px;
}

/* Dashboard improvements */
.dashboard-chart-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Stat card improvements */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Top products ranking */
.rank-badge {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

.rank-1 { background: #ffd700; color: #000; }
.rank-2 { background: #c0c0c0; color: #000; }
.rank-3 { background: #cd7f32; color: #fff; }

/* Chart legend improvements */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* ============================================
   MODERN NAVBAR STYLES
   ============================================ */

.modern-navbar {
    height: 70px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1020;
    overflow: visible;
}

.modern-navbar .dropdown {
    position: relative;
}

.modern-navbar .dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important;
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f1f3f4;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.sidebar-toggle i {
    font-size: 1.4rem;
}

.navbar-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.navbar-greeting {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.navbar-date {
    font-size: 0.8rem;
    color: #718096;
}

/* Navbar Search */
.navbar-search {
    margin-right: 1rem;
}

.navbar-search .input-group {
    background: #f1f3f4;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.navbar-search .input-group:focus-within {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.navbar-search .input-group-text {
    border: none;
    padding: 0.5rem 0.75rem;
}

.navbar-search .form-control {
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem 0.5rem 0;
    font-size: 0.875rem;
    width: 200px;
}

.navbar-search .form-control:focus {
    box-shadow: none;
    width: 250px;
}

.navbar-search .form-control::placeholder {
    color: #a0aec0;
}

/* Branch Indicator */
.navbar-branch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #e8f4fd 0%, #d6e9f8 100%);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.navbar-branch i {
    font-size: 0.9rem;
}

/* Navbar Icon Buttons */
.navbar-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f1f3f4;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    color: #4a5568;
}

.navbar-icon-btn:hover {
    background: #e2e8f0;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-icon-btn i {
    font-size: 1.2rem;
}

.navbar-icon-btn.has-notification {
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Notification Dropdown */
.notification-dropdown {
    width: 340px;
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

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

.notification-body {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.9rem;
}

.notification-content small {
    font-size: 0.8rem;
}

.notification-footer {
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.notification-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* User Dropdown */
.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border-radius: 14px;
    background: #f1f3f4;
    border: none;
    transition: all 0.2s ease;
}

.user-dropdown-btn:hover {
    background: #e2e8f0;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

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

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

.user-dropdown-btn i {
    color: #a0aec0;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.user-dropdown {
    width: 280px;
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-top: 0.5rem;
}

.user-dropdown .dropdown-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.user-dropdown .dropdown-divider {
    margin: 0;
    border-color: #f1f5f9;
}

.user-dropdown .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: #4a5568;
    transition: all 0.2s ease;
}

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

.user-dropdown .dropdown-item i {
    width: 20px;
    color: #a0aec0;
}

.user-dropdown .dropdown-item:hover i {
    color: var(--primary-color);
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.user-dropdown .dropdown-item.text-danger:hover i {
    color: #dc2626;
}

/* ============================================
   MODERN FOOTER STYLES
   ============================================ */

.modern-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.footer-brand i {
    color: var(--primary-color);
}

.footer-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
}

.footer-copyright {
    color: #718096;
    font-size: 0.85rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #718096;
    padding: 0.375rem 0.75rem;
    background: #f1f3f4;
    border-radius: 8px;
}

.footer-stat i {
    font-size: 0.9rem;
}

.footer-version {
    font-size: 0.75rem;
    color: #a0aec0;
    padding: 0.25rem 0.75rem;
    background: #f1f3f4;
    border-radius: 6px;
    font-weight: 500;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-content {
        justify-content: center;
        text-align: center;
    }

    .footer-left, .footer-right {
        width: 100%;
        justify-content: center;
    }

    .footer-divider {
        display: none;
    }
}

/* Navbar responsive adjustments */
@media (max-width: 991.98px) {
    .modern-navbar {
        height: auto;
        padding: 0.75rem 0;
    }

    .navbar-search {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .navbar-branch {
        display: none !important;
    }

    .user-dropdown-btn {
        padding: 0.25rem;
        background: transparent;
    }
}
