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

body {
    background: #1a1a1a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 70px;
    height: 100vh;
    background: #0f0f0f;
    border-right: 1px solid #2a2a2a;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    color: #888;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 20px;
}

.nav-item:hover {
    background: #2a2a2a;
    color: #fff;
}

.nav-item.active {
    background: #3b82f6;
    color: #fff;
}

/* Main Wrapper */
.main-wrapper {
    margin-left: 0;
    min-height: 100vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    padding: 20px 30px;
    position: sticky;
    top: 0;
    z-index: 2000;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.95);
}

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

.header-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.header-date {
    font-size: 16px;
    color: #888;
    font-weight: 500;
}

/* Content Area */
.content-area {
    padding: 30px;
    flex: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.content-left {
    min-width: 0;
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
}

.content-right > .card {
    flex: 1 1 auto;
    min-height: 300px;
    align-self: stretch;
}

/* Override for preview card to size based on content */
.content-right > .cctv-preview-card {
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    min-height: 400px;
}

/* Card Styles */
.card {
    background: #242424;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Preview card needs to contain its content */
.cctv-preview-card {
    overflow: hidden !important;
    height: auto !important;
    min-height: 400px;
}

.card:hover {
    border-color: #3a3a3a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.quality-select {
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.quality-select:focus {
    border-color: #3b82f6;
}

.card-body {
    padding: 25px;
    overflow: visible;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    max-height: none;
}

/* CCTV Card Specific Styles */
.cctv-card {
    /* Removed grid-column since we're using 2-column layout */
}

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

.cctv-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.feed-label {
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
}

.live-badge {
    background: #22c55e;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.video-wrapper {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    padding-top: 56.25%;
    aspect-ratio: 16/9;
    pointer-events: auto;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.3);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.quality-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: auto;
}

.quality-badge.high-quality {
    background: rgba(59, 130, 246, 0.9);
}

.btn-fullscreen {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.btn-fullscreen:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.location-text,
.bandwidth-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bandwidth-text i {
    color: #3b82f6;
}

/* Clickable feed */
.cctv-feed {
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.cctv-feed:hover {
    transform: scale(1.02);
}

.cctv-feed:hover .video-wrapper::after {
    content: 'Click to Zoom';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    z-index: 15;
    white-space: nowrap;
}

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

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

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    max-width: 1800px;
    margin: 0 auto;
    z-index: 10000;
    pointer-events: auto;
}

.btn-close-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    pointer-events: auto;
    outline: none;
}

.btn-close-zoom:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.btn-close-zoom:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.zoom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.zoom-video-wrapper {
    position: relative;
    flex: 1;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#zoom-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.zoom-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.zoom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #ccc;
}

/* Weather Card Styles */
.weather-card {
    min-height: 200px;
    flex: 1 1 auto;
    align-self: stretch;
}

.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 15px;
    color: #888;
    font-size: 14px;
}

.weather-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.weather-current {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.weather-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 13px;
    margin-bottom: 5px;
}

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

.weather-temp {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.weather-icon {
    font-size: 56px;
    color: #ffa500;
}

.weather-description {
    font-size: 15px;
    color: #ccc;
    text-transform: capitalize;
    margin-top: 5px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.weather-detail-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.weather-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.weather-subtitle {
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

.weather-forecast-section {
    margin-top: 5px;
}

.forecast-header {
    margin-bottom: 12px;
}

.forecast-title {
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.forecast-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.forecast-day {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.forecast-day-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    min-width: 55px;
}

.forecast-icon {
    font-size: 20px;
    color: #ffa500;
}

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

.forecast-temp-high {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.forecast-temp-low {
    font-size: 13px;
    color: #888;
}

/* Map Card Styles */
.map-card {
    min-height: 400px;
}

.map-subtitle {
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

/* Removed - using Google Maps iframe instead */

/* Camera Preview Card - Special handling to prevent clipping */
.cctv-preview-card {
    min-height: 400px;
    height: auto !important;
    overflow: hidden !important; /* Keep overflow hidden to contain content */
    flex: 0 0 auto !important; /* Don't grow or shrink, size based on content */
    align-self: flex-start !important; /* Align to start, don't stretch */
    position: relative;
    width: 100%; /* Full width but don't stretch height */
}

.cctv-preview-card .card-body {
    overflow: hidden !important; /* Change to hidden to prevent overflow */
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    padding-bottom: 25px;
    flex: 0 0 auto !important; /* Don't grow or shrink, size based on content */
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: stretch; /* Ensure children take full width */
}

.camera-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 400px;
}

.camera-preview-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    overflow: hidden; /* Change to hidden to prevent overflow */
    min-height: 0;
    flex: 0 0 auto !important; /* Don't grow or shrink, size based on content */
    height: auto;
    max-height: none;
}

#camera-preview-container {
    width: 100%;
    overflow: hidden; /* Change to hidden to prevent overflow */
    min-height: 0;
    flex: 0 0 auto !important; /* Don't grow or shrink, size based on content */
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
}

    .camera-preview-feed .feed-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 10px;
        border-bottom: 1px solid #2a2a2a;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .camera-preview-feed .feed-header .feed-label {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Status dot in live badge */
    .live-badge .status-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #22c55e;
        margin-right: 6px;
        animation: pulse 2s infinite;
    }

    .live-badge .status-dot.connecting {
        background: #f59e0b;
        animation: pulse 1s infinite;
    }

    .live-badge .status-dot.offline {
        background: #ef4444;
        animation: none;
    }

    .live-badge.offline {
        opacity: 0.7;
    }

    .live-badge.offline .status-dot {
        background: #ef4444;
    }

    /* Smooth transition for preview container */
    #camera-preview-container {
        transition: opacity 0.3s ease;
    }

    .camera-preview-feed .video-wrapper {
        position: relative;
        background: #000;
        border-radius: 12px;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        padding-top: 56.25%;
        aspect-ratio: 16/9;
        pointer-events: auto;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        flex-shrink: 0;
        flex-grow: 0; /* Prevent flex from shrinking the wrapper */
        min-height: 0; /* Allow aspect-ratio to work */
    }

.camera-preview-feed .video-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.camera-preview-feed .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

    .camera-preview-feed .feed-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: #888;
        padding-top: 10px;
        border-top: 1px solid #2a2a2a;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .camera-preview-feed .feed-footer .location-text,
    .camera-preview-feed .feed-footer .bandwidth-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

/* Google Maps container */
.cctv-map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
}

#cctv-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 12px;
}

