/* File: assets/css/style.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Light background */
}

.card {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    background-color: #007bff; /* Primary color for headers */
    color: white;
    padding: 1rem 1.25rem;
    font-weight: bold;
}

.card-header.bg-info {
    background-color: #17a2b8 !important; /* Info color for detail header */
}

.list-group-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.25rem;
}

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

.list-group-item:hover {
    background-color: #e9ecef;
}

.list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.badge {
    font-size: 0.9em;
    padding: 0.5em 0.75em;
    border-radius: 0.35rem;
}

#trafficDetail {
    min-height: 250px; /* Ensure card has some height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#locationInfo {
    width: 100%; /* Take full width when displayed */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    .container {
        padding: 0 15px;
    }
    #trafficDetail {
        min-height: 200px;
    }
}

/* --- Fullscreen Video Styles --- */
#closeFullscreenBtn {
    display: none; /* Sembunyikan tombol tutup secara default */
    position: absolute;
    top: 50%;
    left: 20px; /* Diubah dari right ke left */
    z-index: 2147483647; /* Z-index tertinggi */
    font-size: 1rem; /* Ukuran lebih kecil */
    padding: 0.25rem 0.5rem; /* Padding lebih kecil */
}

#video-fullscreen-wrapper:fullscreen {
    background-color: #000;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px; /* Padding diubah menjadi 0px */
}

#video-fullscreen-wrapper:fullscreen #closeFullscreenBtn {
    display: block; /* Tampilkan tombol tutup saat fullscreen */
}

#video-fullscreen-wrapper:fullscreen #fullscreenBtn {
    display: none; /* Sembunyikan tombol fullscreen saat sudah fullscreen */
}

#video-fullscreen-wrapper:fullscreen .ratio {
    width: 100%;
    height: 100%;
}

.video-hidden-on-load {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* --- Custom Primary Color Overrides --- */
.bg-primary, .btn-primary {
    background-color: #0030d3 !important;
    border-color: #0030d3 !important;
}

.btn-primary:hover {
    background-color: #0027a8 !important; /* A slightly darker shade for hover */
    border-color: #0027a8 !important;
}
