/* ============================================================
   DASHBOARD - ART DECO STYLE
   Modular card-based layout with muted Art Deco styling
   ============================================================ */

[data-theme="art-deco-dark"],
[data-theme="natural"] {
    /* Dashboard specific colors */
    --dashboard-card-bg: var(--color-bg-tertiary);
    --dashboard-card-border: var(--color-border);
    --dashboard-kpi-bg: var(--color-bg-secondary);
    --dashboard-shadow: var(--shadow-md);
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */

[data-theme="art-deco-dark"] .dashboard-layout,
[data-theme="natural"] .dashboard-layout {
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 24px;
}

[data-theme="art-deco-dark"] .dashboard-header,
[data-theme="natural"] .dashboard-header {
    margin-bottom: 32px;
}

[data-theme="art-deco-dark"] .dashboard-header h2,
[data-theme="natural"] .dashboard-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

[data-theme="art-deco-dark"] .dashboard-header p,
[data-theme="natural"] .dashboard-header p {
    font-size: 16px;
    color: var(--color-text-tertiary);
}

/* ============================================================
   KPI METRIC BOXES - TOP ROW
   ============================================================ */

[data-theme="art-deco-dark"] .dashboard-kpi-row,
[data-theme="natural"] .dashboard-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

[data-theme="art-deco-dark"] .dashboard-kpi,
[data-theme="natural"] .dashboard-kpi {
    background: var(--dashboard-kpi-bg);
    border: 1px solid var(--dashboard-card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--dashboard-shadow);
    transition: all var(--transition-normal);
}

[data-theme="art-deco-dark"] .dashboard-kpi:hover,
[data-theme="natural"] .dashboard-kpi:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-primary);
}

[data-theme="art-deco-dark"] .dashboard-kpi-label,
[data-theme="natural"] .dashboard-kpi-label {
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

[data-theme="art-deco-dark"] .dashboard-kpi-value,
[data-theme="natural"] .dashboard-kpi-value {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent-primary);
    line-height: 1;
}

/* ============================================================
   DASHBOARD MAIN GRID - PANELS
   ============================================================ */

[data-theme="art-deco-dark"] .dashboard-main-grid,
[data-theme="natural"] .dashboard-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 1200px) {
    [data-theme="art-deco-dark"] .dashboard-main-grid,
    [data-theme="natural"] .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="art-deco-dark"] .dashboard-panel,
[data-theme="natural"] .dashboard-panel {
    background: var(--dashboard-card-bg);
    border: 1px solid var(--dashboard-card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--dashboard-shadow);
}

[data-theme="art-deco-dark"] .dashboard-panel h3,
[data-theme="natural"] .dashboard-panel h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dashboard-card-border);
    letter-spacing: 0.02em;
}

/* ============================================================
   PIPELINE SNAPSHOT TABLE
   ============================================================ */

[data-theme="art-deco-dark"] #dashboard-pipeline-table,
[data-theme="natural"] #dashboard-pipeline-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table thead,
[data-theme="natural"] #dashboard-pipeline-table thead {
    background: var(--color-bg-secondary);
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table th,
[data-theme="natural"] #dashboard-pipeline-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--dashboard-card-border);
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table td,
[data-theme="natural"] #dashboard-pipeline-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-divider);
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table tbody tr,
[data-theme="natural"] #dashboard-pipeline-table tbody tr {
    transition: background var(--transition-fast);
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table tbody tr:hover {
    background: rgba(196, 165, 123, 0.05);
}

[data-theme="natural"] #dashboard-pipeline-table tbody tr:hover {
    background: rgba(107, 144, 128, 0.05);
}

/* Status badges in table */
[data-theme="art-deco-dark"] #dashboard-pipeline-table .status-badge,
[data-theme="natural"] #dashboard-pipeline-table .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table .status-badge.status-new,
[data-theme="natural"] #dashboard-pipeline-table .status-badge.status-new {
    background: var(--color-info);
    color: #fff;
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table .status-badge.status-sent,
[data-theme="natural"] #dashboard-pipeline-table .status-badge.status-sent {
    background: var(--color-accent-primary);
    color: var(--color-bg-primary);
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table .status-badge.status-won,
[data-theme="natural"] #dashboard-pipeline-table .status-badge.status-won {
    background: var(--color-success);
    color: #fff;
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table .status-badge.status-production,
[data-theme="natural"] #dashboard-pipeline-table .status-badge.status-production {
    background: var(--color-success);
    color: #fff;
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table .status-badge.status-draft,
[data-theme="natural"] #dashboard-pipeline-table .status-badge.status-draft {
    background: var(--color-warning);
    color: var(--color-bg-primary);
}

[data-theme="art-deco-dark"] #dashboard-pipeline-table .status-badge.status-scoping,
[data-theme="natural"] #dashboard-pipeline-table .status-badge.status-scoping {
    background: var(--color-accent-tertiary);
    color: var(--color-bg-primary);
}

/* ============================================================
   RECENT ACTIVITY LIST
   ============================================================ */

[data-theme="art-deco-dark"] .dashboard-activity-list,
[data-theme="natural"] .dashboard-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

[data-theme="art-deco-dark"] .dashboard-activity-list li,
[data-theme="natural"] .dashboard-activity-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-divider);
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

[data-theme="art-deco-dark"] .dashboard-activity-list li:last-child,
[data-theme="natural"] .dashboard-activity-list li:last-child {
    border-bottom: none;
}

[data-theme="art-deco-dark"] .dashboard-activity-list .activity-timestamp,
[data-theme="natural"] .dashboard-activity-list .activity-timestamp {
    color: var(--color-text-muted);
    font-size: 12px;
    font-family: var(--font-mono);
    margin-right: 8px;
}

[data-theme="art-deco-dark"] .dashboard-activity-list .activity-message,
[data-theme="natural"] .dashboard-activity-list .activity-message {
    color: var(--color-text-secondary);
}

/* ============================================================
   CHARTS & GRAPHS AREA
   ============================================================ */

[data-theme="art-deco-dark"] .dashboard-charts-grid,
[data-theme="natural"] .dashboard-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 1200px) {
    [data-theme="art-deco-dark"] .dashboard-charts-grid,
    [data-theme="natural"] .dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="art-deco-dark"] .dashboard-chart-container,
[data-theme="natural"] .dashboard-chart-container {
    background: var(--dashboard-card-bg);
    border: 1px solid var(--dashboard-card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--dashboard-shadow);
}

[data-theme="art-deco-dark"] .dashboard-chart-container h3,
[data-theme="natural"] .dashboard-chart-container h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

[data-theme="art-deco-dark"] .dashboard-chart,
[data-theme="natural"] .dashboard-chart {
    width: 100%;
    height: 300px;
    min-height: 300px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

[data-theme="art-deco-dark"] .dashboard-empty-state,
[data-theme="natural"] .dashboard-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--color-text-muted);
}

[data-theme="art-deco-dark"] .dashboard-empty-state p,
[data-theme="natural"] .dashboard-empty-state p {
    font-size: 16px;
    margin-bottom: 24px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    [data-theme="art-deco-dark"] .dashboard-kpi-row,
    [data-theme="natural"] .dashboard-kpi-row {
        grid-template-columns: 1fr 1fr;
    }

    [data-theme="art-deco-dark"] .dashboard-kpi-value,
    [data-theme="natural"] .dashboard-kpi-value {
        font-size: 28px;
    }
}
