#page-topbar {
    background-color: #006100;

}

body {
    background-color: #f7f8fa;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

.image-container {
    width: 800px;
    height: 900px;
    overflow: hidden;
    position: relative;
    /* border: 1px solid #ddd; */
}

#image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.2s ease;
    cursor: grab;
}

#target-image {
    max-width: 100%;
    height: auto;
    /* border: 1px solid #ccc; */
}

.marker {
    position: absolute;
    width: 30px;
    height: 40px;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 10;
}

.marker-icon {
    width: 100%;
    height: 100%;
    /* color:#00cc00; */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%234285F4" d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.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-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-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
} */

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}



body {
    background-color: #f7f8fa;
}

.container-fluid {
    min-width: 100% !important;
}

/* .chart-container {
    height: 120px;
} */

.chart-container {
    width: 100%;
    height: 100%;
    /* biar ngikutin tinggi parent card-body */
}

.chart-container {
    position: relative;
}

#chart-band {
    width: 100%;
    height: 200px;
    /* atau 100% jika parent sudah punya tinggi tetap */
}


.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;
}

.stepper {
    position: relative;
    gap: 1.5rem;
}

.step {
    cursor: pointer;
    position: relative;
    gap: 0.75rem;
    height: 60px;
}

.step .circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #006100;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    z-index: 1;
}

.step .label {
    font-weight: 500;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 71px;
    background: #006100;
    top: 32px;
    left: 15px;
    z-index: 0;
}

@media (max-width: 767px) {
    .stepper {
        flex-direction: row !important;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step .label {
        margin-top: 6px;
    }

    .step:not(:last-child)::after {
        width: 40px;
        height: 2px;
        top: 15px;
        left: 32px;
    }
}

/* Aktif */
.step.active .circle {
    background-color: #006100;
    color: white;
}

.step.active .label {
    font-weight: bold;
    color: #006100;
}

.fs-large {
    font-size: 36px;
}

/* Core Structure */
.chart-wrapper2 {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    min-width: 80px;
    contain: strict;
    z-index: 1;
}

/* PASTIKAN INI ADA DI CSS ANDA */
.chart-container2 {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

/* .chart-center-label {
    
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1000 !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 (min-width: 576px) {

    /* SM */
    .chart-container {
        min-height: 180px;
    }
}

@media (min-width: 768px) {

    /* MD */
    .chart-container {
        min-height: 200px;
    }
}

@media (min-width: 992px) {

    /* LG */
    .chart-container {
        min-height: 220px;
    }
}

@media (min-width: 1200px) {

    /* XL */
    .chart-container {
        min-height: 250px;
    }
}

@media (min-width: 1400px) {

    .chart-container {
        min-height: 250px;
    }
}

/* Khusus untuk layar lebar (1920px+) */
@media (min-width: 1920px) {
    .chart-container {
        min-height: 291px;
    }

    /* Penyesuaian saat zoom out */
    @media (max-zoom: 100%) {
        .chart-container {
            min-height: 291px;
        }
    }

    @media (max-zoom: 90%) {
        .chart-container {
            min-height: 320px;
        }
    }

    @media (max-zoom: 80%) {
        .chart-container {
            min-height: 350px;
        }
    }

    @media (max-zoom: 70%) {
        .chart-container {
            min-height: 380px;
        }
    }

    @media (max-zoom: 60%) {
        .chart-container {
            min-height: 420px;
        }
    }

    @media (max-zoom: 50%) {
        .chart-container {
            min-height: 460px;
        }
    }
}




/* ApexCharts Overrides */
/* .apexcharts-inner,
.apexcharts-canvas {
    overflow: visible !important;
    transform-box: fill-box !important;
} */

/* Browser-Specific Fixes */
/* @supports (-moz-user-select: none) {
    .chart-center-label {
        transform: translateZ(0);
    }
} */

.chart-container2::before {
    content: attr(data-percent);
    position: absolute;
    top: 50%;
    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;
    
}

/* Styling scrollbar untuk WebKit browsers */
.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: 8px 0;
    border-bottom: 1px solid #eee;
}

.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;
}