/* Iron Horse Vineyard Dashboard Styles */
/* Brand Colors from Emergent Connext Guidelines */

:root {
    /* Primary Brand Colors */
    --brand-green: #6b8e23;          /* Olive Green - Primary */
    --brand-blue: #2a7ca0;           /* Blue - Primary */
    --brand-brown: #40351e;          /* Dark Brown - Primary */

    /* Secondary Brand Colors */
    --brand-cream: #f9eddc;          /* Cream - Secondary */
    --brand-gold: #ba7c2b;           /* Gold - Secondary */
    --brand-burgundy: #440008;       /* Dark Red/Burgundy - Secondary */

    /* Functional Colors */
    --status-online: #6b8e23;        /* Green = sensor functioning/online */
    --status-warning: #ba7c2b;       /* Gold = data alert (out of range) */
    --status-critical: #440008;      /* Burgundy = critical data alert */
    --status-offline: #999999;       /* Gray = sensor offline */

    /* UI Colors */
    --bg-dark: #40351e;              /* Dark brown background */
    --bg-sidebar: #2d2518;           /* Darker brown sidebar */
    --bg-card: #f9eddc;              /* Cream card background */
    --bg-input: #352d1c;             /* Input background */
    --text-light: #f9eddc;           /* Cream text - for dark backgrounds */
    --text-card: #2a7ca0;            /* Blue text - for cards/boxes */
    --text-white: #ffffff;           /* White text */
    --text-muted: #c5b89a;           /* Muted cream text */
    --border-color: #5a4d36;         /* Brown border */

    /* Chart Colors */
    --chart-1: #6b8e23;              /* Olive Green */
    --chart-2: #2a7ca0;              /* Blue */
    --chart-3: #ba7c2b;              /* Gold */
    --chart-4: #7cb342;              /* Light Green */
    --chart-5: #5c9dc4;              /* Light Blue */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--brand-brown) 100%);
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.login-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
}

.logo-divider {
    color: var(--text-muted);
    font-size: 24px;
}

.login-card h1 {
    text-align: center;
    color: var(--brand-blue);
    margin-bottom: 8px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: var(--brand-blue);
    margin-bottom: 30px;
}

.error-message {
    background: rgba(68, 0, 8, 0.3);
    border: 1px solid var(--brand-burgundy);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-blue);
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text-white);
    font-size: 16px;
    transition: border-color 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--brand-green);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--brand-green);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #5a7a1e;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--brand-blue);
    font-size: 12px;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-google {
    background: #ffffff;
    color: #444444;
    border: 1px solid #dadce0;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-microsoft {
    background: #ffffff;
    color: #5e5e5e;
    border: 1px solid #8c8c8c;
}

.btn-microsoft:hover {
    background: #f3f3f3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--brand-blue);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    padding: 0 15px;
    opacity: 0.7;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.dashboard-header {
    background: var(--brand-blue);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 40px;
    object-fit: contain;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.header-logo.iron-horse {
    height: 45px;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.header-title h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
}

.header-subtitle {
    font-size: 12px;
    opacity: 0.9;
    color: var(--brand-cream);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--brand-cream);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Dashboard Content */
.dashboard-content {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.sidebar-nav {
    padding: 15px 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(249, 237, 220, 0.05);
    color: var(--text-light);
}

.nav-item.active {
    background: rgba(107, 142, 35, 0.2);
    color: var(--brand-green);
    border-left-color: var(--brand-green);
}

.nav-icon {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
    text-align: center;
    display: inline-block;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.export-section h4 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.date-range,
.date-range-vertical {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.date-label {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 4px;
}

.date-input {
    width: 100%;
    padding: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 12px;
    box-sizing: border-box;
}

.date-range span {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.btn-export {
    width: 100%;
    padding: 10px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-export:hover {
    background: #237a94;
}

/* Main Panel */
.main-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-dark);
}

/* Alert Banner */
.alert-banner {
    background: rgba(186, 124, 43, 0.2);
    border: 1px solid var(--brand-gold);
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--brand-gold);
}

.alert-banner.hidden {
    display: none;
}

.alert-banner.critical {
    background: rgba(68, 0, 8, 0.3);
    border-color: var(--brand-burgundy);
    color: #ff6b6b;
}

.alert-icon {
    font-size: 20px;
}

.btn-small {
    margin-left: auto;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
    font-size: 12px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--brand-cream);
}

.time-selector {
    display: flex;
    gap: 8px;
}

.time-btn {
    padding: 8px 16px;
    background: var(--brand-cream);
    border: 1px solid var(--brand-blue);
    border-radius: 4px;
    color: var(--brand-blue);
    cursor: pointer;
    transition: all 0.2s;
}

.time-btn:hover {
    border-color: var(--brand-green);
    background: var(--brand-cream);
    color: var(--brand-green);
}

.time-btn.active {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: white;
}

/* View Sections */
.view-section {
    display: none;
}

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

/* Sensor Cards */
.sensor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.sensor-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid var(--status-online);
}

.sensor-card.alert {
    border-left-color: var(--status-warning);
}

.sensor-card.critical-alert {
    border-left-color: var(--status-critical);
}

.sensor-card.offline {
    border-left-color: var(--status-offline);
    opacity: 0.7;
}

.sensor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sensor-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-card);
}

