/**
 * ===========================================
 * FLOWBOT DCI - MAIN STYLESHEET
 * ===========================================
 * Modern, professional UI design
 */

/* ========== CSS Variables ========== */
:root {
    /* Colors */
    --primary: #5563DE;
    --primary-dark: #3b46a2;
    --primary-light: #74ABE2;

    --success: #2ecc71;
    --success-dark: #27ae60;

    --warning: #f39c12;
    --warning-dark: #e67e22;

    --danger: #e74c3c;
    --danger-dark: #c0392b;

    --info: #3498db;
    --info-dark: #2980b9;

    --purple: #9b59b6;
    --purple-dark: #8e44ad;

    /* Backgrounds */
    --bg-primary: #2c3e50;
    --bg-secondary: #34495e;
    --bg-dark: #1c2833;
    --bg-card: rgba(255, 255, 255, 0.9);

    /* Text */
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-dark: #333;
    --text-muted: #7f8c8d;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 25px;
    --spacing-xl: 30px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 15px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ========== Layout ========== */
.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-lg);
}

.card {
    background-color: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    width: 100%;
    color: var(--text-dark);
}

.card-dark {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.card-wide {
    max-width: 1200px;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }

/* ========== Form Elements ========== */
.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

textarea, input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

textarea:focus, input:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    min-height: 160px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success);
    color: #fff;
}

.btn-success:hover {
    background-color: var(--success-dark);
}

.btn-block {
    width: 100%;
}

/* ========== Progress Bars ========== */
.progress-section {
    margin-bottom: var(--spacing-lg);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
    font-size: 14px;
}

.progress-bar {
    height: 26px;
    background-color: var(--bg-secondary);
    border-radius: 13px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.progress-bar-fill {
    height: 100%;
    line-height: 26px;
    font-size: 12px;
    text-align: center;
    color: #fff;
    transition: width var(--transition-slow);
    position: absolute;
    left: 0;
    top: 0;
}

.progress-total .progress-bar-fill {
    background: linear-gradient(90deg, var(--purple-dark), var(--purple));
}

.progress-success .progress-bar-fill {
    background: linear-gradient(90deg, var(--success-dark), var(--success));
}

.progress-info .progress-bar-fill {
    background: linear-gradient(90deg, var(--info-dark), var(--info));
}

.progress-warning .progress-bar-fill {
    background: linear-gradient(90deg, var(--warning-dark), var(--warning));
}

.progress-danger .progress-bar-fill {
    background: linear-gradient(90deg, var(--danger-dark), var(--danger));
}

/* ========== Terminal/Log Display ========== */
.terminal {
    background-color: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    height: 250px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.terminal-line {
    padding: 2px 0;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.terminal-line.success { color: var(--success); }
.terminal-line.warning { color: var(--warning); }
.terminal-line.error { color: var(--danger); }

.terminal-cursor {
    animation: blink 1s steps(1) infinite;
    color: var(--success);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ========== Stats Grid ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.stat-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    font-size: 18px;
    margin-right: var(--spacing-sm);
}

.stat-label {
    font-weight: 600;
    margin-right: var(--spacing-xs);
}

.stat-value {
    color: var(--text-secondary);
}

/* ========== Phase Info ========== */
.phase-info {
    background-color: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-lg);
    font-size: 13px;
}

.phase-info p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

.phase-info strong {
    color: var(--text-primary);
}

/* ========== Badges ========== */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background-color: var(--primary);
    color: #fff;
}

.badge-success {
    background-color: var(--success);
    color: #fff;
}

/* ========== Alerts ========== */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.2);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* ========== Links ========== */
a {
    color: var(--info);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--info-dark);
    text-decoration: underline;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: var(--spacing-md);
    }

    h1 { font-size: 24px; }
    h2 { font-size: 18px; }

    .progress-bar-fill {
        font-size: 11px;
    }

    .terminal {
        height: 180px;
        font-size: 12px;
    }
}

/* ========== Utilities ========== */
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }

.hidden { display: none; }
.visible { display: block; }

/* ============================================= */
/* === DASHBOARD PROFESSIONAL UI (v2.0) === */
/* ============================================= */

/* === Dashboard Layout === */
.dashboard {
    display: grid;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.dashboard-header .process-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-header .process-info h1 {
    font-size: 1.25rem;
    margin: 0;
    color: #fff;
}

.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-row.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .dashboard-row.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-row.three-cols {
        grid-template-columns: 1fr;
    }
}

/* === Progress Circle === */
.progress-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.progress-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(
        #10B981 calc(var(--progress) * 1%),
        #1F2937 calc(var(--progress) * 1%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
    transition: all 0.5s ease;
}

