:root {
     --primary: #4f46e5;
     --primary-hover: #4338ca;
     --secondary: #64748b;
     --accent: #f59e0b;
     --bg-body: #f8fafc;
     --bg-sidebar: #0f172a;
     --text-main: #1e293b;
     --text-muted: #64748b;
     --border-color: rgba(226, 232, 240, 0.8);
     --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
     font-family: 'Poppins', sans-serif;
     color: var(--text-main);
     background-color: var(--bg-body);
     overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
     width: 6px;
     height: 6px;
}

::-webkit-scrollbar-track {
     background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
     background: #cbd5e1;
     border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
     background: #94a3b8;
}

/* Layout Configuration */
.wrapper {
     display: flex;
     width: 100vw;
     height: 100vh;
     overflow: hidden;
}

#sidebar {
     flex: 0 0 270px;
     background: var(--bg-sidebar) !important;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
     z-index: 1000;
     overflow-y: auto;
}

#sidebar.active {
     margin-left: -270px;
}

#content {
     flex: 1;
     overflow-y: auto;
     background: var(--bg-body);
     transition: all 0.3s;
     display: flex;
     flex-direction: column;
}

.content-container {
     padding: 2rem;
     flex: 1;
}

/* Sidebar Styling */
.sidebar-header {
     background: rgba(255, 255, 255, 0.02);
}

.sidebar-header h4 {
     font-weight: 700;
     letter-spacing: 0.5px;
     background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
}

#sidebar .components {
     padding: 1.5rem;
}

#sidebar .components li a {
     font-weight: 500;
     font-size: 0.95rem;
     color: #94a3b8;
     transition: all 0.3s;
     border-radius: 12px;
     margin-bottom: 5px;
     display: flex;
     align-items: center;
     padding: 0.8rem 1.2rem;
     text-decoration: none;
}

#sidebar .components li a i {
     width: 25px;
     font-size: 1.1rem;
     margin-right: 12px;
}

#sidebar .components li a:hover,
#sidebar .components li.active a {
     background: rgba(79, 70, 229, 0.1) !important;
     color: #fff !important;
     transform: translateX(5px);
}

#sidebar .components li.active a {
     color: #fff !important;
     background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%) !important;
}

/* Content Area */
.navbar {
     background: rgba(255, 255, 255, 0.8) !important;
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     border-bottom: 1px solid var(--border-color);
     padding: 1rem 2rem;
}

/* Modern Cards */
.card {
     border: 1px solid var(--border-color);
     box-shadow: var(--card-shadow);
     transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.card:hover {
     box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
     background: #fff;
     border-bottom: 1px solid var(--border-color);
     padding: 1.25rem;
}

/* Stats Widgets */
.stat-card-icon {
     width: 50px;
     height: 50px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 15px;
}

/* Glass Buttons */
.btn-primary {
     background: var(--primary);
     border-color: var(--primary);
}

.btn-primary:hover {
     background: var(--primary-hover);
     border-color: var(--primary-hover);
     box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.rounded-pill-lg {
     border-radius: 50px;
     padding-left: 1.5rem;
     padding-right: 1.5rem;
}

/* Table Styling */
.table thead th {
     font-weight: 600;
     text-transform: uppercase;
     font-size: 0.75rem;
     letter-spacing: 0.5px;
     color: var(--text-muted);
     border-bottom-width: 1px;
     background: #f8fafc;
}

.table tbody td {
     font-size: 0.9rem;
     vertical-align: middle;
}

/* Form Styling */
.form-control,
.form-select {
     border-radius: 10px;
     border: 1px solid #e2e8f0;
     padding: 0.6rem 1rem;
     font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
     border-color: var(--primary);
     box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Badges */
.badge {
     padding: 0.5em 1em;
     font-weight: 500;
}

/* Responsive sidebar */
@media (max-width: 992px) {
     #sidebar {
          margin-left: -270px;
          position: fixed;
          height: 100vh;
     }

     #sidebar.active {
          margin-left: 0;
     }
}

.hover-bg-light:hover {
     background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Utilities */
.btn-white {
     background: #fff;
     color: var(--text-main);
     border: 1px solid var(--border-color);
}

.btn-white:hover {
     background: #f8fafc;
     color: var(--primary);
}

.bg-indigo-soft {
     background: rgba(79, 70, 229, 0.1) !important;
}

.rounded-pill-lg {
     border-radius: 50px;
     padding: 0.8rem 2rem;
}