/* Reset & Variables */
:root {
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    z-index: -2;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite alternate ease-in-out;
}
.blob-1 {
    top: -10%; right: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, #3b82f6, #8b5cf6);
}
.blob-2 {
    bottom: -10%; left: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, #10b981, #0ea5e9);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 30px) scale(1.1); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-icon {
    font-size: 2rem;
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: 2px solid rgba(255,255,255,0.2);
}
.client-name {
    font-weight: 500;
}
.client-status {
    font-size: 0.8rem;
    color: #10b981;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s, border-color 0.2s;
}
.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.3);
}

.metric-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
}
.metric-value.small-text {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.metric-trend {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.metric-trend.positive {
    color: #10b981;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Chart */
.chart-container {
    padding: 2rem;
}
.chart-header {
    margin-bottom: 1.5rem;
}
.chart-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}
.canvas-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
