/* CSS Kustom dari Prototipe SPPE.html */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 50; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}
.modal.active { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 1rem; 
}
.fade-in { 
    animation: fadeIn 0.3s ease-in-out; 
}
@keyframes fadeIn { 
    from { opacity: 0; transform: scale(0.95); } 
    to { opacity: 1; transform: scale(1); } 
}
.tab-btn.active { 
    border-color: #2563eb; 
    color: #2563eb; 
    font-weight: 600;
}
.notification-dot { 
    position: absolute; 
    top: -8px; 
    right: -8px; 
    min-width: 18px; 
    height: 18px; 
    background-color: #ef4444; 
    border-radius: 9px; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    padding: 0 6px;
    border: 2px solid white;
}
.notification-dot.active { 
    display: flex; 
}
.notification-dot .badge-count {
    color: white;
    font-weight: bold;
    font-size: 10px;
    line-height: 1;
}
.auth-container { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}
.chart-container { 
    position: relative; 
    height: 40vh; 
    min-height: 250px;
    width: 100%; 
}

/* Responsive untuk mobile */
@media (max-width: 640px) {
    .chart-container {
        height: 30vh;
        min-height: 200px;
    }
}

/* Fix untuk horizontal scroll - sederhana seperti helpdesk-system */
/* Pastikan body dan html tidak membuat horizontal scrollbar */
html, body {
    overflow-x: hidden !important;
    width: 100%;
}

/* Pastikan app container tidak melebihi viewport */
#app {
    overflow-x: hidden;
    width: 100%;
}

/* Pastikan main content tidak membuat horizontal scrollbar */
main {
    overflow-x: hidden !important;
    width: 100%;
}

/* Pastikan view-content tidak membuat horizontal scrollbar */
.view-content {
    overflow-x: hidden !important;
    width: 100%;
}

/* Container untuk tabel dengan horizontal scroll - sederhana */
.table-scroll-wrapper {
    width: 100%;
    overflow: visible;
}

/* Container dengan overflow-x untuk scrollbar horizontal */
.table-scroll-wrapper .overflow-x-auto {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    /* Scrollbar akan muncul tepat di bawah tabel */
}

/* Styling scrollbar */
.table-scroll-wrapper .overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-wrapper .overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-scroll-wrapper .overflow-x-auto::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-scroll-wrapper .overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #555;
}