.sensor-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(107, 142, 35, 0.2);
    color: var(--status-online);
}

.sensor-status.alert {
    background: rgba(186, 124, 43, 0.2);
    color: var(--brand-gold);
}

.sensor-status.critical-alert {
    background: rgba(68, 0, 8, 0.3);
    color: #ff6b6b;
}

.sensor-status.offline {
    background: rgba(153, 153, 153, 0.2);
    color: var(--status-offline);
}

.sensor-readings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.reading {
    text-align: center;
}

.reading-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-card);
}

.reading-label {
    font-size: 10px;
    color: var(--text-card);
    margin-top: 2px;
    opacity: 0.7;
}

.sensor-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(42, 124, 160, 0.2);
    font-size: 11px;
    color: var(--text-card);
    opacity: 0.7;
}

/* Chart Grid */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-container {
    background: var(--brand-cream);
    border-radius: 8px;
    padding: 16px;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-container h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--brand-blue);
}

.chart {
    height: 300px;
    position: relative;
}

.chart.large {
    height: 400px;
}

/* Plotly modebar styling */
.js-plotly-plot .modebar {
    background: rgba(249, 237, 220, 0.9) !important;
    border-radius: 4px;
    padding: 2px 4px;
}

.js-plotly-plot .modebar-btn {
    color: var(--brand-blue) !important;
}

.js-plotly-plot .modebar-btn:hover {
    color: var(--brand-green) !important;
}

.js-plotly-plot .modebar-btn.active {
    color: var(--brand-green) !important;
}

/* Sensor Select */
.sensor-select {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--text-card);
    border-radius: 4px;
    color: var(--text-card);
    font-size: 14px;
    cursor: pointer;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-card);
}

.stat-label {
    font-size: 12px;
    color: var(--text-card);
    margin-top: 4px;
    opacity: 0.7;
}

.stat-sensor {
    font-size: 11px;
    color: var(--text-card);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(42, 124, 160, 0.2);
    opacity: 0.7;
}

/* Map */
.map-container {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.map-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-card);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.online {
    background: var(--status-online);
}

.legend-dot.alert {
    background: var(--status-warning);
}

.legend-dot.critical {
    background: var(--status-critical);
}

.legend-dot.offline {
    background: var(--status-offline);
}

/* Map Layer Toggle */
.map-layer-toggle {
    display: flex !important;
    background: var(--bg-card) !important;
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000 !important;
}

.leaflet-top.leaflet-right .map-layer-toggle {
    margin-top: 10px;
    margin-right: 10px;
}

.map-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: none;
    color: var(--text-card);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.map-toggle-btn:first-child {
    border-right: 1px solid rgba(42, 124, 160, 0.2);
}

.map-toggle-btn:hover {
    background: rgba(42, 124, 160, 0.1);
}

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

.map-toggle-btn .toggle-icon {
    font-size: 16px;
}

.map-toggle-btn .toggle-label {
    font-weight: 500;
}

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

.alert-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid var(--status-warning);
}

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

.alert-item.advisory {
    border-left-color: var(--brand-blue);
}

.alert-severity {
    font-size: 24px;
}

.alert-content {
    flex: 1;
}

.alert-message {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-card);
}

.alert-details {
    font-size: 13px;
    color: var(--text-card);
    opacity: 0.7;
}

.no-alerts {
    text-align: center;
    padding: 40px;
    color: var(--text-card);
}

.no-alerts-icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--brand-green);
}

.alerts-list .alert-item {
    background: var(--bg-card);
}

/* Thresholds */
.thresholds-section {
    margin-top: 30px;
}

.thresholds-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--brand-cream);
}

.thresholds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.threshold-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 16px;
}

.threshold-card h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-card);
}

.threshold-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-card);
    opacity: 0.8;
}

.threshold-value {
    color: var(--text-card);
    font-weight: 500;
    opacity: 1;
}

