/* --- BASE & FONTS --- */
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: #f8fafc; 
    color: #1e293b; 
    overflow-x: hidden; 
}

/* --- TOMBOL SCANNING (Efek Mengkilap/Shine) --- */
.btn-scanning { 
    background: #2563eb !important; 
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Animasi kilatan cahaya */
.btn-scanning::before {
    content: ""; 
    position: absolute; 
    top: 0; 
    left: -150%; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    animation: shine-move 1.2s infinite;
    z-index: 1;
}

@keyframes shine-move {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

.btn-scanning span, 
.btn-scanning #rescan-icon { 
    position: relative; 
    z-index: 2; 
}

/* --- UI COMPONENTS --- */
.status-card { 
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(226, 232, 240, 0.8); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; }
.dot-online { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, 0.4); }
.dot-offline { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
.dot-maintenance { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }

.dot-checking { 
    background: #94a3b8; 
    animation: pulse 1.5s infinite; 
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.modal-enter { animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalIn { 
    from { opacity: 0; transform: scale(0.9) translateY(20px); } 
    to { opacity: 1; transform: scale(1) translateY(0); } 
}

.db-scroll::-webkit-scrollbar { width: 4px; }
.db-scroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

/* Efek shine statis untuk tombol lain */
.shine-btn { position: relative; overflow: hidden; }

/* --- ANIMASI ERROR/SHAKE --- */
.shake-error {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ef4444 !important; /* Warna merah TailWind */
    background-color: #fef2f2 !important;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.text-error {
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}