.progress-circle::before {
    content: '';
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    border-radius: 50%;
    position: absolute;
}

.progress-circle .circle-value {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 700;
    color: #10B981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.progress-card .label {
    margin-top: 15px;
    font-size: 0.875rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === KPI Cards === */
.kpi-card {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.kpi-card h4 {
    color: #9CA3AF;
    font-size: 0.875rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.kpi-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.kpi-mini:hover {
    background: rgba(0,0,0,0.3);
}

.kpi-mini .icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.kpi-mini .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.kpi-mini .label {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-transform: uppercase;
}

/* === Segmented Progress Bar === */
.segmented-progress {
    height: 36px;
    border-radius: 18px;
    background: #1F2937;
    overflow: hidden;
    display: flex;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.segmented-progress .segment {
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}

.segmented-progress .segment:hover {
    filter: brightness(1.15);
}

.segmented-progress .segment.imported {
    background: linear-gradient(90deg, #059669, #10B981);
    color: #fff;
}

.segmented-progress .segment.ignored {
    background: linear-gradient(90deg, #D97706, #F59E0B);
    color: #fff;
}

.segmented-progress .segment.error {
    background: linear-gradient(90deg, #DC2626, #EF4444);
    color: #fff;
}

.segmented-progress .segment.remaining {
    background: #374151;
    color: #9CA3AF;
}

.segmented-progress .segment span {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 0 8px;
}

/* === Status Cards === */
.status-card {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.status-card.imported {
    border-left: 4px solid #10B981;
}

.status-card.ignored {
    border-left: 4px solid #F59E0B;
}

.status-card.error {
    border-left: 4px solid #EF4444;
}

.status-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-card .card-title {
    font-size: 0.8rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.status-card .card-icon {
    font-size: 1.25rem;
}

.status-card .card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.status-card.imported .card-value { color: #10B981; }
.status-card.ignored .card-value { color: #F59E0B; }
.status-card.error .card-value { color: #EF4444; }

.status-card .card-percentage {
    font-size: 0.875rem;
    color: #6B7280;
}

.status-card .mini-bar {
    height: 4px;
    background: #374151;
    border-radius: 2px;
    margin: 12px 0;
    overflow: hidden;
}

.status-card .mini-bar .fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.status-card.imported .mini-bar .fill { background: linear-gradient(90deg, #059669, #10B981); }
.status-card.ignored .mini-bar .fill { background: linear-gradient(90deg, #D97706, #F59E0B); }
.status-card.error .mini-bar .fill { background: linear-gradient(90deg, #DC2626, #EF4444); }

/* === Details Dropdown === */
.details-dropdown {
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.details-dropdown .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.8rem;
}

.details-dropdown .detail-row .label {
    color: #9CA3AF;
    display: flex;
    align-items: center;
    gap: 6px;
}

.details-dropdown .detail-row .value {
    font-weight: 600;
    color: #fff;
}

/* === Phase Pipeline === */
.phase-pipeline {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    border-radius: 12px;
    padding: 20px;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
}

.phase-node {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 15px 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.phase-node.active {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.phase-node.completed {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.phase-node .phase-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.phase-node .phase-stats {
    font-size: 0.75rem;
    color: #9CA3AF;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.phase-node .phase-stats span {
    display: flex;
    align-items: center;
    gap: 2px;
}

.phase-node .phase-pending {
    margin-top: 8px;
    font-size: 0.7rem;
    color: #6B7280;
    background: rgba(0,0,0,0.3);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
}

.phase-connector {
    width: 20px;
    height: 3px;
    background: #374151;
    flex-shrink: 0;
}

.phase-connector.completed {
    background: linear-gradient(90deg, #10B981, #34D399);
}

/* === Terminal Container === */
.terminal-container {
    background: #0D1117;
    border-radius: 12px;
    border: 1px solid #30363D;
    overflow: hidden;
}

.terminal-header {
    background: #161B22;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #30363D;
}

.terminal-header .title {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.terminal-filters {
    display: flex;
    gap: 8px;
}

.terminal-filter {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    background: #21262D;
    border: 1px solid #30363D;
    color: #8B949E;
    transition: all 0.2s;
}

.terminal-filter:hover {
    background: #30363D;
    color: #fff;
}

.terminal-filter.active {
    background: #30363D;
    color: #fff;
}

.terminal-filter.success.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10B981;
    color: #10B981;
}

.terminal-filter.warning.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: #F59E0B;
    color: #F59E0B;
}

.terminal-filter.error.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
}

.terminal-body {
    max-height: 320px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.8rem;
    padding: 15px;
    background: #0D1117;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #161B22;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #30363D;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #484F58;
}

.terminal-body .log-line {
    padding: 5px 0;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(48,54,61,0.5);
}

.terminal-body .log-line:last-child {
    border-bottom: none;
}

.terminal-body .log-line .log-icon {
    width: 20px;
    flex-shrink: 0;
}

.terminal-body .log-line .log-url {
    color: #58A6FF;
    word-break: break-all;
    flex: 1;
}

.terminal-body .log-line .log-message {
    color: #8B949E;
    white-space: nowrap;
}

.terminal-body .log-line.success .log-message { color: #3FB950; }
.terminal-body .log-line.warning .log-message { color: #D29922; }
.terminal-body .log-line.error .log-message { color: #F85149; }

/* === Timing Card === */
.timing-card .timing-grid,
.stats-card .stats-grid-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timing-card .timing-grid > div,
.stats-card .stats-grid-inner > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.timing-card .timing-grid .label,
.stats-card .stats-grid-inner .label {
    color: #9CA3AF;
    font-size: 0.8rem;
}

.timing-card .timing-grid .value,
.stats-card .stats-grid-inner .value {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* === Status Indicator Pulse === */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.processing {
    background: #3B82F6;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.status-indicator.complete {
    background: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-indicator.has-errors {
    background: #EF4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* === Phase Badge === */
.phase-badge {
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* === Count Animation === */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated-value {
    animation: countUp 0.5s ease-out;
}

/* === Tooltip Popup === */
.tooltip-popup {
    position: fixed;
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 10000;
    pointer-events: none;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* === Complete Summary === */
.complete-summary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.complete-summary h2 {
    color: #10B981;
    margin-bottom: 10px;
}

.complete-summary p {
    color: #9CA3AF;
    margin-bottom: 20px;
}

.complete-summary .summary-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.complete-summary .summary-stat {
    text-align: center;
}

.complete-summary .summary-stat .value {
    font-size: 2rem;
    font-weight: 700;
}

.complete-summary .summary-stat .label {
    font-size: 0.8rem;
    color: #6B7280;
    text-transform: uppercase;
}

.complete-summary .summary-stat.success .value { color: #10B981; }
.complete-summary .summary-stat.warning .value { color: #F59E0B; }
.complete-summary .summary-stat.error .value { color: #EF4444; }

/* === Responsive Adjustments === */
@media (max-width: 640px) {
    .dashboard {
        padding: 10px;
        gap: 15px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .progress-circle {
        width: 130px;
        height: 130px;
    }

    .progress-circle::before {
        width: 105px;
        height: 105px;
    }

    .progress-circle .circle-value {
        font-size: 2rem;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .phase-pipeline {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 15px;
    }

    .phase-node {
        min-width: 100px;
        padding: 12px 8px;
    }

    .status-card .card-value {
        font-size: 2rem;
    }

    .terminal-header {
        flex-direction: column;
        gap: 10px;
    }

    .terminal-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================= */
/* === NAVIGATION BAR (v2.0) === */
/* ============================================= */

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand .logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.nav-brand .brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.nav-brand .version {
    font-size: 0.65rem;
    background: rgba(59, 130, 246, 0.3);
    color: #60A5FA;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    color: #9CA3AF;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.nav-link .nav-icon {
    font-size: 1rem;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-progress-mini {
    width: 60px;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    overflow: hidden;
}

.nav-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #10B981);
    transition: width 0.5s ease;
}

.nav-status .process-id {
    font-size: 0.75rem;
    color: #6B7280;
    font-family: monospace;
}

/* ============================================= */
/* === GLASSMORPHISM EFFECTS (v2.0) === */
/* ============================================= */

.glass-card {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* ============================================= */
/* === COMPACT LAYOUT (v2.0) === */
/* ============================================= */

.dashboard.compact {
    padding: 12px;
    gap: 12px;
    padding-top: 12px;
}

.dashboard.compact .kpi-card {
    padding: 14px;
}

.dashboard.compact .status-card {
    padding: 14px;
}

.dashboard.compact .kpi-mini .value {
    font-size: 1.3rem;
}

.dashboard.compact .kpi-mini .label {
    font-size: 0.65rem;
}

.dashboard.compact .status-card .card-value {
    font-size: 2rem;
}

.dashboard.compact .terminal-body {
    max-height: 200px;
}

.dashboard.compact .phase-node {
    min-width: 100px;
    padding: 10px 8px;
}

.dashboard.compact .segmented-progress {
    height: 32px;
    border-radius: 16px;
    padding: 0;
}

/* ============================================= */
/* === PAGE HEADER (v2.0) === */
/* ============================================= */

.page-header {
    padding: 20px 24px;
    margin-bottom: 0;
}

.page-header h1 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: #fff;
}

.page-header p {
    margin: 0;
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* ============================================= */
/* === SUMMARY CARDS (v2.0) === */
/* ============================================= */

.dashboard-row.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .dashboard-row.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard-row.four-cols {
        grid-template-columns: 1fr;
    }
}

.dashboard-row.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .dashboard-row.two-cols {
        grid-template-columns: 1fr;
    }
}

.summary-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.summary-card .summary-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.summary-card .summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.summary-card .summary-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-transform: uppercase;
    margin-top: 5px;
}

.summary-card.success .summary-value { color: #10B981; }
.summary-card.warning .summary-value { color: #F59E0B; }
.summary-card.error .summary-value { color: #EF4444; }
.summary-card.info .summary-value { color: #3B82F6; }

.complete-summary .summary-stat.info .value { color: #3B82F6; }

/* ============================================= */
/* === PERFORMER CARDS (v2.0) === */
/* ============================================= */

.performer-card {
    padding: 20px;
    transition: transform 0.2s;
}

.performer-card:hover {
    transform: translateY(-3px);
}

.performer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.performer-icon {
    font-size: 1.5rem;
}

.performer-title {
    font-size: 0.8rem;
    color: #9CA3AF;
    text-transform: uppercase;
}

.performer-domain {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    word-break: break-all;
    margin-bottom: 5px;
}

.performer-rate {
    font-size: 0.875rem;
}

.performer-card.success .performer-rate { color: #10B981; }
.performer-card.error .performer-rate { color: #EF4444; }

/* ============================================= */
/* === CHART CONTAINER (v2.0) === */
/* ============================================= */

.chart-container {
    padding: 20px;
}

.chart-header {
    margin-bottom: 15px;
}

.chart-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

/* === Bar Chart === */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    width: 150px;
    font-size: 0.8rem;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.bar-container {
    flex: 1;
    height: 24px;
    background: #1F2937;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill-stacked {
    height: 100%;
    display: flex;
    transition: width 0.5s ease;
}

.bar-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.bar-segment.success { background: linear-gradient(90deg, #059669, #10B981); }
.bar-segment.warning { background: linear-gradient(90deg, #D97706, #F59E0B); }
.bar-segment.error { background: linear-gradient(90deg, #DC2626, #EF4444); }

.bar-value {
    width: 50px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

/* === Error Distribution === */
.error-distribution {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.error-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-label {
    width: 180px;
    font-size: 0.8rem;
    color: #9CA3AF;
    flex-shrink: 0;
}

.error-bar-container {
    flex: 1;
    height: 20px;
    background: #1F2937;
    border-radius: 4px;
    overflow: hidden;
}

.error-bar {
    height: 100%;
    background: linear-gradient(90deg, #DC2626, #EF4444);
    transition: width 0.5s ease;
}

.error-count {
    width: 100px;
    text-align: right;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

/* ============================================= */
/* === DATA TABLES (v2.0) === */
/* ============================================= */

.table-container {
    padding: 20px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-title h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.table-count {
    font-size: 0.75rem;
    color: #6B7280;
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input {
    padding: 8px 14px;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #fff;
    font-size: 0.875rem;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #3B82F6;
}

.search-input::placeholder {
    color: #6B7280;
}

.export-buttons {
    display: flex;
    gap: 6px;
}

.export-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.export-btn.csv {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid #10B981;
}

.export-btn.csv:hover {
    background: rgba(16, 185, 129, 0.3);
    text-decoration: none;
}

.export-btn.json {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    border: 1px solid #60A5FA;
}

.export-btn.json:hover {
    background: rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.data-table th {
    text-align: left;
    padding: 12px 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #9CA3AF;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table th.sortable:hover {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

.data-table th.sortable::after {
    content: ' ↕';
    opacity: 0.3;
}

.data-table th.sortable.asc::after {
    content: ' ↑';
    opacity: 1;
}

.data-table th.sortable.desc::after {
    content: ' ↓';
    opacity: 1;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.domain-row.excellent {
    background: rgba(16, 185, 129, 0.05);
}

.domain-row.problematic {
    background: rgba(239, 68, 68, 0.05);
}

.domain-name {
    font-weight: 500;
    max-width: 200px;
}

.domain-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-success { color: #10B981 !important; }
.text-warning { color: #F59E0B !important; }
.text-error { color: #EF4444 !important; }

.rate-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.rate-badge.excellent {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.rate-badge.good {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.rate-badge.poor {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.rate-badge.critical {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.action-link {
    color: #60A5FA;
    font-size: 1rem;
    text-decoration: none;
}

.action-link:hover {
    color: #93C5FD;
    text-decoration: none;
}

/* ============================================= */
/* === FILTERS PANEL (v2.0) === */
/* ============================================= */

.filters-panel {
    padding: 16px 20px;
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.7rem;
    color: #9CA3AF;
    text-transform: uppercase;
    margin: 0;
}

.filter-select {
    padding: 8px 12px;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #fff;
    font-size: 0.8rem;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: #3B82F6;
}

.filter-group.search-group {
    flex: 1;
    min-width: 200px;
}

.filter-group.search-group .search-input {
    width: 100%;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.btn-secondary {
    background: #374151;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-secondary:hover {
    background: #4B5563;
}

.btn-primary {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* ============================================= */
/* === QUICK FILTERS (v2.0) === */
/* ============================================= */

.quick-filters {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.quick-filter {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9CA3AF;
    background: rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.2s;
}

.quick-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.quick-filter.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.quick-filter.success.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.quick-filter.warning.active {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.quick-filter.error.active {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.quick-filter .count {
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-size: 0.65rem;
}

/* ============================================= */
/* === LOGS TABLE (v2.0) === */
/* ============================================= */

.logs-table td {
    font-size: 0.75rem;
}

.log-row.success {
    border-left: 3px solid #10B981;
}

.log-row.warning {
    border-left: 3px solid #F59E0B;
}

.log-row.error {
    border-left: 3px solid #EF4444;
}

.log-time {
    color: #6B7280;
    font-family: monospace;
}

.log-domain {
    color: #9CA3AF;
}

.log-url .url-text {
    color: #60A5FA;
    word-break: break-all;
}

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

.status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.http-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: monospace;
}

.http-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.http-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.log-message {
    color: #6B7280;
}

/* ============================================= */
/* === PAGINATION (v2.0) === */
/* ============================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-link {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #9CA3AF;
    background: rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.page-link.active {
    background: #3B82F6;
    color: #fff;
}

.page-ellipsis {
    padding: 6px;
    color: #6B7280;
}

/* ============================================= */
/* === PATTERNS CARD (v2.0) === */
/* ============================================= */

.patterns-card {
    padding: 20px;
}

.patterns-card h3 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #fff;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.pattern-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.pattern-type {
    font-size: 0.8rem;
    color: #9CA3AF;
}

.pattern-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #EF4444;
}

/* ============================================= */
/* === VIEW ALL LINK (v2.0) === */
/* ============================================= */

.view-all-link {
    font-size: 0.75rem;
    color: #60A5FA;
    text-decoration: none;
}

.view-all-link:hover {
    color: #93C5FD;
    text-decoration: none;
}

/* ============================================= */
/* === ANIMATIONS (v2.0) === */
/* ============================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dashboard > * {
    animation: fadeInUp 0.4s ease-out;
}

.dashboard > *:nth-child(1) { animation-delay: 0.05s; }
.dashboard > *:nth-child(2) { animation-delay: 0.1s; }
.dashboard > *:nth-child(3) { animation-delay: 0.15s; }
.dashboard > *:nth-child(4) { animation-delay: 0.2s; }
.dashboard > *:nth-child(5) { animation-delay: 0.25s; }
.dashboard > *:nth-child(6) { animation-delay: 0.3s; }
.dashboard > *:nth-child(7) { animation-delay: 0.35s; }
.dashboard > *:nth-child(8) { animation-delay: 0.4s; }

/* ============================================= */
/* === RESPONSIVE NAVIGATION (v2.0) === */
/* ============================================= */

@media (max-width: 768px) {
    .dashboard-nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 15px;
    }

    .nav-brand .brand-text {
        display: none;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .nav-link .nav-text {
        display: none;
    }

    .nav-status .process-id {
        display: none;
    }

    .filters-form {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select,
    .search-input {
        width: 100%;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-actions {
        width: 100%;
    }

    .table-actions .search-input {
        flex: 1;
    }

    .bar-label {
        width: 100px;
        font-size: 0.7rem;
    }

    .error-label {
        width: 120px;
        font-size: 0.7rem;
    }
}

/* ============================================= */
/* === SORTING INDICATORS (v2.0) === */
/* ============================================= */

.data-table th.sortable.sort-asc::after {
    content: ' ↑';
    opacity: 1;
    color: #60A5FA;
}

.data-table th.sortable.sort-desc::after {
    content: ' ↓';
    opacity: 1;
    color: #60A5FA;
}

/* ============================================= */
/* === SELECTED / EXPANDED ROWS (v2.0) === */
/* ============================================= */

.domain-row.selected {
    background: rgba(59, 130, 246, 0.15) !important;
    outline: 1px solid rgba(59, 130, 246, 0.3);
}

.log-row.expanded {
    background: rgba(59, 130, 246, 0.1) !important;
}

.log-row.expanded td {
    white-space: normal;
    word-break: break-all;
}

.log-row {
    cursor: pointer;
}

/* ============================================= */
/* === AUTO-REFRESH INDICATOR (v2.0) === */
/* ============================================= */

@keyframes refreshPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
    }
}

.status-indicator.refreshing {
    animation: refreshPulse 1s ease-in-out infinite;
}

/* ============================================= */
/* === TEXT HIGHLIGHTING (v2.0) === */
/* ============================================= */

mark {
    background: rgba(251, 191, 36, 0.4);
    color: #fff;
    padding: 0 2px;
    border-radius: 2px;
}

/* ============================================= */
/* === NAV LOADING STATE (v2.0) === */
/* ============================================= */

.nav-link.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: 8px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================= */
/* === ALERT NOTIFICATIONS (v2.0) === */
/* ============================================= */

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.875rem;
    animation: slideInRight 0.3s ease-out;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60A5FA;
}

/* ============================================= */
/* === TEXT UTILITIES (v2.0) === */
/* ============================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: 0.7rem; }
.text-sm { font-size: 0.8rem; }

/* ============================================= */
/* === DOMAIN TABLE ENHANCEMENTS (v2.0) === */
/* ============================================= */

.domain-table tbody tr {
    cursor: default;
}

.domain-table .domain-name {
    cursor: default;
}

/* ============================================= */
/* === SCROLLBAR STYLES (v2.0) === */
/* ============================================= */

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #1F2937;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #4B5563;
}

/* ============================================= */
/* === v2.1: RESPONSE TIME & HTTP CODE STYLES === */
/* ============================================= */

/* === 4-Column Row for Mini KPIs === */
.dashboard-row.four-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .dashboard-row.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === KPI Mini Cards === */
.kpi-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.kpi-mini-card .kpi-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.kpi-mini-card .kpi-content {
    display: flex;
    flex-direction: column;
}

.kpi-mini-card .kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.kpi-mini-card .kpi-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-mini-card.success .kpi-value { color: #10B981; }
.kpi-mini-card.warning .kpi-value { color: #F59E0B; }
.kpi-mini-card.error .kpi-value { color: #EF4444; }

/* === HTTP Codes Card === */
.http-codes-card {
    padding: 20px;
}

.http-codes-card h4 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 1rem;
}

.http-codes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.http-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.http-code-row .http-code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    width: 40px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0,0,0,0.2);
}

.http-code-row .http-code.success { color: #10B981; background: rgba(16, 185, 129, 0.15); }
.http-code-row .http-code.warning { color: #F59E0B; background: rgba(245, 158, 11, 0.15); }
.http-code-row .http-code.error { color: #EF4444; background: rgba(239, 68, 68, 0.15); }
.http-code-row .http-code.info { color: #3B82F6; background: rgba(59, 130, 246, 0.15); }

.http-code-row .http-name {
    font-size: 0.75rem;
    color: #9CA3AF;
    width: 80px;
}

.http-code-row .http-bar {
    flex: 1;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    overflow: hidden;
}

.http-code-row .http-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.http-bar-fill.success { background: linear-gradient(90deg, #059669, #10B981); }
.http-bar-fill.warning { background: linear-gradient(90deg, #D97706, #F59E0B); }
.http-bar-fill.error { background: linear-gradient(90deg, #DC2626, #EF4444); }
.http-bar-fill.info { background: linear-gradient(90deg, #2563EB, #3B82F6); }

.http-code-row .http-count {
    font-size: 0.75rem;
    color: #9CA3AF;
    width: 100px;
    text-align: right;
}

/* === Response Time Card === */
.response-time-card {
    padding: 20px;
}

.response-time-card h4 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 1rem;
}

.response-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.response-time-grid .rt-stat {
    text-align: center;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.response-time-grid .rt-label {
    display: block;
    font-size: 0.7rem;
    color: #9CA3AF;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.response-time-grid .rt-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.response-time-grid .rt-value.success { color: #10B981; }
.response-time-grid .rt-value.warning { color: #F59E0B; }
.response-time-grid .rt-value.error { color: #EF4444; }

/* === Retry Breakdown === */
.retry-breakdown {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.retry-breakdown h5 {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-bottom: 10px;
}

.retry-phases {
    display: flex;
    gap: 8px;
}

.retry-phase {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.retry-phase .phase-num {
    display: block;
    font-size: 0.7rem;
    color: #9CA3AF;
}

.retry-phase .phase-retries {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #F59E0B;
}

/* === Slowest Domains Card === */
.slowest-domains {
    padding: 20px;
}

.slowest-domains h4 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 1rem;
}

.slowest-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slowest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.slowest-row .slowest-domain {
    font-size: 0.85rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slowest-row .slowest-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: #F59E0B;
}

.slowest-row .slowest-time.warning {
    color: #F59E0B;
}

.slowest-row .slowest-time.critical {
    color: #EF4444;
}

/* === HTTP Codes Mini (for domain table) === */
.http-codes-mini {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.http-badge-mini {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.http-badge-mini.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.http-badge-mini.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.http-badge-mini.error {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.http-badge-mini.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.no-codes {
    color: #6B7280;
    font-size: 0.8rem;
}

/* === Log Response Time Column === */
.log-response {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
}

.log-response.slow {
    color: #EF4444;
}

.log-response.medium {
    color: #F59E0B;
}

/* === No Data Placeholder === */
.no-data {
    text-align: center;
    color: #6B7280;
    padding: 20px;
    font-size: 0.9rem;
}

/* ============================================= */
/* === PRINT STYLES (v2.0) === */
/* ============================================= */

@media print {
    .dashboard-nav,
    .filters-panel,
    .quick-filters,
    .export-buttons,
    .filter-actions,
    .pagination {
        display: none !important;
    }

    .glass-card {
        background: #fff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .data-table th,
    .data-table td {
        color: #000 !important;
        border-color: #ddd !important;
    }

    body {
        background: #fff !important;
    }
}

/* ============================================= */
/* === UI-004: TOAST NOTIFICATIONS === */
/* ============================================= */

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

/* Individual Toast */
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(75, 85, 99, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Toast Icon */
.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

/* Toast Content */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #F3F4F6;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: #9CA3AF;
    line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
    transition: width linear;
}

/* Toast Types */
.toast.success {
    border-color: rgba(16, 185, 129, 0.4);
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.toast.success .toast-progress {
    background: #10B981;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.4);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.toast.error .toast-progress {
    background: #EF4444;
}

.toast.warning {
    border-color: rgba(245, 158, 11, 0.4);
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.toast.warning .toast-progress {
    background: #F59E0B;
}

.toast.info {
    border-color: rgba(59, 130, 246, 0.4);
}

.toast.info .toast-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.toast.info .toast-progress {
    background: #3B82F6;
}

/* Mobile Toast */
@media (max-width: 480px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .toast {
        transform: translateY(120%);
    }

    .toast.show {
        transform: translateY(0);
    }

    .toast.hide {
        transform: translateY(120%);
    }
}

/* ============================================= */
/* === UI-003: LOADING STATES & SPINNERS === */
/* ============================================= */

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner.large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.loading-spinner.small {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: inherit;
    backdrop-filter: blur(4px);
}

.loading-overlay .loading-text {
    margin-top: 12px;
    color: #9CA3AF;
    font-size: 0.85rem;
}

/* Button Loading State */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

.btn.loading .btn-text {
    opacity: 0.7;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(75, 85, 99, 0.3) 25%,
        rgba(107, 114, 128, 0.4) 50%,
        rgba(75, 85, 99, 0.3) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-card {
    height: 100px;
    border-radius: 8px;
}

.skeleton-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}

.skeleton-cell {
    flex: 1;
    height: 20px;
}

/* Table Loading State */
.data-table.loading tbody {
    opacity: 0.5;
    pointer-events: none;
}

.data-table.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Card Loading State */
.glass-card.loading {
    position: relative;
}

.glass-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.7);
    border-radius: inherit;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.progress-indicator .loading-spinner {
    flex-shrink: 0;
}

.progress-indicator .progress-text {
    color: #C4B5FD;
    font-size: 0.85rem;
}

/* Inline Loading */
.inline-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9CA3AF;
    font-size: 0.85rem;
}

/* Pulse Animation for Live Data */
.pulse-live {
    animation: pulse 2s ease-in-out infinite;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Refresh Button Animation */
.btn-refresh.refreshing .refresh-icon {
    animation: spin 1s linear infinite;
}

/* Phase Loading States */
.phase-indicator.loading {
    position: relative;
    overflow: hidden;
}

.phase-indicator.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* ============================================= */
/* === UI-002: MOBILE RESPONSIVE STYLES === */
/* ============================================= */

/* === Mobile Navigation (Hamburger Menu) === */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #E5E7EB;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === Small Screens (max-width: 768px) === */
@media (max-width: 768px) {
    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Navigation */
    .dashboard-nav {
        flex-wrap: wrap;
        padding: 10px;
        gap: 8px;
    }

    .dashboard-nav .nav-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .dashboard-nav .nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .dashboard-nav .nav-btn .nav-label {
        display: none;
    }

    .dashboard-nav .nav-btn .nav-icon {
        margin-right: 0;
    }

    /* Stats Grid - Stack on mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card h3 {
        font-size: 0.7rem;
    }

    .stat-card .stat-value {
        font-size: 1.3rem;
    }

    /* Dashboard rows - Stack on mobile */
    .dashboard-row {
        flex-direction: column;
    }

    .dashboard-row.two-cols > *,
    .dashboard-row.three-cols > * {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    /* Glass cards */
    .glass-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .glass-card h2 {
        font-size: 1rem;
    }

    /* Tables - Horizontal scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 600px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    /* Hide non-essential columns on mobile */
    .data-table .col-response-time,
    .data-table .col-avg-time,
    .data-table .col-error-types {
        display: none;
    }

    /* Filters panel - Collapsible */
    .filters-panel {
        padding: 12px;
    }

    .filters-panel .filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .filters-panel .filter-group {
        width: 100%;
    }

    .filters-panel input,
    .filters-panel select {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    /* Quick filters - Wrap */
    .quick-filters {
        flex-wrap: wrap;
        gap: 6px;
    }

    .quick-filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* Export buttons */
    .export-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    .export-buttons .btn {
        flex: 1 1 calc(50% - 6px);
        padding: 8px;
        font-size: 0.8rem;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .pagination .page-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    /* Terminal/Log viewer */
    .terminal {
        font-size: 0.7rem;
        max-height: 250px;
    }

    .terminal-line {
        padding: 4px 8px;
    }

    /* Form elements - Touch friendly */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn {
        min-height: 44px;
        padding: 10px 16px;
    }

    /* Progress bars */
    .progress-container {
        height: 16px;
    }

    /* Domain stats compact */
    .domain-stats-compact .stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Phase indicators */
    .phase-indicators {
        flex-wrap: wrap;
        gap: 6px;
    }

    .phase-indicator {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* Badges */
    .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    /* Log messages - Wider truncation */
    .log-message-preview {
        max-width: 150px;
    }

    /* Hide complexity on mobile */
    .advanced-filters,
    .extended-stats {
        display: none;
    }
}

/* === Extra Small Screens (max-width: 480px) === */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .dashboard-header h1 {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card .stat-value {
        font-size: 1.1rem;
    }

    .glass-card {
        padding: 10px;
        border-radius: 8px;
    }

    .data-table {
        min-width: 500px;
    }

    .data-table th,
    .data-table td {
        padding: 6px 4px;
        font-size: 0.7rem;
    }

    /* Single column exports */
    .export-buttons .btn {
        flex: 1 1 100%;
    }

    /* Compact pagination */
    .pagination .page-btn.page-number:not(.active) {
        display: none;
    }

    .pagination .page-btn.page-number.active,
    .pagination .page-btn.prev,
    .pagination .page-btn.next {
        display: inline-flex;
    }

    /* Terminal */
    .terminal {
        font-size: 0.65rem;
        max-height: 200px;
    }

    /* Charts - Simplified */
    .mini-chart {
        height: 30px;
    }
}

/* === Touch-Friendly Improvements === */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    .nav-btn,
    .page-btn,
    .quick-filter-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch */
    .btn:hover,
    .nav-btn:hover,
    .data-table tr:hover {
        transform: none;
    }

    /* Better tap feedback */
    .btn:active,
    .nav-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    /* Disable tooltips on touch */
    [data-tooltip]:hover::after,
    [data-tooltip]:hover::before {
        display: none;
    }

    /* Scrollable tables with momentum */
    .table-container {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }
}

/* === Tablet Portrait (max-width: 1024px) === */
@media (max-width: 1024px) and (min-width: 769px) {
    .dashboard-row.three-cols > * {
        flex: 1 1 calc(50% - 10px);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filters-panel .filter-row {
        flex-wrap: wrap;
    }

    .filters-panel .filter-group {
        flex: 1 1 calc(33% - 10px);
        min-width: 150px;
    }
}

/* === Landscape Mobile === */
@media (max-width: 896px) and (orientation: landscape) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .terminal {
        max-height: 150px;
    }

    .dashboard-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dashboard-row > * {
        flex: 1 1 calc(50% - 10px);
    }
}

/* === Safe Area (Notch Support) === */
@supports (padding: max(0px)) {
    .dashboard-nav {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .glass-card {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
}
