body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}
.sidebar-logo {
    max-width: 180px;
    height: auto;
}
.sidebar {
    position: fixed;
    top: 0px;
    left: 0;
    width: 280px;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
    z-index: 100;
}
.sidebar-section {
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    margin: 12px 0 6px;
    text-transform: uppercase;
}
.sidebar .nav-link {
    color: #212529;
    border-radius: 8px;
    margin-bottom: 4px;
}
.sidebar .nav-link:hover {
    background-color: #006aff;
    color: #ffffff;
}
.sidebar .nav-link.active {
    background-color: #006aff;
    color: #ffffff !important;
    font-weight: 600;
}
.sidebar .logout-link:hover{
    background-color: red;
    color:#ffffff !important;
}
.main-content {
    margin-left: 260px; /* sama dengan lebar sidebar */
    width: calc(100% - 230px);
    height: calc(100vh - 10px);
    overflow-y: auto;
    top: 5px;
    padding-top: 30px;
}
.main-content iframe {
    display: block;
    padding: 1rem;
}
.topbar {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    background-color: #006aff;
    height: 50px;
    z-index: 999;
}

/* iframe api streamlit */
.main-content iframe {
    width: 100%;
    height: calc(100vh - 100px);
    border: none;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    color: #666;
}
.table-scroll {
    overflow-x: auto;
    white-space: nowrap;
}
.table-scroll table {
    font-size: 0.85rem; 
}
.table-scroll th,
.table-scroll td {
    vertical-align: middle;
    white-space: nowrap; 
}
.table-scroll thead th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 5;
}
.table-report {
    font-size: 13px;
    white-space: nowrap;
}
.table-report td,
.table-report th {
    vertical-align: middle;
}
.table-report .wrap {
    white-space: normal;
    min-width: 200px;
}
.table-report .nilai {
    min-width: 140px;
    white-space: nowrap;
}
/* Wrapper user */
.user-navbar {
    max-width: 75%;
    color: white;
}

/* Welcome kecil */
.welcome-text {
    font-size: 12px;
    opacity: .9;
    display: block;
    line-height: 1;
}

/* Username */
.username-wrapper {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
    max-width: 180px;
}

/* icon */
.user-icon {
    font-size: 18px;
    flex-shrink: 0;
}
#togglePassword:checked + .password-toggle i::before {
    content: "\f070"; /* fa-eye-slash */
}
#togglePassword:checked ~ #password {
    display: none;
}
#togglePassword:checked ~ #passwordText {
    display: block !important;
}
#map{
    width: 100%;
    height: 500px;
    z-index: 1;
}

/* .background-content{
    background-image: url('/aset/KRI-TOMBAK-629.png');
    opacity: 0.3;
    position: absolute;
    
} */



/* media */
@media (max-width: 768px) {

    .sidebar {
        transform: translateX(-100%);
        position: fixed;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        left: 0;
    }
}