/* Slide BCDR Storage Forecasting Dashboard - Slide Style Guide */

/* Font Loading */
@font-face {
    font-family: 'D-DIN';
    src: url('https://fonts.cdnfonts.com/s/29788/D-DIN.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'D-DIN Condensed Bold';
    src: url('https://fonts.cdnfonts.com/s/29788/D-DINCondensed-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables - Slide Style Guide */
:root {
    /* Primary Colors */
    --slide-blue: #0C88FF;
    --slide-blue-dark: #0a6fd6;
    --slide-blue-glow: rgba(12, 136, 255, 0.4);
    
    /* Dark Mode Colors */
    --bg-primary: #131414;
    --bg-surface: #212121;
    --bg-elevated: #2a2a2a;
    --text-primary: #e2e2e2;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    
    /* Semantic Colors */
    --color-success: #4caf50;
    --color-warning: #ff9800;
    --color-error: #f44336;
    --color-info: #2196f3;
    
    /* Data Visualization */
    --chart-blue: #2196f3;
    --chart-green: #4caf50;
    --chart-orange: #ff9800;
    --chart-purple: #9c27b0;
    --chart-pink: #e91e63;
    --chart-cyan: #00bcd4;
    
    /* Spacing (8px grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.25);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'D-DIN', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'D-DIN Condensed Bold', 'D-DIN', sans-serif;
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.2em; line-height: 1.1; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.sidebar-header {
    padding: var(--space-3);
    border-bottom: 3px solid var(--slide-blue);
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: 'D-DIN Condensed Bold', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: var(--space-2) 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px var(--space-3);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
    margin: 0 8px;
    border-radius: var(--radius-sm);
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(12, 136, 255, 0.08);
}

.nav-item.active {
    color: var(--slide-blue);
    background: rgba(12, 136, 255, 0.12);
    border-left-color: var(--slide-blue);
}

.nav-item i {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.nav-item.active i {
    opacity: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-3);
    border-top: 1px solid var(--border-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.online {
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-surface);
    border-bottom: 3px solid var(--slide-blue);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 72px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.page-title {
    font-family: 'D-DIN Condensed Bold', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: 'D-DIN', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn:focus {
    outline: 2px solid var(--slide-blue);
    outline-offset: 2px;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--slide-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--slide-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--slide-blue);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Section Views */
.section-view {
    display: none;
    padding: var(--space-5) var(--space-4);
    animation: fadeIn 0.3s ease;
}

.section-view.active {
    display: block;
}

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

.section-header {
    margin-bottom: var(--space-4);
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.section-header p {
    color: var(--text-secondary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-3);
}

/* Cards */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-title i {
    width: 20px;
    height: 20px;
    color: var(--slide-blue);
}

.card-body {
    padding: var(--space-3);
}

/* Card Grid Placement */
.card-capacity {
    grid-column: span 4;
}

.card-projection {
    grid-column: span 4;
}

.card-thresholds {
    grid-column: span 4;
}

.card-chart {
    grid-column: span 12;
}

/* Removed card-slider - now integrated into chart */

.card-config {
    grid-column: span 6;
}

.card-devices {
    grid-column: span 6;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(12, 136, 255, 0.15);
    color: var(--slide-blue);
}

/* Confidence Indicator */
.confidence-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border-radius: 20px;
    cursor: help;
    transition: var(--transition-fast);
}

.confidence-indicator:hover {
    background: var(--bg-elevated);
}

.confidence-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.confidence-value {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.confidence-value.high {
    background: rgba(76, 175, 80, 0.15);
    color: var(--color-success);
}

.confidence-value.medium {
    background: rgba(255, 152, 0, 0.15);
    color: var(--color-warning);
}

.confidence-value.low {
    background: rgba(244, 67, 54, 0.15);
    color: var(--color-error);
}

.confidence-value.very-low {
    background: rgba(158, 158, 158, 0.15);
    color: var(--text-muted);
}

/* Confidence Tooltip */
.confidence-indicator {
    position: relative;
}

.confidence-indicator::after {
    content: attr(title);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.confidence-indicator:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.confidence-indicator::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    right: 20px;
    border: 6px solid transparent;
    border-bottom-color: var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 101;
}

.confidence-indicator:hover::before {
    opacity: 1;
    visibility: visible;
}

.badge-success {
    background: rgba(76, 175, 80, 0.15);
    color: var(--color-success);
}

.badge-warning {
    background: rgba(255, 152, 0, 0.15);
    color: var(--color-warning);
}

.badge-error {
    background: rgba(244, 67, 54, 0.15);
    color: var(--color-error);
}

/* Radial Progress */
.radial-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-2) 0;
}

.radial-progress {
    width: 180px;
    height: 180px;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 12;
}

.progress-bar {
    fill: none;
    stroke: url(#progressGrad);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1s ease;
}

.progress-glow {
    fill: none;
    stroke: var(--slide-blue);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    filter: blur(8px);
    opacity: 0.4;
    transition: stroke-dashoffset 1s ease;
}

.radial-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
}

.radial-progress-container {
    position: relative;
}

.radial-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radial-value {
    font-family: 'D-DIN Condensed Bold', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.radial-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Capacity Stats */
.capacity-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: var(--space-2);
}

.stat {
    text-align: center;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-family: 'D-DIN', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Projection Stats */
.projection-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.projection-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.projection-stat:hover {
    background: var(--bg-elevated);
}

.projection-stat.primary {
    background: linear-gradient(135deg, var(--slide-blue), var(--slide-blue-dark));
    color: white;
}

.projection-stat.primary .projection-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.projection-stat i {
    width: 22px;
    height: 22px;
    color: var(--slide-blue);
}

.projection-stat.primary i {
    color: white;
}

.projection-stat-content {
    display: flex;
    flex-direction: column;
}

.projection-stat-value {
    font-family: 'D-DIN Condensed Bold', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-primary);
}

.projection-stat.primary .projection-stat-value {
    color: white;
}

.projection-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Threshold Indicators */
.threshold-indicators {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.threshold-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.threshold-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.threshold-icon i {
    width: 18px;
    height: 18px;
}

.threshold-icon.warning {
    background: rgba(255, 152, 0, 0.15);
    color: var(--color-warning);
}

.threshold-icon.critical {
    background: rgba(244, 67, 54, 0.15);
    color: var(--color-error);
}

.threshold-icon.spike {
    background: rgba(156, 39, 176, 0.15);
    color: var(--chart-purple);
}

.threshold-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.threshold-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.threshold-value {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.threshold-status {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.threshold-status.ok {
    background: rgba(76, 175, 80, 0.15);
    color: var(--color-success);
}

.threshold-status.warning {
    background: rgba(255, 152, 0, 0.15);
    color: var(--color-warning);
}

.threshold-status.critical {
    background: rgba(244, 67, 54, 0.15);
    color: var(--color-error);
}

/* Chart Container */
.chart-container {
    height: 400px;
    position: relative;
    padding: var(--space-2);
}

/* Slider */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slider-value {
    font-family: 'D-DIN Condensed Bold', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--slide-blue);
}

.slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--slide-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--slide-blue-glow);
    transition: var(--transition-fast);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px var(--slide-blue-glow);
}

.slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--slide-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.slider-preview {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.preview-item {
    text-align: center;
}

.preview-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.preview-value {
    font-family: 'D-DIN', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Forms */
.config-form, .settings-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.input-with-unit {
    display: flex;
    align-items: center;
}

.input-with-unit input {
    flex: 1;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-with-unit .unit {
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'D-DIN', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

input:focus {
    outline: none;
    border-color: var(--slide-blue);
    box-shadow: 0 0 0 3px var(--slide-blue-glow);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: var(--space-2);
}

/* Devices List */
.devices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.device-item:hover {
    border-color: var(--slide-blue);
    transform: translateY(-1px);
}

.device-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--slide-blue), var(--slide-blue-dark));
    border-radius: 10px;
}

.device-icon i {
    width: 22px;
    height: 22px;
    color: white;
}

.device-info {
    flex: 1;
}

.device-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.device-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.device-usage {
    text-align: right;
}

.device-percent {
    font-family: 'D-DIN Condensed Bold', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--slide-blue);
}

.device-status {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(76, 175, 80, 0.15);
    color: var(--color-success);
}

.device-status.warning {
    background: rgba(255, 152, 0, 0.15);
    color: var(--color-warning);
}

/* Appliances Grid */
.appliances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-3);
}

.appliance-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    transition: var(--transition-base);
}