/* Google Maps Info Window Styling */
.camera-marker-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.camera-marker-popup button {
    transition: background 0.2s ease;
}

.camera-marker-popup button:hover {
    background: #2563eb !important;
}

/* Make Google Maps Info Window larger to accommodate bigger video */
.gm-style-iw {
    padding: 0 !important;
    max-width: 480px !important;
}

.gm-style-iw-c {
    padding: 0 !important;
    max-width: 480px !important;
}

.gm-style-iw-d {
    padding: 0 !important;
    overflow: hidden !important;
}

.gm-style-iw.gm-style-iw-c {
    padding: 0 !important;
}

/* Compact info window content */
.camera-marker-popup {
    padding: 10px 12px !important;
    min-width: 280px !important;
    max-width: 460px !important;
}

.camera-marker-popup h4 {
    margin: 0 0 6px 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

.camera-marker-popup p {
    margin: 0 0 8px 0 !important;
}

/* Info window preview video - bigger size */
.info-window-preview {
    margin: 8px 0;
    width: 100%;
}

.info-window-video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-window-video-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.info-window-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-window-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.info-window-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.info-window-quality-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 11;
    backdrop-filter: blur(4px);
}

.info-window-quality-badge.high-quality {
    background: rgba(34, 197, 94, 0.8);
}

