/* Dashboard Theme: Modern High-Density */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    
    --sidebar-bg: #102a43;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: #0ea5e9;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --sidebar-width: 260px;
    --header-height: 70px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: 'Outfit', sans-serif;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    min-height: 100vh;
    transition: all 0.3s;
    border-right: none;
}

.sidebar .nav-link {
    color: #cbd5e1;
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 0;
    transition: all 0.2s;
    padding: 10px 16px;
    font-size: 14px;
}

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

.sidebar .nav-link.active {
    background: var(--sidebar-active);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.workspace-selector {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Top Bar / Command Center */
.top-bar {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-container input {
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 16px 10px 40px;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s;
}

.search-container input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.search-container i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-light);
    pointer-events: none;
}

/* Banner */
.welcome-banner {
    background: linear-gradient(135deg, #075985 0%, #0ea5e9 100%);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* KPI Cards */
.kpi-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    transition: all 0.2s;
}

.kpi-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.kpi-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.trend-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    background: #ecfdf5;
    color: #059669;
}

.trend-down {
    background: #fef2f2;
    color: #dc2626;
}

/* Charts */
.chart-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* Buttons */
.btn-outline-custom {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-main);
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-outline-custom:hover {
    background: #f8fafc;
    border-color: var(--text-light);
}

.avatar-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
}


.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border-color);
}

/* Animations */
.pulse-green {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

