 :root {
     --sidebar-width: 260px;
     --sidebar-collapsed: 70px;
     --primary: #4F46E5;
     --secondary: #7C3AED;
     --dark: #1F2937;
     --light: #F9FAFB;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     background: var(--light);
     overflow-x: hidden;
 }

 /* Navbar */
 .navbar {
     background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     position: fixed;
     top: 0;
     width: 100%;
     z-index: 1030;
     padding: 0.8rem 1rem;
 }

 .navbar-brand {
     color: white !important;
     font-weight: 700;
     font-size: 1.5rem;
 }

 .navbar .btn {
     color: white;
     border: none;
 }

 .navbar .dropdown-toggle::after {
     display: none;
 }

 .user-avatar {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     border: 2px solid white;
 }

 /* Sidebar */
 .sidebar {
     position: fixed;
     top: 70px;
     left: 0;
     height: calc(100vh - 70px);
     width: var(--sidebar-width);
     background: white;
     box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
     transition: all 0.3s ease;
     z-index: 1020;
     overflow-y: auto;
 }

 .sidebar.collapsed {
     width: var(--sidebar-collapsed);
 }

 .sidebar-menu {
     list-style: none;
     padding: 1rem 0;
 }

 .sidebar-menu li {
     margin: 0.2rem 0;
 }

 .sidebar-menu a {
     display: flex;
     align-items: center;
     padding: 0.9rem 1.5rem;
     color: #6B7280;
     text-decoration: none;
     transition: all 0.3s ease;
     position: relative;
 }

 .sidebar-menu a:hover {
     background: linear-gradient(90deg, rgba(79, 70, 229, 0.1) 0%, transparent 100%);
     color: var(--primary);
 }

 .sidebar-menu a.active {
     background: linear-gradient(90deg, rgba(79, 70, 229, 0.15) 0%, transparent 100%);
     color: var(--primary);
     border-left: 3px solid var(--primary);
 }

 .sidebar-menu a i {
     width: 24px;
     margin-right: 1rem;
     font-size: 1.2rem;
 }

 .sidebar.collapsed .sidebar-menu a span {
     display: none;
 }

 .sidebar.collapsed .sidebar-menu a {
     justify-content: center;
     padding: 0.9rem 0;
 }

 .sidebar.collapsed .sidebar-menu a i {
     margin-right: 0;
 }

 /* Main Content */
 .main-content {
     margin-left: var(--sidebar-width);
     margin-top: 70px;
     padding: 2rem;
     transition: margin-left 0.3s ease;
     min-height: calc(100vh - 130px);
 }

 .main-content.expanded {
     margin-left: var(--sidebar-collapsed);
 }

 /* Header */
 .content-header {
     background: white;
     padding: 1.5rem;
     border-radius: 12px;
     margin-bottom: 2rem;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
 }

 .content-header h2 {
     color: var(--dark);
     font-weight: 600;
     margin: 0;
 }

 .breadcrumb {
     background: transparent;
     margin: 0;
     padding: 0.5rem 0 0 0;
 }

 /* Cards */
 .stat-card {
     background: white;
     border-radius: 12px;
     padding: 1.5rem;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     border: none;
 }

 .stat-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
 }

 .stat-card .icon {
     width: 60px;
     height: 60px;
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.5rem;
     margin-bottom: 1rem;
 }

 .stat-card h3 {
     font-size: 2rem;
     font-weight: 700;
     margin: 0;
     color: var(--dark);
 }

 .stat-card p {
     color: #6B7280;
     margin: 0.5rem 0 0 0;
 }

 .stat-card .badge {
     font-size: 0.75rem;
 }

 /* Chart Card */
 .chart-card {
     background: white;
     border-radius: 12px;
     padding: 1.5rem;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
     margin-top: 2rem;
 }

 /* Table */
 .table-card {
     background: white;
     border-radius: 12px;
     padding: 1.5rem;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
     margin-top: 2rem;
 }

 .table {
     margin: 0;
 }

 .table thead th {
     border-bottom: 2px solid #E5E7EB;
     font-weight: 600;
     color: var(--dark);
     padding: 1rem;
 }

 .table tbody td {
     padding: 1rem;
     vertical-align: middle;
 }

 /* Footer */
 footer {
     background: white;
     padding: 1.5rem 2rem;
     margin-left: var(--sidebar-width);
     margin-top: 2rem;
     border-top: 1px solid #E5E7EB;
     transition: margin-left 0.3s ease;
 }

 footer.expanded {
     margin-left: var(--sidebar-collapsed);
 }

 /* Responsive */
 @media (max-width: 768px) {
     .sidebar {
         left: -260px;
     }

     .sidebar.show {
         left: 0;
     }

     .main-content {
         margin-left: 0;
     }

     footer {
         margin-left: 0;
     }

     .sidebar-overlay {
         display: none;
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         background: rgba(0, 0, 0, 0.5);
         z-index: 1015;
     }

     .sidebar-overlay.show {
         display: block;
     }
 }

 /* Notification Badge */
 .notification-badge {
     position: absolute;
     top: -5px;
     right: -5px;
     background: #EF4444;
     color: white;
     border-radius: 50%;
     width: 20px;
     height: 20px;
     font-size: 0.7rem;
     display: flex;
     align-items: center;
     justify-content: center;
 }