/* ══════════════════════════════════════════════════════
   INTERACTIVE DASHBOARD DESIGN SYSTEM
   ══════════════════════════════════════════════════════ */
:root {
    --dash-bg: #0d0d0f;
    --dash-sidebar: #151518;
    --dash-card: #1c1c21;
    --dash-accent: #4f6fd0;
    --dash-text: #e0e0e0;
    --dash-text-muted: #8e8e93;
    --dash-border: rgba(255, 255, 255, 0.08);
}

.dashboard-preview {
    width: 100%;
    height: 100%;
    background: var(--dash-bg);
    color: var(--dash-text);
    font-family: 'DM Sans', sans-serif;
    display: flex;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

/* Sidebar */
.dash-sidebar {
    width: 220px;
    background: var(--dash-sidebar);
    border-right: 1px solid var(--dash-border);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.dash-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--dash-accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash-nav-item {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dash-text-muted);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dash-nav-item.active {
    background: rgba(79, 111, 208, 0.15);
    color: var(--dash-accent);
}

.dash-nav-item i {
    font-size: 1.2rem;
}

/* Main Content */
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dash-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.dash-title p {
    font-size: 0.85rem;
    color: var(--dash-text-muted);
    margin: 4px 0 0;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
}

/* Grid Layout */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.dash-card-ui {
    background: var(--dash-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--dash-border);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dash-card-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--dash-text-muted);
}

/* Stats */
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: #34c759;
}

.trend-down {
    color: #ff3b30;
}

/* Chart Mockups */
.chart-mock {
    height: 120px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 10px;
    position: relative;
}

.bar {
    background: var(--dash-accent);
    flex: 1;
    border-radius: 2px 2px 0 0;
    opacity: 0.7;
}

.line-chart {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.line-chart svg {
    width: 100%;
    height: 100%;
    stroke: var(--dash-accent);
    stroke-width: 2;
    fill: none;
}

/* List Table */
.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: left;
    font-size: 0.75rem;
    color: var(--dash-text-muted);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dash-border);
}

.dash-table td {
    padding: 12px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--dash-border);
}

/* Icons Overrides */
.material-icons-outlined {
    font-size: 1.2rem;
}

/* Industry Specific Colors */
.dash-ecommerce {
    --dash-accent: #ff9500;
}

.dash-education {
    --dash-accent: #5856d6;
}

.dash-medical {
    --dash-accent: #34c759;
}

.dash-realestate {
    --dash-accent: #af52de;
}

.dash-social {
    --dash-accent: #ff2d55;
}