body{
    font-family:'Inter',sans-serif;
    background:#f1f5f9;
    --card-border: 1px solid rgba(226, 232, 240, 0.8);
    --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.04);
}

.card,
.summary-card,
.inventory-card,
.quick-link,
.navbar-custom,
.maintenance-ticket {
    box-shadow: var(--card-shadow) !important;
    border: var(--card-border) !important;
}

.sidenav{
    width:260px;
    border-radius:24px;
    background:linear-gradient(180deg,#0f172a,#1e293b);
    box-shadow:0 20px 40px rgba(15,23,42,0.25);
    min-height:95vh;
}

.brand-title{
    color:#fff;
    font-weight:700;
    margin:0;
    letter-spacing:1px;
}

.brand-subtitle{
    color:#94a3b8;
}

.custom-nav{
    color:#cbd5e1 !important;
    padding:14px 18px;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:14px;
    font-weight:600;
    transition:all .3s ease;
}

.custom-nav i{
    width:18px;
    text-align:center;
}

.custom-nav:hover{
    background:rgba(255,255,255,0.08);
    color:#fff !important;
}

.active-menu{
    background:linear-gradient(90deg,#06b6d4,#3b82f6);
    color:#fff !important;
    box-shadow:0 8px 18px rgba(59,130,246,0.35);
}

.logout-btn{
    background:rgba(239,68,68,0.15);
    color:#fecaca !important;
}

.navbar-custom{
    background:#ffffff;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

.top-icon-box{
    width:42px;
    height:42px;
    border-radius:12px;
    background:#f1f5f9;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    cursor:pointer;
}

.card, .table, .form-control{
    border-radius:18px !important;
}

.btn{
    border-radius:12px !important;
}

.table{
    background:#fff;
    overflow:hidden;
}

.table thead th{
    background:#f8fafc !important;
    font-size:11px;
    text-transform:uppercase;
    color:#64748b;
    border:none !important;
    padding:10px 10px !important;
}

.table tbody td{
    padding:8px 10px !important;
    vertical-align:middle;
    border-color:#edf2f7;
    font-size:13px;
    line-height:1.2;
}


.table tbody tr:hover{
    background:#f8fbff;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select{
    border-radius:12px;
    border:1px solid #dbeafe;
    padding:8px 12px;
}

.inventory-action{
    border:none;
    padding:5px 13px;
    border-radius:4px;
    font-weight:600;
}

.status-badge{
    padding:6px 12px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
}

.modal-content{
    border:none;
    border-radius:24px;
}

.modal-header{
    border:none;
    padding:24px 30px 10px;
}

.modal-body{
    padding:10px 30px 30px;
}

.form-group label h5{
    font-size:12px;
    text-transform:uppercase;
    margin-bottom:8px;
    color:#475569;
}

.form-control{
    min-height:46px;
    border:1px solid #dbe4f0;
}

.inventory-topbar{
    background:#fff;
    padding:24px 28px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.card{
    border:none !important;
    box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

.btn-primary{
    background:linear-gradient(90deg,#06b6d4,#3b82f6);
    border:none;
}

.btn-light{
    background:#eef4ff;
    border:none;
}

/* ================= STATUS BADGE INVENTORY ================= */

.status-badge{
    display:inline-block;
    padding:6px 16px;
    border-radius:30px;
    font-size:12px;
    font-weight:700;
    min-width:75px;
    text-align:center;
    letter-spacing:0.3px;
}

/* Aktif */
.status-active{
    background:#d4f6dd;
    color:#1c8c43;
}

/* Stok */
.status-stock{
    background:#d9ecff;
    color:#1565c0;
}

/* Ada */
.status-available{
    background:#ececec;
    color:#555;
}

/* Habis */
.status-empty{
    background:#ffd9d9;
    color:#d32f2f;
}

/* Rusak */
.status-broken{
    background:#ffe6cc;
    color:#ef6c00;
}

/* jika status tidak dikenal */
.status-default{
    background:#f1f1f1;
    color:#777;
}


.text-ellipsis{
    white-space:nowrap;
    max-width:130px;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:13px;
}

.btn-sm.inventory-action{
    padding:5px 9px !important;
    border-radius:8px;
    font-size:12px;
}

#example tbody tr td{
    border-top:1px solid #f1f5f9 !important;
}

.inventory-table-card{
    border-radius:22px;
    height: calc(100% - 70px);
    overflow-y: auto;
}

.card-body,
.table-responsive {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* ===========================
   PREMIUM TOPBAR
=========================== */
.premium-topbar{
    background: linear-gradient(135deg,#1f2937,#111827);
    padding: 25px 30px;
    border-radius: 18px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.premium-topbar h3{
    margin:0;
    font-weight:700;
    font-size:28px;
}
.premium-topbar p{
    margin:5px 0 0;
    opacity:.8;
}
.live-clock{
    text-align:right;
    font-size:15px;
    font-weight:600;
    line-height:1.6;
    background: rgba(255,255,255,0.08);
    padding:12px 20px;
    border-radius:12px;
}

/* ===========================
   SUMMARY CARD
=========================== */
.summary-card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    position:relative;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(0,0,0,0.06);
    transition:.3s;
    min-height:170px;
}
.summary-card:hover{
    transform:translateY(-7px);
}
.summary-card small{
    color:#6b7280;
    font-weight:600;
}
.summary-card h4{
    margin:10px 0;
    font-size:28px;
    font-weight:800;
    color:#111827;
}
.summary-card p{
    margin:0;
    color:#10b981;
    font-size:14px;
    font-weight:600;
}
.summary-card::after{
    content:'';
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:4px;
    background:linear-gradient(to right,#111827,#4b5563);
}
.summary-icon{
    position:absolute;
    top:20px;
    right:20px;
    width:50px;
    height:50px;
    background:#111827;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:15px;
    font-size:22px;
}
.summary-watermark{
    position:absolute;
    bottom:-10px;
    right:15px;
    font-size:55px;
    font-weight:800;
    color:rgba(0,0,0,0.03);
}

/* ===========================
   QUICK DASHBOARD
=========================== */
.quick-dashboard{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
}
.quick-link{
    background:#fff;
    border-radius:18px;
    padding:25px;
    text-decoration:none;
    color:#111827;
    box-shadow:0 6px 20px rgba(0,0,0,0.05);
    transition:.3s;
    text-align:center;
}
.quick-link:hover{
    transform:translateY(-5px);
    color:#111827;
}
.quick-link span{
    font-size:30px;
    display:block;
    margin-bottom:10px;
}
.quick-link h6{
    margin:0;
    font-weight:700;
}
.quick-link small{
    color:#6b7280;
}

/* ===========================
   MINI INFO BAR
=========================== */
.mini-info-bar{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
}
.mini-box{
    background:#111827;
    color:white;
    padding:20px;
    border-radius:16px;
    text-align:center;
}
.mini-box h5{
    margin:0;
    font-size:24px;
    font-weight:700;
}
.mini-box p{
    margin:5px 0 0;
    opacity:.8;
    font-size:13px;
}

/* ===========================
   INVENTORY TABLE CARD
=========================== */
.inventory-card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 8px 24px rgba(0,0,0,0.06);
}
.inventory-header h5{
    margin:0;
    font-weight:700;
}
.inventory-header p{
    color:#6b7280;
    margin-bottom:20px;
}
.table-modern{
    width:100%;
    border-collapse:collapse;
}
.table-modern thead{
    background:#111827;
    color:white;
}
.table-modern th{
    padding:14px;
    font-size:13px;
}
.table-modern td{
    padding:14px;
    border-bottom:1px solid #f1f1f1;
    font-size:14px;
}
.table-modern tbody tr:hover{
    background:#f9fafb;
}
.price-badge{
    background:#ecfdf5;
    color:#059669;
    padding:6px 12px;
    border-radius:20px;
    font-weight:700;
    font-size:13px;
}
.text-ellipsis{
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================
   RESPONSIVE
=========================== */
@media(max-width:768px){
    .premium-topbar,
    .quick-dashboard,
    .mini-info-bar{
        grid-template-columns:1fr;
        display:block;
    }

    .quick-link,
    .mini-box{
        margin-bottom:15px;
    }

    .premium-topbar{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    /* Summary cards and tables mobile responsive enhancements */
    .summary-card {
        padding: 16px;
        min-height: 120px;
    }
    .summary-card h4 {
        font-size: 22px;
        margin: 5px 0;
    }
    .summary-card p {
        font-size: 12px;
    }
    .summary-icon {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .inventory-card {
        padding: 15px;
    }
    .table-responsive {
        overflow-x: auto !important;
    }
}

.summary-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.summary-link:hover{
    color:inherit;
}

.summary-icon-link{
    text-decoration:none;
    color:white;
}

.summary-icon-link:hover .summary-icon{
    transform: scale(1.08) rotate(6deg);
    background:linear-gradient(90deg,#06b6d4,#3b82f6);
    box-shadow:0 8px 18px rgba(0,0,0,0.18);
}

.summary-icon{
    position:absolute;
    top:20px;
    right:20px;
    width:50px;
    height:50px;
    background:#111827;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:15px;
    font-size:22px;
    transition:.3s;
    cursor:pointer;
}

.premium-navbar{
    background: #ffffff;
    border-radius: 20px;
    padding: 14px 25px;
    margin: 15px 20px 25px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    position: sticky;
    top: 10px;
    z-index: 999;
}

.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content .container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto !important;
}

.table-wrapper-scroll{
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 0 0 18px 18px;
}

#example thead th{
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f8fafc !important;
}

.datatable-card{
    overflow: hidden;
}

/* =========================
   MAINTENANCE LIST SCROLL
========================= */
.maintenance-list-scroll{
    height: calc(100% - 20px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

/* custom scrollbar */
.maintenance-list-scroll::-webkit-scrollbar{
    width:7px;
}
.maintenance-list-scroll::-webkit-scrollbar-track{
    background:#f1f1f1;
    border-radius:20px;
}
.maintenance-list-scroll::-webkit-scrollbar-thumb{
    background:#c9ced6;
    border-radius:20px;
}
.maintenance-list-scroll::-webkit-scrollbar-thumb:hover{
    background:#9aa4b2;
}

.modal{
    z-index: 20000 !important;
}
.modal-backdrop{
    z-index: 19990 !important;
}

/* ===============================
   MAINTENANCE PREMIUM TICKET
=================================*/

/* ===============================
   MAINTENANCE VISUAL DEWA
=================================*/

#dataList{
    padding:0;
    margin:0;
}

.maintenance-ticket{
    list-style:none;
    background:#ffffff;
    border-radius:20px;
    padding:22px 24px;
    margin-bottom:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
    border-left:6px solid #344767;
    position:relative;
    transition:0.3s;
}

.maintenance-ticket:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 32px rgba(0,0,0,0.08);
}

.ticket-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.ticket-instansi{
    font-size:18px;
    font-weight:700;
    color:#344767;
    display:flex;
    align-items:center;
    gap:8px;
}

.ticket-instansi i{
    font-size:22px;
    color:#5e72e4;
}

.ticket-date{
    background:#f4f6f9;
    color:#7b809a;
    padding:7px 16px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
}

.ticket-divider{
    height:1px;
    background:#edf0f5;
    margin-bottom:18px;
}

.ticket-content{
    display:flex;
    flex-direction:column;
    gap:18px;
    padding-right:60px;
}

.ticket-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.ticket-info{
    display:flex;
    align-items:flex-start;
    gap:12px;
    background:#fafbfd;
    padding:14px 16px;
    border-radius:14px;
}

.ticket-info i{
    font-size:20px;
    color:#8392ab;
    margin-top:2px;
}

.ticket-info small{
    display:block;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1px;
    color:#adb5bd;
    font-weight:700;
    margin-bottom:4px;
}

.ticket-info h6{
    margin:0;
    font-size:14px;
    color:#344767;
    font-weight:600;
    line-height:1.5;
}

.problem-box{
    background:#fff6f6;
}

.problem-box i{
    color:#dc3545;
}

.problem-box h6{
    color:#c1121f;
}

.ticket-edit-btn{
    position:absolute;
    right:20px;
    bottom:20px;
    width:44px;
    height:44px;
    border-radius:50%;
    background:#fff3cd;
    color:#d39e00;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    box-shadow:0 4px 12px rgba(0,0,0,0.06);
    transition:0.3s;
}

/* =================================
   DARK MODE COMPATIBILITY FOR CUSTOM THEME
==================================== */
body.dark-version {
    background: #1a2035 !important;
    --card-border: 1px solid rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35);
}
body.dark-version .sidenav {
    background: linear-gradient(180deg, #111827, #0f172a) !important;
}
body.dark-version .navbar-custom,
body.dark-version .inventory-card,
body.dark-version .summary-card,
body.dark-version .maintenance-ticket,
body.dark-version .inventory-main-card,
body.dark-version .maintenance-main-card,
body.dark-version .labkom-main-card {
    background: #202940 !important;
    color: #e2e8f0 !important;
}
body.dark-version .summary-card h4,
body.dark-version .ticket-instansi,
body.dark-version .ticket-info h6 {
    color: #ffffff !important;
}
body.dark-version .ticket-date,
body.dark-version .ticket-info {
    background: #283046 !important;
    color: #cbd5e1 !important;
}
body.dark-version .table-modern thead {
    background: #111827 !important;
}
body.dark-version .table-modern tbody tr:hover {
    background: #283046 !important;
}
body.dark-version .table-modern td {
    border-bottom-color: #2b3553 !important;
    color: #cbd5e1 !important;
}
body.dark-version .ticket-divider {
    background: #2b3553 !important;
}
body.dark-version .form-control {
    background: #202940 !important;
    border-color: #3b4c6e !important;
    color: #ffffff !important;
}
body.dark-version .form-control:focus {
    background: #202940 !important;
    color: #ffffff !important;
}


.ticket-edit-btn:hover{
    background:#d39e00;
    color:white;
    transform:scale(1.1);
}

/* ===========================
   LIVE CLOCK IN NAVBAR
=========================== */
.live-clock-navbar {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    text-align: right;
    line-height: 1.25;
}

body.dark-version .live-clock-navbar {
    color: #cbd5e1 !important;
}

/* =================================
   MAIN CARDS WITH ALIGNED HEIGHTS
==================================== */
.inventory-main-card,
.maintenance-main-card,
.labkom-main-card,
.users-main-card {
    height: calc(95vh - 140px);
}

/* ===========================
   MODERN COMPACT FILTER SELECT
=========================== */
.filter-select {
    display: inline-block;
    width: auto;
    height: 32px;
    padding: 4px 28px 4px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: #475569;
    vertical-align: middle;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 10px center/10px 10px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.filter-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: 0;
}

body.dark-version .filter-select {
    background-color: #202940;
    color: #cbd5e1;
    border-color: #3b4c6e !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