.appliance-card:hover {
    border-color: var(--slide-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.appliance-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.appliance-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--slide-blue), var(--slide-blue-dark));
    border-radius: 14px;
}

.appliance-icon i {
    width: 28px;
    height: 28px;
    color: white;
}

.appliance-title h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.appliance-title span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'D-DIN', monospace;
}

.appliance-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: var(--space-2);
}

.appliance-stat {
    background: var(--bg-surface);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.appliance-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.appliance-stat-value {
    font-family: 'D-DIN', monospace;
    font-size: 1rem;
    font-weight: 600;
}

.appliance-progress {
    margin-top: var(--space-2);
}

.appliance-progress-bar {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.appliance-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--slide-blue), var(--slide-blue-dark));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.appliance-progress-fill.warning {
    background: linear-gradient(90deg, var(--color-warning), #fb923c);
}

.appliance-progress-fill.critical {
    background: linear-gradient(90deg, var(--color-error), #f87171);
}

.appliance-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Data Table */
.agents-table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-primary);
}

.data-table td {
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

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

.data-table code {
    font-family: 'D-DIN', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.retention-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: capitalize;
}

.retention-badge.lean {
    background: rgba(233, 30, 99, 0.15);
    color: var(--chart-pink);
}

.retention-badge.balanced {
    background: rgba(12, 136, 255, 0.15);
    color: var(--slide-blue);
}

.retention-badge.comprehensive {
    background: rgba(76, 175, 80, 0.15);
    color: var(--color-success);
}

.os-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.os-badge i {
    width: 16px;
    height: 16px;
    color: var(--slide-blue);
}

/* Alerts Section */
.alerts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3);
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-warning);
}