/* Custom Leaflet Popup - Override default white background */
.leaflet-popup-content-wrapper,
.leaflet-container .leaflet-popup-content-wrapper {
    background: #f9eddc !important;
    color: #2a7ca0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-popup-tip,
.leaflet-container .leaflet-popup-tip {
    background: #f9eddc !important;
}

.leaflet-popup-close-button,
.leaflet-container .leaflet-popup-close-button {
    color: #2a7ca0 !important;
}

.leaflet-popup-close-button:hover,
.leaflet-container .leaflet-popup-close-button:hover {
    color: #40351e !important;
}

.sensor-popup {
    min-width: 180px;
    color: #2a7ca0;
}

.sensor-popup h4 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #2a7ca0;
}

.sensor-popup .popup-readings {
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: #2a7ca0;
}

.sensor-popup .popup-reading {
    display: flex;
    justify-content: space-between;
}

.sensor-popup .popup-reading span {
    color: #2a7ca0;
    opacity: 0.7;
}

.sensor-popup .popup-reading strong {
    color: #2a7ca0;
}

.sensor-popup .popup-status {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(42, 124, 160, 0.2);
    font-size: 11px;
    color: #2a7ca0;
    opacity: 0.7;
}

/* Sensor Status View */
.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.status-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.status-card-count {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-card);
    line-height: 1;
}

.status-card-count.online {
    color: var(--status-online);
}

.status-card-count.stale {
    color: var(--brand-gold);
}

.status-card-count.offline {
    color: var(--status-offline);
}

.status-card-label {
    font-size: 14px;
    color: var(--text-card);
    margin-top: 8px;
    opacity: 0.8;
}

.diagnostics-section,
.pipeline-section,
.troubleshooting-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.diagnostics-section h3,
.pipeline-section h3,
.troubleshooting-section h3 {
    color: var(--text-card);
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(42, 124, 160, 0.2);
}

.diagnostics-table-container {
    overflow-x: auto;
}

.diagnostics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.diagnostics-table th,
.diagnostics-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(42, 124, 160, 0.1);
}

.diagnostics-table th {
    background: rgba(42, 124, 160, 0.1);
    color: var(--text-card);
    font-weight: 600;
}

.diagnostics-table td {
    color: var(--text-card);
}

.diagnostics-table tr:hover {
    background: rgba(42, 124, 160, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.online {
    background: rgba(107, 142, 35, 0.2);
    color: var(--status-online);
}

.status-badge.stale {
    background: rgba(186, 124, 43, 0.2);
    color: var(--brand-gold);
}

.status-badge.offline {
    background: rgba(153, 153, 153, 0.2);
    color: var(--status-offline);
}

.pipeline-info {
    display: grid;
    gap: 12px;
}

.pipeline-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(42, 124, 160, 0.1);
}

.pipeline-item:last-child {
    border-bottom: none;
}

.pipeline-label {
    color: var(--text-card);
    font-weight: 500;
}

.pipeline-value {
    color: var(--text-card);
    opacity: 0.8;
}

.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.troubleshooting-card {
    background: rgba(42, 124, 160, 0.05);
    border-radius: 6px;
    padding: 15px;
    border-left: 3px solid var(--brand-blue);
}

.troubleshooting-card h4 {
    color: var(--text-card);
    font-size: 14px;
    margin-bottom: 10px;
}

.troubleshooting-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.troubleshooting-card li {
    color: var(--text-card);
    font-size: 13px;
    padding: 5px 0;
    padding-left: 15px;
    position: relative;
    opacity: 0.85;
}

.troubleshooting-card li::before {
    content: "\2022";
    color: var(--brand-blue);
    position: absolute;
    left: 0;
}

/* Known Issues Section */
.known-issues-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.known-issues-section h3 {
    color: var(--status-critical);
    margin-bottom: 15px;
    font-size: 18px;
}

.known-issues-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.issue-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--status-warning);
}

.issue-item.critical {
    border-left-color: var(--status-critical);
}

.issue-item.warning {
    border-left-color: var(--status-warning);
}

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

.issue-sensor {
    font-weight: 600;
    color: var(--brand-blue);
    font-size: 15px;
}

.issue-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.issue-badge.critical {
    background: var(--status-critical);
    color: white;
}

.issue-badge.warning {
    background: var(--status-warning);
    color: white;
}

.issue-details p {
    color: var(--text-card);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.issue-details p:last-child {
    margin-bottom: 0;
}

.issues-note {
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar-nav {
        display: flex;
        padding: 0;
    }

    .nav-item {
        flex-direction: column;
        padding: 12px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 12px;
    }

    .nav-item.active {
        border-bottom-color: var(--brand-green);
    }

    .nav-icon {
        margin-right: 0;
        margin-bottom: 4px;
    }

    .sidebar-footer {
        display: none;
    }

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

    .header-title h1 {
        font-size: 16px;
    }

    .header-subtitle {
        display: none;
    }
}
