/* StormCheck.us - Complete Stylesheet with Multi-Source Integration */
/* Enhanced styles for Tomorrow.io + NOAA data display */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --warning-color: #f39c12;
    --success-color: #27ae60;
    --info-color: #17a2b8;
    --tomorrow-color: #667eea;
    --noaa-color: #17a2b8;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.storm-check-logo {
    width: 58px;
    height: 58px;
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
}

/* Layout */
.main-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Search Card (Main Page) */
.search-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-input {
    border-radius: 50px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn {
    background: var(--secondary-color);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.search-btn:disabled {
    background: #95a5a6;
    transform: none;
    cursor: not-allowed;
}

.date-range-controls {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Loading Sources Animation */
.loading-sources {
    margin-top: 1rem;
}

.source-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.source-item.active {
    opacity: 1;
    background: #e3f2fd;
    transform: translateX(10px);
}

.source-item i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Storm Gallery */
.storm-gallery {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.storm-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.storm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Enhanced Storm Cards with Source Indicators */
.enhanced-storm-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
    position: relative;
}

.enhanced-storm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.enhanced-storm-card .severity-extreme {
    border-left-color: #dc3545;
}

.enhanced-storm-card .severity-high {
    border-left-color: #fd7e14;
}

.enhanced-storm-card .severity-moderate {
    border-left-color: #ffc107;
}

.enhanced-storm-card .severity-low {
    border-left-color: #28a745;
}

/* Source Indicator Badge */
.source-indicator {
    margin-top: 0.5rem;
}

.source-indicator .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.storm-icon-container {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.confidence-badge {
    margin-top: 0.5rem;
}

.storm-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Storm Severity Badges */
.storm-severity {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.severity-minor, .severity-low {
    background: var(--success-color);
}

.severity-moderate {
    background: var(--warning-color);
}

.severity-major, .severity-high {
    background: var(--accent-color);
}

.severity-extreme {
    background: #8B0000;
}

/* Urgency Badges */
.urgency-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.urgency-immediate {
    background: #dc3545;
    color: white;
}

.urgency-expected {
    background: #ffc107;
    color: #212529;
}

.urgency-future, .urgency-past {
    background: #6c757d;
    color: white;
}

/* Storm Tags */
.storm-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.storm-tag {
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.hail-tag {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.wind-tag {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc02;
}

.tornado-tag {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #f8bbd9;
}

.lightning-tag {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.storm-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #495057;
}

.grouped-events-summary {
    margin-top: 0.35rem;
}

.grouped-events-toggle {
    padding: 0;
    border: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    white-space: normal;
    text-align: left;
}

.grouped-events-toggle:hover,
.grouped-events-toggle:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

.grouped-events-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fbff;
    border: 1px solid #d7e5f3;
    border-radius: 12px;
}

.grouped-events-panel-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.grouped-event-item {
    padding: 0.85rem 0;
    border-top: 1px solid #d7e5f3;
    cursor: pointer;
}

.grouped-event-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.grouped-event-item:last-child {
    padding-bottom: 0;
}

.grouped-event-item:hover {
    background: rgba(255, 255, 255, 0.65);
}

.grouped-event-featured {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.grouped-event-title {
    font-weight: 600;
    color: #213547;
}

.grouped-event-featured-label {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.grouped-event-meta,
.grouped-event-details,
.grouped-event-checkbox {
    font-size: 0.85rem;
    color: #5d6b7a;
}

/* Multi-Source Info Box */
.multi-source-info {
    margin-bottom: 1rem;
}

.multi-source-info .alert {
    border-left: 4px solid var(--success-color);
}

.multi-source-info .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

/* Data Sources Summary */
.data-sources-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.source-stat {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.source-stat:last-child {
    border-bottom: none;
}

/* Storm Details Page */
.detail-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.storm-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Enhanced Storm Header */
.enhanced-storm-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
}

.data-source-badge {
    margin-top: 1rem;
}

.data-source-badge .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.storm-badges-large {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.storm-severity, .confidence-badge-large, .urgency-badge-large {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.confidence-high, .confidence-official {
    background: #28a745;
    color: white;
}

.confidence-moderate {
    background: #ffc107;
    color: #212529;
}

.confidence-test {
    background: #6c757d;
    color: white;
}

.urgency-immediate {
    background: #dc3545;
    color: white;
}

.urgency-expected {
    background: #fd7e14;
    color: white;
}

.storm-stats-preview {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-item i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Map Containers */
.map-container {
    height: 400px;
    border-radius: 0;
    position: relative;
}

.enhanced-map-container {
    position: relative;
}

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

.map-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#storm-map {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    background-color: #f0f0f0; /* Temporary background to see if container is visible */
}

.enhanced-map-container {
    position: relative;
    margin: 20px 0;
}


/* Storm marker styles */
.enhanced-storm-marker {
    background: transparent !important;
    border: none !important;
}

.storm-marker-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 3px solid white;
}

.storm-marker-inner.severity-extreme {
    background-color: #8B0000;
}

.storm-marker-inner.severity-high {
    background-color: #FF4500;
}

.storm-marker-inner.severity-moderate {
    background-color: #FFA500;
}

.storm-marker-inner.severity-low {
    background-color: #32CD32;
}

/* Home marker styles */
.home-marker {
    background: transparent !important;
    border: none !important;
}

.home-marker-inner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 2px solid #28a745;
}

/* Popup styles */
.enhanced-storm-popup {
    min-width: 250px;
}

.popup-details {
    margin-top: 10px;
}

.popup-details p {
    margin: 5px 0;
    font-size: 14px;
}

/* Detail Sections */
.detail-section {
    padding: 2rem;
}

.enhanced-detail-section {
    padding: 2rem;
}

.detail-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.detail-category h5 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.detail-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--secondary-color);
}

.detail-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.1rem;
    color: #333;
}

/* Wind Analysis Styles */
.wind-speed-extreme { color: #8B0000; font-weight: bold; }
.wind-speed-severe { color: #FF4500; font-weight: bold; }
.wind-speed-strong { color: #FFA500; font-weight: bold; }

.wind-category, .hail-category, .confidence-description {
    font-size: 0.8rem;
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
}

/* Hail Analysis Styles */
.hail-size-extreme { color: #8B0000; font-weight: bold; }
.hail-size-severe { color: #FF4500; font-weight: bold; }
.hail-size-moderate { color: #FFA500; font-weight: bold; }

/* Data Verification Section */
.data-verification-info {
    background: #e8f5e9;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--success-color);
}

.verification-details {
    margin-top: 1rem;
}

.verification-details p {
    margin-bottom: 0.5rem;
}

/* Source Statistics Card */
.source-stat-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.source-stat-card:hover {
    transform: translateY(-2px);
}

.source-stat-card i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.source-stat-card h6 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Timeline */
.impact-timeline {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-left: 3px solid var(--secondary-color);
    margin-left: 1rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.timeline-icon {
    background: var(--secondary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.timeline-item {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.timeline-urgent { background: #dc3545; }
.timeline-high { background: #fd7e14; }
.timeline-medium { background: #ffc107; }
.timeline-low { background: #28a745; }

/* Damage Assessment */
.damage-assessment {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.enhanced-damage-assessment {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 1.5rem;
}

.damage-level {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.damage-low {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.damage-medium, .damage-moderate {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.damage-high {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.damage-extreme {
    background: #d1ecf1;
    border-left: 4px solid #0c5460;
}

/* Risk Assessment */
.risk-assessment-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.damage-score {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
}

.risk-extreme { background: linear-gradient(135deg, #8B0000, #B22222); }
.risk-high { background: linear-gradient(135deg, #FF4500, #FF6347); }
.risk-moderate { background: linear-gradient(135deg, #FFA500, #FFD700); color: #333; }
.risk-low { background: linear-gradient(135deg, #32CD32, #90EE90); color: #333; }

.score-number {
    font-size: 1.5rem;
    line-height: 1;
}

.risk-factors {
    margin-top: 2rem;
}

.risk-factor {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.risk-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.risk-indicator.risk-high { background: #dc3545; }
.risk-indicator.risk-moderate { background: #ffc107; }
.risk-indicator.risk-low { background: #28a745; }

.inspection-timeline {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-custom {
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-custom {
    background: var(--secondary-color);
    color: white;
}

.btn-primary-custom:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-outline-custom {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--secondary-color);
    color: white;
}

/* Weather Radar */
.weather-radar {
    height: 300px;
    background: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    margin-top: 1rem;
}

/* Back Button */
.back-button {
    background: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


/* Sidebar */
.sidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}

/* Multi-Source Features Info */
.multi-source-features-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
}

.multi-source-features-info h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-list {
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Data Source Info Card */
.data-source-info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.data-source-info-card h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.source-description {
    padding: 0.5rem 0;
}

/* Storm Data Info */
.storm-data-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.storm-data-info h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Business Services */
.business-services {
    background: #e8f5e8;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--success-color);
}

.business-services h6 {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.business-services a {
    color: var(--success-color);
    font-weight: 500;
}

.business-services a:hover {
    color: #1e7e34;
}

/* Usage Statistics */
.compact-usage-stats {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.compact-usage-stats h6 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.compact-stats .row {
    margin: 0;
}

.compact-stat-card {
    padding: 0.5rem 0.25rem;
}

.compact-stat-number {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.compact-stat-label {
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Enhanced Usage Statistics */
.enhanced-usage-stats {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.enhanced-usage-stats h6 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.enhanced-stats {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

.enhanced-stat-card {
    padding: 0.75rem 0.5rem;
    background: white;
    border-radius: 8px;
    margin: 0.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.enhanced-stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.enhanced-stat-label {
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.platform-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.platform-info .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Storm Summary Card */
.storm-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
}

.summary-stats {
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item .label {
    font-weight: 500;
    opacity: 0.9;
}

.summary-item .value {
    font-weight: 600;
}

/* Contractor Cards */
.contractor-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.contractor-card h6 {
    color: var(--primary-color);
    font-weight: 600;
}

.contractor-card a {
    color: var(--secondary-color);
}

.contractor-card a:hover {
    color: #2980b9;
}

/* Enhanced Contractor Cards */
.enhanced-contractor-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.2s ease;
}

.enhanced-contractor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.contractor-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.contractor-actions {
    display: flex;
    gap: 0.5rem;
}

/* Current Weather Widget */
.current-weather-widget {
    background: linear-gradient(135deg, var(--secondary-color), var(--info-color));
    color: white;
    border-radius: 10px;
    padding: 1rem;
}

.weather-summary {
    margin-top: 0.5rem;
}

.weather-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.weather-stat i {
    margin-right: 0.5rem;
}

.weather-description {
    text-align: center;
    padding: 0.5rem;
}

/* Weather Forecast Widget */
.weather-forecast-widget {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

.forecast-list {
    margin-top: 0.5rem;
}

.forecast-day {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.forecast-day:last-child {
    border-bottom: none;
}

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

.day-name {
    font-weight: 600;
    color: var(--primary-color);
}

.severe-risk {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.risk-high {
    background: #dc3545;
    color: white;
}

.risk-moderate {
    background: #ffc107;
    color: #212529;
}

.risk-low {
    background: #28a745;
    color: white;
}

.forecast-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.temps {
    display: flex;
    gap: 0.5rem;
}

.temps .high {
    font-weight: 600;
    color: #dc3545;
}

.temps .low {
    color: #6c757d;
}

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

.conditions i {
    color: var(--warning-color);
}

.wind {
    font-size: 0.8rem;
    color: #6c757d;
}

.precipitation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.precipitation span {
    font-size: 0.8rem;
}

.severe-warning {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #fff3cd;
    border-radius: 5px;
}

/* Air Quality Badge */
.air-quality {
    margin-top: 0.5rem;
}

.aqi-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.aqi-good {
    background: #d4edda;
    color: #155724;
}

.aqi-moderate {
    background: #fff3cd;
    color: #856404;
}

.aqi-unhealthy {
    background: #f8d7da;
    color: #721c24;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

/* Icons */
.storm-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.search-card .storm-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Disclaimer Modal Styles */
.disclaimer-modal {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-body {
    position: relative;
    padding: 2rem;
    min-height: 400px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9) !important;
}

/* Watermark positioning and visibility */
.watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    z-index: 1;
    opacity: 0.1 !important;
    pointer-events: none;
    width: 500px;
    height: 500px;
}

/* ArgentWorks Logo */
.argentworks-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.argentworks-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Storm Title Section with Logo */
.storm-title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-storm-title-logo {
    width: 88px;
    height: 88px;
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
}

.storm-title-text {
    font-size: 3rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Content overlay with transparent backgrounds */
.disclaimer-content {
    position: relative;
    z-index: 10;
    background: transparent !important;
    border-radius: 10px;
}

/* Transparent backgrounds for all modal content elements */
.disclaimer-content h4,
.disclaimer-content p,
.disclaimer-content .lead,
.disclaimer-content .alert {
    background: transparent !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    border: none !important;
}

.disclaimer-content a {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.disclaimer-content .alert {
    background: rgba(23, 162, 184, 0.2) !important;
    border: 1px solid rgba(23, 162, 184, 0.5) !important;
}

.disclaimer-content .alert i {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.modal-footer .btn {
    min-width: 200px;
    border-radius: 25px;
    font-weight: 600;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Map Marker Styles with Source Colors */
.enhanced-storm-marker .storm-marker-inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.enhanced-storm-marker .storm-marker-inner.severity-extreme {
    background: #8B0000;
}

.enhanced-storm-marker .storm-marker-inner.severity-high {
    background: #FF4500;
}

.enhanced-storm-marker .storm-marker-inner.severity-moderate {
    background: #FFA500;
}

.enhanced-storm-marker .storm-marker-inner.severity-low {
    background: #32CD32;
}

.storm-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    border: 2px solid #e74c3c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.home-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    border: 2px solid #28a745;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.home-marker .home-marker-inner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #28a745;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.contractor-marker .contractor-marker-inner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #007bff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    color: #007bff;
}

.contractor-marker .contractor-marker-inner.certified {
    border-color: #28a745;
    color: #28a745;
}

/* Map Popup Styles */
.enhanced-storm-popup, .address-popup, .contractor-popup {
    min-width: 200px;
}

.storm-popup h6, .address-popup h6, .contractor-popup h6 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-weight: bold;
}

.storm-popup p, .address-popup p, .contractor-popup p {
    margin: 5px 0;
    font-size: 14px;
}

.popup-details p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.popup-badges {
    margin-top: 0.5rem;
}

.popup-badges .badge {
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.result-section {
    /* Used for showing/hiding search results */
}

/* Angular-specific visibility control */
.ng-hide {
    display: none !important;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Angular-specific Animations */
.storm-card.ng-enter {
    animation: slideIn 0.4s ease-out;
}

.alert.ng-enter {
    animation: fadeIn 0.3s ease-in;
}

/* Responsive Design */
@media (max-width: 768px) {
    .back-button {
        margin-bottom: 1rem;
        width: 100%;
    }


    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .enhanced-detail-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-custom {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .disclaimer-content {
        padding: 1rem;
    }

    .watermark-logo {
        width: 300px;
        height: 300px;
    }

    .storm-title-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .storm-title-text {
        font-size: 2rem !important;
    }

    .modal-footer .btn {
        min-width: 150px;
        margin-bottom: 0.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .storm-data-info,
    .business-services,
    .compact-usage-stats,
    .enhanced-features-info,
    .multi-source-features-info {
        margin-bottom: 1rem;
    }

    .compact-stat-number,
    .enhanced-stat-number {
        font-size: 1.1rem;
    }

    .compact-stat-label,
    .enhanced-stat-label {
        font-size: 0.7rem;
    }

    .storm-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .storm-tags {
        margin-top: 0.5rem;
    }

    .enhanced-storm-card .row > div {
        margin-bottom: 1rem;
    }

    .enhanced-storm-header {
        padding: 1.5rem;
    }

    .storm-badges-large {
        flex-direction: column;
        gap: 0.5rem;
    }

    .map-controls {
        position: relative;
        top: auto;
        right: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .risk-assessment-card .row {
        flex-direction: column;
    }

    .damage-score {
        margin-top: 1rem;
        justify-content: flex-start;
    }

    .data-sources-summary .row {
        flex-direction: column;
    }

    .source-stat {
        margin-bottom: 0.5rem;
    }

    .loading-sources {
        font-size: 0.9rem;
    }

    .source-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-button,
    .map-controls,
    .contractor-actions,
    .action-buttons {
        display: none !important;
    }

    .detail-card,
    .enhanced-damage-assessment {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .enhanced-storm-header {
        background: #f8f9fa !important;
        color: #333 !important;
    }

    .storm-severity,
    .confidence-badge-large,
    .urgency-badge-large {
        background: transparent !important;
        color: #333 !important;
        border: 1px solid #333;
    }

    .data-quality-badge {
        margin-top: 0.25rem;
    }

    .data-quality-note {
        margin-bottom: 0.5rem;
        padding: 0.25rem 0.5rem;
        background-color: rgba(255, 193, 7, 0.1);
        border-left: 3px solid #ffc107;
        border-radius: 0.25rem;
    }

    .data-quality-note small {
        font-size: 0.85rem;
    }

    /* Storm details page - add quality indicator */
    .data-quality-indicator {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 1rem;
        margin: 1rem 0;
        border-radius: 0.5rem;
        font-weight: 500;
    }

    .data-quality-indicator.final {
        background-color: rgba(40, 167, 69, 0.1);
        color: #28a745;
        border: 1px solid rgba(40, 167, 69, 0.3);
    }

    .data-quality-indicator.preliminary {
        background-color: rgba(255, 193, 7, 0.1);
        color: #856404;
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .data-quality-indicator.real-time {
        background-color: rgba(23, 162, 184, 0.1);
        color: #0c5460;
        border: 1px solid rgba(23, 162, 184, 0.3);
    }
}
