body {
    background: #f4f6f9;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

.card {
    border: none;
    border-radius: 10px;
}

/* progress tipis */
.progress-sm {
    height: 6px;
    border-radius: 10px;
}

/* icon lebih halus */
.card-stat i {
    font-size: 18px;
    opacity: 0.6;
}

/* khusus card kecil */
.card-stat {
    border-radius: 12px;
    background: #f8f9fb;
}


.card-stat:hover {
    transform: translateY(-3px);
}

.card-stat .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* default card */
.card-body {
    display: block !important; 
    justify-content: space-between;
    align-items: center;
   
}

/* responsive fix */
.card-body > div {
    min-width: 100px;
}

h3 {
    font-weight: 600;
}

.card {
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}



.text-muted {
    opacity: 0.6;
}


/* CARD */
.dashboard-card {
    border: none;
    border-radius: 12px;
    transition: 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

/* BORDER */
.border-left-primary {
    border-left: 4px solid #007bff;
}

.border-left-success {
    border-left: 4px solid #28a745;
}

/* ICON */
.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.bg-primary { background: #007bff; }
.bg-info { background: #17a2b8; }
.bg-warning { background: #ffc107; color: #333; }
.bg-success { background: #28a745; }

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
}



/* MENU DALAM SIDEBAR */
/* SIDEBAR */
.main-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: #343a40;
}

/* MENU */
.main-sidebar nav {
    display: block;
}

.main-sidebar nav a.active {
    background: #495057;
    color: #fff;
    border-left: 3px solid #007bff;
}

/* LINK */
.main-sidebar nav a {
    display: block;
    padding: 10px 15px;
    color: #adb5bd;
    text-decoration: none;
}

.main-sidebar nav a:hover {
    background: rgba(255,255,255,0.1);
    transition: 0.2s;
}

/* ICON */
.main-sidebar nav a i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}



body, html {
    height: 100%;
}


/* CONTENT GESER */
.content {
    margin-left: 250px;
}
/* ======================
   CONTENT
====================== */
.content {
    margin-left: 250px; /* 🔥 geser konten di desktop */
    min-height: 100vh;
    transition: 0.25s ease;
}



/* RESPONSIVE */
@media (max-width: 768px) {
    .filter-input {
        max-width: 100%;
        width: 100%;
    }

    .filter-btn {
        width: 100%;
    }
}




/* FILTER BOX */
.filter-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);

    display: inline-block;   /* 🔥 biar gak full lebar */
}

/* FORM */
.filter-form {
    gap: 10px;
}

/* INPUT */
.filter-input {
    min-width: 180px;
}

/* BUTTON */
.filter-btn {
    border-radius: 8px;
    padding: 8px 16px;
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .filter-box {
        display: block;
        width: 100%;
    }

    .filter-form {
        width: 100%;
    }

    .filter-input {
        width: 100%;
    }

    .filter-btn {
        width: 100%;
    }
}

th small {
    font-size: 11px;
    color: #6c757d;
}


/*highlight*/
.bg-danger-soft {
    background-color: rgba(220,53,69,0.15);
}

/* USER MANAJEMEN */
.table td, .table th {
    vertical-align: middle;
}

.btn-sm {
    border-radius: 6px;
}

.badge {
    padding: 6px 10px;
    border-radius: 6px;
}

/* BASE STYLE */
.badge-limbah {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    color: #fff;
}

/* WARNA */
.limbah-infeksius {
    background-color: #ffc107;
    color: #212529;
}

.limbah-tajam {
    background-color: #fd7e14;
    color: #fff;
}

.limbah-farmasi {
    background-color: #8B4513;
    color: #fff;
}

.limbah-radioaktif {
    background-color: #6f42c1;
    color: #fff;
}

.limbah-sitotoksik {
    background-color: #dc3545;
    color: #fff;
}

.limbah-default {
    background-color: #6c757d;
    color: #fff;
}