/* YouTube-style fullscreen button overlay */
.info-window-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.75);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    pointer-events: auto;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
    opacity: 0.85;
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.info-window-video-wrapper:hover .info-window-fullscreen-btn {
    opacity: 1;
    background: rgba(59, 130, 246, 0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.info-window-fullscreen-btn:hover {
    background: rgba(59, 130, 246, 0.9);
    transform: scale(1.1);
}

.info-window-fullscreen-btn:active {
    transform: scale(0.95);
}

.info-window-fullscreen-btn i {
    font-size: 16px;
}
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.camera-marker-popup button {
    padding: 6px 12px !important;
    font-size: 12px !important;
    width: 100% !important;
    margin: 0 !important;
}

.map-card .card-body {
    padding: 0 !important;
    height: 500px;
    min-height: 500px;
    overflow: hidden;
    position: relative;
}

/* Full Width Weather Section */
.weather-section-fullwidth {
    width: 100%;
    margin-top: 25px;
}

.weather-section-fullwidth .weather-card {
    width: 100%;
    margin: 0;
}

.weather-section-fullwidth .weather-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
}

.weather-section-fullwidth .weather-current {
    border-bottom: none;
    border-right: 1px solid #2a2a2a;
    padding-right: 30px;
    padding-bottom: 0;
}

.weather-section-fullwidth .weather-forecast-section {
    margin-top: 0;
}

/* CSS Overlay Markers */
.map-markers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.camera-marker-overlay {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 11;
    transition: transform 0.2s ease;
}

.camera-marker-overlay:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 12;
}

.marker-pin {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.camera-marker-overlay:hover .marker-pin {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);
}

/* Tooltip for markers */
.camera-marker-overlay::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(36, 36, 36, 0.95);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
    border: 1px solid #2a2a2a;
}

.camera-marker-overlay:hover::after {
    opacity: 1;
}

/* Main Footer */
.main-footer {
    background: #0f0f0f;
    border-top: 1px solid #2a2a2a;
    padding: 20px 30px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.footer-center {
    flex: 1;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.footer-right {
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .cctv-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1400px) {
    .cctv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-right {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .weather-section-fullwidth .weather-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .weather-section-fullwidth .weather-current {
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
        padding-right: 0;
        padding-bottom: 20px;
    }
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-right {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        margin-left: 0;
    }
    
    .top-header {
        padding: 15px 20px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .header-date {
        font-size: 14px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .content-left,
    .content-right {
        width: 100%;
        min-width: 0;
    }
    
    .card {
        border-radius: 12px;
    }
    
    .card-header {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .cctv-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cctv-map {
        height: 400px;
        min-height: 400px;
    }
    
    .map-card {
        min-height: auto;
    }
    
    .map-card .card-body {
        height: 400px !important;
        min-height: 400px !important;
    }
    
    .cctv-preview-card {
        min-height: 400px;
    }
    
    .cctv-preview-card .card-body {
        min-height: 350px !important;
        height: auto !important;
    }
    
    .content-right > .card {
        min-height: 300px;
    }
    
    .weather-section-fullwidth {
        margin-top: 15px;
    }
    
    .weather-section-fullwidth .weather-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .weather-section-fullwidth .weather-current {
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
        padding-right: 0;
        padding-bottom: 15px;
    }
    
    .camera-preview-feed {
        gap: 12px;
    }
    
    .camera-preview-feed .feed-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .camera-preview-feed .feed-label {
        font-size: 14px;
    }
    
    .camera-preview-feed .feed-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
    }
    
    .camera-preview-placeholder {
        padding: 40px 15px;
        min-height: 300px;
    }
    
    .main-footer {
        padding: 15px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-center,
    .footer-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-wrapper {
        margin-left: 0;
    }
    
    .top-header {
        padding: 12px 15px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .header-date {
        font-size: 12px;
    }
    
    .content-area {
        padding: 12px;
    }
    
    .content-grid {
        gap: 12px;
    }
    
    .card-header {
        padding: 12px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .cctv-map {
        height: 350px;
        min-height: 350px;
    }
    
    .cctv-preview-card {
        min-height: 450px;
    }
    
    .cctv-preview-card .card-body {
        min-height: 400px !important;
        height: auto !important;
    }
    
    .camera-preview-feed .feed-label {
        font-size: 13px;
    }
    
    .camera-preview-feed .feed-footer {
        font-size: 11px;
    }
    
    .quality-select {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .live-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}
