:root {
    /* Color Palette - Premium Dark Mode */
    --bg-main: #0a0a0f;
    --bg-sidebar: rgba(15, 15, 20, 0.7);
    --bg-card: rgba(25, 25, 35, 0.6);
    --bg-card-hover: rgba(35, 35, 45, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    
    --accent-primary: #3b82f6; /* Bright Blue */
    --accent-primary-glow: rgba(59, 130, 246, 0.5);
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;

    --border-color: rgba(255, 255, 255, 0.08);
    
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Background Glow Effects */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo h2 {
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: var(--accent-primary);
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 14px;
    transition: var(--transition-fast);
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.nav-item.active .material-icons-round {
    color: var(--accent-primary);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.user-profile .avatar {
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Header */
.top-header {
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 5;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 12px;
    width: 300px;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.search-bar:focus-within {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar .material-icons-round {
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.badge {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary-glow);
}

.primary-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px var(--accent-primary-glow);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-primary-glow);
}

/* Dashboard Content */
.dashboard-wrapper {
    padding: 40px;
    max-width: 1400px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.kpi-card {
    padding: 24px;
    transition: var(--transition-smooth);
}

.kpi-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.kpi-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-primary); }
.kpi-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.kpi-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.kpi-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--accent-orange); }

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.kpi-trend.positive { color: var(--accent-green); }
.kpi-trend.negative { color: var(--accent-red); }

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.col-span-2 {
    grid-column: span 2;
}

.bento-card {
    padding: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.text-btn {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-weight: 500;
    cursor: pointer;
}

.text-btn:hover {
    text-decoration: underline;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.blue-badge { background: rgba(59, 130, 246, 0.1); color: var(--accent-primary); }
.purple-badge { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.orange-badge { background: rgba(245, 158, 11, 0.1); color: var(--accent-orange); }

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.success { background: var(--accent-green); box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.status-dot.warning { background: var(--accent-orange); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }

/* Quick Actions */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.action-card .material-icons-round {
    font-size: 28px;
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none; /* Add hamburger menu logic for mobile */
    }
    .dashboard-wrapper {
        padding: 20px;
    }
}