.alert-item.critical {
    border-left-color: var(--color-error);
}

.alert-item.success {
    border-left-color: var(--color-success);
}

.alert-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 152, 0, 0.15);
    border-radius: 8px;
    color: var(--color-warning);
}

.alert-item.critical .alert-icon {
    background: rgba(244, 67, 54, 0.15);
    color: var(--color-error);
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.alert-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state i {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-state span {
    font-size: 0.85rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: var(--space-3);
}

.ntfy-info {
    padding: var(--space-2);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    text-align: center;
}

.ntfy-info h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ntfy-info code {
    display: block;
    font-family: 'D-DIN', monospace;
    font-size: 1.1rem;
    color: var(--slide-blue);
    background: var(--bg-surface);
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.ntfy-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Settings Section */
.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3);
}

.about-info h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.about-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 3px solid var(--color-success);
}

.toast.error {
    border-left: 3px solid var(--color-error);
}

.toast.warning {
    border-left: 3px solid var(--color-warning);
}

.toast-icon {
    width: 20px;
    height: 20px;
}

.toast.success .toast-icon { color: var(--color-success); }
.toast.error .toast-icon { color: var(--color-error); }
.toast.warning .toast-icon { color: var(--color-warning); }

.toast-message {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition-base);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: var(--space-3);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: var(--space-3);
    border-top: 1px solid var(--border-color);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.radio-item:hover {
    border-color: var(--slide-blue);
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-item input[type="radio"]:checked + .radio-label {
    color: var(--slide-blue);
}

.radio-item:has(input:checked) {
    border-color: var(--slide-blue);
    background: rgba(12, 136, 255, 0.08);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.radio-label i {
    width: 18px;
    height: 18px;
}

.alert-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    margin-top: var(--space-2);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.alert-preview i {
    width: 18px;
    height: 18px;
    color: var(--slide-blue);
}

.alert-preview strong {
    color: var(--slide-blue);
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .card-capacity,
    .card-projection,
    .card-thresholds {
        grid-column: span 3;
    }
    
    .card-chart {
        grid-column: span 6;
    }
    
    .card-config,
    .card-devices {
        grid-column: span 3;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .alerts-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .card-capacity,
    .card-projection,
    .card-thresholds,
    .card-chart,
    .card-config,
    .card-devices {
        grid-column: span 1;
    }
    
    .chart-container {
        height: 280px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
        height: auto;
        padding: var(--space-2);
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .appliances-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===========================================
   Policy Comparison Feature
   =========================================== */

.chart-controls {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--slide-blue);
}

.btn-toggle.active {
    background: var(--slide-blue);
    color: white;
    border-color: var(--slide-blue);
}

.btn-toggle i {
    width: 14px;
    height: 14px;
}

/* Policy Tiles Container */
.policy-tiles-container {
    padding: var(--space-3) var(--space-4);
    animation: fadeIn 0.3s ease;
}

.policy-tiles {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

/* Selectable Policy Tile */
.policy-tile {
    flex: 1;
    max-width: 220px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    text-align: center;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.policy-tile:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.policy-tile.active {
    opacity: 1;
    border-color: var(--tile-color);
    background: var(--tile-bg);
}

.policy-tile.current_policy { 
    --tile-color: #0C88FF; 
    --tile-bg: rgba(12, 136, 255, 0.1);
}
.policy-tile.lean { 
    --tile-color: #10B981; 
    --tile-bg: rgba(16, 185, 129, 0.1);
}
.policy-tile.balanced { 
    --tile-color: #F59E0B; 
    --tile-bg: rgba(245, 158, 11, 0.1);
}
.policy-tile.comprehensive { 
    --tile-color: #EF4444; 
    --tile-bg: rgba(239, 68, 68, 0.1);
}

.policy-tile-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.policy-tile.active .policy-tile-name {
    color: var(--tile-color);
}

.policy-tile-value {
    font-family: 'D-DIN Condensed Bold', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-muted);
    line-height: 1.1;
}

.policy-tile.active .policy-tile-value {
    color: var(--tile-color);
}

.policy-tile-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.policy-tile-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.policy-tile.active .policy-tile-date {
    color: var(--text-secondary);
}

/* Policy Tile Tooltip */
.policy-tile-tooltip {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.policy-tile {
    position: relative;
}

.policy-tile:hover .policy-tile-tooltip {
    opacity: 1;
}

.policy-tile-tooltip .tooltip-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    cursor: help;
}

.policy-tile.active .policy-tile-tooltip .tooltip-icon {
    color: var(--tile-color);
}

.policy-tile-tooltip .tooltip-content {
    position: absolute;
    bottom: calc(100% + 8px);
    right: -8px;
    width: 280px;
    padding: var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.policy-tile-tooltip .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 12px;
    border: 6px solid transparent;
    border-top-color: var(--border-color);
}

.policy-tile-tooltip .tooltip-content::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 13px;
    border: 5px solid transparent;
    border-top-color: var(--bg-surface);
    z-index: 1;
}

.policy-tile-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.policy-tile.current_policy .tooltip-content {
    border-top: 2px solid #0C88FF;
}

.policy-tile.lean .tooltip-content {
    border-top: 2px solid #10B981;
}

.policy-tile.balanced .tooltip-content {
    border-top: 2px solid #F59E0B;
}

.policy-tile.comprehensive .tooltip-content {
    border-top: 2px solid #EF4444;
}

/* ===========================================
   Appliances Quick View
   =========================================== */

.card-appliances-quick {
    grid-column: span 4;
}

.appliances-quick-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-2);
}

.appliance-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.appliance-quick-item:hover {
    background: var(--bg-surface);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.appliance-quick-item.selected {
    background: rgba(12, 136, 255, 0.1);
    border-color: var(--slide-blue);
}

.appliance-quick-item .appliance-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slide-blue);
    border-radius: var(--radius-md);
    color: white;
    flex-shrink: 0;
}

.appliance-quick-item .appliance-icon i {
    width: 18px;
    height: 18px;
}

.appliance-quick-item .appliance-info {
    width: 100%;
    min-width: 0;
}

.appliance-quick-item .appliance-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appliance-quick-item .appliance-hostname {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appliance-quick-item .appliance-usage {
    width: 100%;
}

.appliance-quick-item .usage-percent {
    font-family: 'D-DIN Condensed Bold', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1;
}

.appliance-quick-item .usage-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-surface);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.appliance-quick-item .usage-bar-fill {
    height: 100%;
    background: var(--slide-blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.appliance-quick-item.selected .usage-bar-fill {
    background: var(--slide-blue);
}

/* Appliance Select Grid (Appliances Section) */
.appliances-select-grid,
.agents-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-3);
}

.appliance-select-card,
.agent-select-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.appliance-select-card:hover,
.agent-select-card:hover {
    transform: translateY(-2px);
    border-color: var(--slide-blue);
    box-shadow: var(--shadow-md);
}

.appliance-select-card.selected,
.agent-select-card.selected {
    background: rgba(12, 136, 255, 0.1);
    border-color: var(--slide-blue);
}

.appliance-select-header,
.agent-select-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.appliance-select-icon,
.agent-select-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slide-blue);
    border-radius: var(--radius-md);
    color: white;
}

