#page-topbar {
    background-color: #006100;

}

body {
    background-color: #f7f8fa;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

/* Container utama */
.image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Wrapper untuk gambar */
#image-wrapper {
    position: absolute;
    transform-origin: 0 0;
    will-change: transform;
}

/* Marker styling */
.marker {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto;
    transition: transform 0.1s ease-out;
}

.marker-icon {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Tooltip styling */
.marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 20;
    margin-bottom: 5px;
}

.marker:hover .marker-tooltip {
    opacity: 1;
}



/* Status colors */
[data-status="1"] {
    filter: brightness(1.2);
    /* Marker online lebih terang */
}

[data-status="2"] {
    filter: brightness(0.8);
    /* Marker offline lebih gelap */
}

.coordinates-display {
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: monospace;
}

.controls {
    margin: 20px;
}

.zoom-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.zoom-controls button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: none;

    background-color: rgba(66, 133, 244, 0.9);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s;
}

.zoom-controls button:hover {
    background-color: rgba(66, 133, 244, 1);
}


button {
    padding: 8px 16px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

button:hover {
    background-color: #3367D6;
}

.topnav {
    margin-top: 0px !important;
}

.page-content {
    margin-top: 10px !important;
}

.cctv-container {
    height: 401px;
    display: flex;
    flex-direction: column;
}

#cctv-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    overflow-y: auto;
    padding-right: 5px;
}


.cctv-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    width: 100%;
    padding-top: 56.25%;
}

.cctv-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cctv-status {
    position: absolute;
    top: 8px;
    left: 8px;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.cctv-status.green {
    color: #00cc00;
}

.cctv-status.red {
    color: #cc0000;
}

.cctv-offline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #f8f9fa;
    color: #555;
}

.cctv-offline i {
    font-size: 36px;
    margin-bottom: 5px;
}

#cctv-container::-webkit-scrollbar {
    width: 5px;
}

#cctv-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

#cctv-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}



body {
    background-color: #f7f8fa;
}

.container-fluid {
    min-width: 100% !important;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 250px;
    height: 30vh;
    max-height: 350px;
}

.chart-container {
    position: relative;
}

#chart-band {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.chart-wrapper {
    min-height: 220px !important;
}

.cctv1.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    overflow: auto;
    padding: 20px;
}

.cctv1.fullscreen {
    background: #fff;
    display: block !important;
}

.fs-large {
    font-size: 36px;
}


.chart-wrapper2 {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    min-width: 80px;
    contain: strict;
    z-index: 1;
}


.chart-container2 {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.responsive-container {
    height: 33vh !important;
}

@media (min-width: 1400px) {

    .responsive-container {
        height: 34.6vh !important
    }
}
@media (min-width: 1920px) {

    .responsive-container {
        height: 32.8vh !important
    }
}
@media (min-width: 2400px) {

    .responsive-container {
        height: 32vh !important;
    }
}

@media (min-width: 2800px) {

    .responsive-container {
        height: 31vh !important;
    }
}
@media (min-width: 3800px) {

    .responsive-container {
        height: 30vh !important;
    }
}




@media (max-width: 768px) {
    .chart-container2::before {
        font-size: min(5cqw, 1.8rem);
    }

    .chart-container {
        min-height: 280px
    }

}

@media (min-width: 1920px) {
    .chart-container2::before {
        font-size: 1.8rem;
    }

}


@supports (zoom: reset) {
    @media (max-zoom: 110%) {
        .chart-container2::before {
            font-size: min(3.5cqw, 2rem);
        }
    }
}

@media (max-width: 576px) {
    .chart-container {
        min-height: 200px;
        height: 25vh;
    }
}

/* Untuk layar besar (full HD ke atas) */
@media (min-width: 1920px) {
    .chart-container {
        min-height: 300px;
        height: 31vh;
    }
}

@media (min-width: 3800px) {
    .chart-container {
        min-height: 300px;
        height: 31vh;
    }
}

/* Untuk kasus zoom khusus */
@media (max-zoom: 100%) and (min-width: 1920px) {
    .chart-container {
        height: calc(31vh * 0.9);
    }
}



#chart-band {
    margin-top: -20px;
    /* Naikkan chart */
    margin-bottom: -20px;
    /* Turunkan bagian bawah */
}

.apexcharts-yaxis-label {
    transform: translateX(-5px);
    /* Geser label Y ke kiri */
}

.chart-container2::before {
    content: attr(data-percent);
    position: absolute;
    top: 50%;
    font-size: clamp(1rem, 3vw, 1.8rem);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999 !important;
    color: attr(data-color) !important;
    font-weight: bold;
}

.font-size-19 {
    font-size: 19px !important;
}

.font-size-20 {
    font-size: 20px !important;
}

.font-size-21 {
    font-size: 21px !important;
}

.font-size-22 {
    font-size: 22px !important;
}

.font-size-23 {
    font-size: 23px !important;
}

.font-size-24 {
    font-size: 24px !important;
}

.log-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 4px;

}

.status-log {
    max-height: 300px;

    overflow-y: auto;

    scrollbar-width: thin;

}

.timestamp {
    margin: 10px;
}

.status-log::-webkit-scrollbar {
    width: 6px;
}

.status-log::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 3px;
}

.status-log::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.log-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

.online {
    background-color: #e6f7ee;
    color: #28a745;
    border-left: 3px solid #28a745;
}

.offline {
    background-color: #fce8e8;
    color: #dc3545;
    border-left: 3px solid #dc3545;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-label {
    color: #636e72;
    font-size: 0.9rem;
}

.profit-badge {
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--success-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.table-container {
    overflow-x: auto;
}

.custom-table {
    min-width: 800px;
}

.custom-table th,
.custom-table td {
    text-align: center;
    padding: 12px 8px;
}

.custom-table th {
    color: #636e72;
    font-weight: 500;
}

.custom-table td:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

.highlight-cell {
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 8px;
    font-weight: 600;
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 25px 0;
}