/* Page-Specific Styles */

/* Analytics Page */
.analytics-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.time-range-selector {
    display: flex;
    gap: 0.5rem;
}

.time-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    font-size: 0.875rem;
}

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

.export-btn {
    padding: 0.5rem 1rem;
    background: var(--success-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.analytics-card {
    min-height: 300px;
}

.stats-summary {
    grid-column: span 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.stat-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Map View Page */
.map-view-container {
    position: relative;
    margin-bottom: 2rem;
}

.fullscreen-map {
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--bg-card-border);
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.map-control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--bg-card-border);
    z-index: 1000;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

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

.sensor-list-card {
    margin-top: 2rem;
}

.sensor-count {
    color: var(--success-accent);
    font-size: 0.875rem;
}

.sensor-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sensor-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.sensor-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

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

.status-normal {
    background: var(--success-accent);
    box-shadow: 0 0 8px var(--success-accent);
}

.status-warning {
    background: var(--warning-accent);
    box-shadow: 0 0 8px var(--warning-accent);
}

.status-critical {
    background: var(--danger-accent);
    box-shadow: 0 0 8px var(--danger-accent);
}

.sensor-info {
    flex: 1;
}

.sensor-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.sensor-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.map-popup h3 {
    margin-bottom: 0.5rem;
}

.map-popup p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Alerts Page */
.alerts-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.filter-group select {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
    border-radius: 8px;
    font-family: var(--font-main);
}

.clear-btn {
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-accent);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.clear-btn:hover {
    background: var(--danger-accent);
    color: white;
}

.alerts-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.timeline-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    margin-top: 0.25rem;
}

.timeline-item.critical .timeline-marker {
    background: var(--danger-accent);
    box-shadow: 0 0 8px var(--danger-accent);
}

.timeline-item.warning .timeline-marker {
    background: var(--warning-accent);
    box-shadow: 0 0 8px var(--warning-accent);
}

.timeline-item.info .timeline-marker {
    background: var(--primary-accent);
    box-shadow: 0 0 8px var(--primary-accent);
}

.timeline-content {
    flex: 1;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.alert-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-title i {
    font-size: 1.25rem;
}

.alert-title h3 {
    font-size: 1rem;
    font-weight: 600;
}

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

.alert-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.alert-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
}

.alert-source {
    color: var(--text-muted);
}

.alert-severity-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.alert-severity-badge.critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-accent);
}

.alert-severity-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-accent);
}

.alert-severity-badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-accent);
}

/* Settings Page */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-card {
    max-width: 800px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
    border-radius: 8px;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-accent);
    border-radius: 50%;
    cursor: pointer;
}

.range-value {
    font-size: 0.875rem;
    color: var(--primary-accent);
    font-weight: 600;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.toggle-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle input:checked+.toggle-slider {
    background-color: var(--primary-accent);
}

.toggle input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.save-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-weight: 600;
    transition: all 0.2s;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.danger-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-accent);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-weight: 600;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: var(--danger-accent);
    color: white;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 10000;
}

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

.toast-success {
    border-left: 4px solid var(--success-accent);
}

.toast-warning {
    border-left: 4px solid var(--warning-accent);
}

.toast-info {
    border-left: 4px solid var(--primary-accent);
}

/* Reports Page */
.reports-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.report-config-card {
    grid-column: span 1;
}

.report-preview-card {
    grid-column: span 1;
}

.recent-reports-card {
    grid-column: span 2;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range input {
    flex: 1;
}

.generate-btn {
    padding: 0.75rem 1.5rem;
    background: var(--danger-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-weight: 600;
    transition: all 0.2s;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.report-preview {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.preview-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-card-border);
}

.preview-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.preview-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.preview-section {
    margin-bottom: 2rem;
}

.preview-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.alert-summary-list,
.recommendations-list {
    list-style: none;
    padding-left: 1.5rem;
}

.alert-summary-list li,
.recommendations-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.alert-summary-list li::before,
.recommendations-list li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: var(--primary-accent);
}

.recent-reports-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.2s;
}

.report-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.report-item i {
    font-size: 2rem;
    color: var(--danger-accent);
}

.report-info {
    flex: 1;
}

.report-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.report-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.download-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.download-btn:hover {
    transform: scale(1.1);
}

/* Report Type Variants */
/* Summary Report - Blue theme, card-based KPIs */
.report-summary .preview-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.report-summary .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.report-summary .kpi-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.report-summary .kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.report-summary .kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.report-summary .kpi-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-summary .kpi-trend {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.report-summary .kpi-trend.up {
    color: var(--success-accent);
}

.report-summary .kpi-trend.down {
    color: var(--danger-accent);
}

.report-summary .preview-section {
    background: rgba(59, 130, 246, 0.03);
    border-left: 3px solid #3b82f6;
}

/* Detailed Analysis - Purple theme, comprehensive data */
.report-detailed .preview-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.report-detailed .preview-section {
    background: rgba(139, 92, 246, 0.03);
    border-left: 3px solid #8b5cf6;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.report-detailed .preview-section h2 {
    color: #8b5cf6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-detailed .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.report-detailed .data-table th {
    background: rgba(139, 92, 246, 0.2);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #8b5cf6;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.report-detailed .data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.report-detailed .data-table tr:hover {
    background: rgba(139, 92, 246, 0.08);
}

.report-detailed .stat-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Alert History - Timeline-based, severity colors */
.report-alerts .preview-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.report-alerts .alert-timeline {
    position: relative;
    padding-left: 2rem;
}

.report-alerts .alert-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(239, 68, 68, 0.5), 
        rgba(245, 158, 11, 0.5), 
        rgba(59, 130, 246, 0.5));
}

.report-alerts .alert-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.report-alerts .alert-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.report-alerts .alert-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.report-alerts .alert-item.critical {
    border-left-color: var(--danger-accent);
    color: var(--danger-accent);
}

.report-alerts .alert-item.warning {
    border-left-color: var(--warning-accent);
    color: var(--warning-accent);
}

.report-alerts .alert-item.info {
    border-left-color: var(--primary-accent);
    color: var(--primary-accent);
}

.report-alerts .alert-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.report-alerts .alert-title-text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.report-alerts .alert-timestamp {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.report-alerts .alert-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.report-alerts .severity-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.report-alerts .severity-badge.critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-accent);
}

.report-alerts .severity-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-accent);
}

.report-alerts .severity-badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-accent);
}

/* Custom Report - Green theme, modular sections */
.report-custom .preview-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.report-custom .preview-section {
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.report-custom .preview-section:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.report-custom .preview-section h2 {
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.report-custom .section-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.report-custom .section-toggle:hover {
    background: rgba(16, 185, 129, 0.2);
}

.report-custom .metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.report-custom .metric-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.report-custom .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
}

.report-custom .metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Chart containers for reports */
.report-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.report-chart-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1rem;
}

.report-chart-item h3 {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.chart-container-sm {
    height: 200px;
    position: relative;
}


@media (max-width: 1024px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .stats-summary {
        grid-column: span 1;
    }

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

    .reports-container {
        grid-template-columns: 1fr;
    }

    .report-config-card,
    .report-preview-card,
    .recent-reports-card {
        grid-column: span 1;
    }
}

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

    .fullscreen-map {
        height: 400px;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }
}