.appliance-select-icon i,
.agent-select-icon i {
    width: 24px;
    height: 24px;
}

.appliance-select-title,
.agent-select-title {
    flex: 1;
}

.appliance-select-title h4,
.agent-select-title h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.appliance-select-title p,
.agent-select-title p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.appliance-select-stats,
.agent-select-stats {
    display: flex;
    gap: var(--space-3);
}

.appliance-select-stats .stat,
.agent-select-stats .stat {
    flex: 1;
    text-align: center;
    padding: var(--space-2);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
}

.appliance-select-stats .stat-value,
.agent-select-stats .stat-value {
    font-family: 'D-DIN Condensed Bold', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.appliance-select-stats .stat-label,
.agent-select-stats .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Agent Lines Legend */
.agent-lines-legend {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.agent-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.agent-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.agent-legend-item:hover {
    border-color: var(--border-color);
}

.agent-legend-item.active {
    background: rgba(12, 136, 255, 0.1);
    border-color: var(--slide-blue);
    color: var(--text-primary);
}

.agent-legend-item .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Stats Bar */
.appliance-stats-bar,
.agent-stats-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.appliance-stats-bar .stat-item,
.agent-stats-bar .stat-item {
    text-align: center;
}

.appliance-stats-bar .stat-label,
.agent-stats-bar .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
}

.appliance-stats-bar .stat-value,
.agent-stats-bar .stat-value {
    font-family: 'D-DIN Condensed Bold', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Device Filter Active State */
.dashboard-filtered .card-capacity .card-header::after {
    content: 'Filtered';
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--slide-blue);
    color: white;
    border-radius: var(--radius-sm);
    margin-left: var(--space-2);
}

/* Color palette for agent lines */
:root {
    --agent-color-1: #0C88FF;
    --agent-color-2: #10B981;
    --agent-color-3: #F59E0B;
    --agent-color-4: #EF4444;
    --agent-color-5: #8B5CF6;
    --agent-color-6: #EC4899;
    --agent-color-7: #06B6D4;
    --agent-color-8: #84CC16;
}

/* Hide default legend when policy comparison is active */
.policy-tiles-container + .chart-legend {
    display: none;
}

/* Integrated Chart Slider */
.chart-slider-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border-color);
    background: var(--bg-elevated);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.slider-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.slider-header i {
    width: 16px;
    height: 16px;
    color: var(--slide-blue);
}

.slider-value {
    font-family: 'D-DIN Condensed Bold', sans-serif;
    font-size: 1.1rem;
    color: var(--slide-blue);
    margin-left: var(--space-2);
}

.slider-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    max-width: 500px;
}

.slider-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 35px;
}

.slider-row .slider {
    flex: 1;
}

.chart-slider-section .slider-preview {
    display: flex;
    gap: var(--space-4);
    margin-left: auto;
    padding-left: var(--space-4);
    border-left: 1px solid var(--border-color);
}

.chart-slider-section .preview-item {
    text-align: center;
}

.chart-slider-section .preview-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.chart-slider-section .preview-value {
    font-family: 'D-DIN Condensed Bold', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Animation for showing policy comparison */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for policy comparison */
@media (max-width: 768px) {
    .policy-tiles {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .policy-tile {
        min-width: 120px;
    }
    
    .chart-controls {
        width: 100%;
    }
    
    .btn-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .slider-row {
        flex-wrap: wrap;
    }
}
