body { font-family: 'Inter', sans-serif; background-color: #f3f4f6; }
html.dark body { background-color: #111827; }

/* --- CASCADE ANIMATION --- */
.cascade-item {
    opacity: 0;
    animation: content-slide-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes content-slide-up {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- GLASS SIDEBAR --- */
.glass-sidebar {
    background: rgba(255,255,255,0.78) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(209,213,219,0.3);
}
html.dark .glass-sidebar {
    background: rgba(17,24,39,0.78) !important;
    border-right: 1px solid rgba(75,85,99,0.3);
}

/* --- PAGE TRANSITION --- */
@keyframes page-enter-glass {
    0%   { opacity: 0; transform: scale(0.98) translateY(8px); filter: blur(6px); }
    100% { opacity: 1; transform: scale(1)    translateY(0);   filter: blur(0); }
}
.animate-page-enter { animation: page-enter-glass 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* --- SIDEBAR NAV ITEMS CASCADE --- */
@keyframes nav-item-slide-in {
    0%   { opacity: 0; transform: translateX(-18px); }
    100% { opacity: 1; transform: translateX(0); }
}
.nav-item-animate {
    opacity: 0;
    animation: nav-item-slide-in 0.35s ease-out forwards;
}
.sidebar { transition: transform 0.3s ease-in-out; }

/* --- SPINNER --- */
@keyframes spin-slow { to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 2s linear infinite; }

/* --- LOGIN ANIMATION --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.login-form-container { animation: fadeInUp 0.7s ease-out forwards; }

/* --- MODAL --- */
@keyframes modal-in {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
.modal-enter { animation: modal-in 0.25s ease-out forwards; }

/* --- TOAST --- */
#toast-container { pointer-events: none; }
.toast-item {
    pointer-events: auto;
    animation: fadeInUp 0.3s ease-out;
}

/* --- TABLE HOVER --- */
tbody tr { transition: background 0.12s; }

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
html.dark ::-webkit-scrollbar-thumb { background: #4b5563; }

/* --- BADGE --- */
.status-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 600;
}
.badge-active   { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #fee2e2; color: #991b1b; }
html.dark .badge-active   { background: #064e3b; color: #6ee7b7; }
html.dark .badge-inactive { background: #7f1d1d; color: #fca5a5; }
.badge-legal    { background: #dbeafe; color: #1e40af; }
.badge-person   { background: #f3e8ff; color: #6b21a8; }
html.dark .badge-legal    { background: #1e3a5f; color: #93c5fd; }
html.dark .badge-person   { background: #3b0764; color: #d8b4fe; }

/* --- TABS --- */
.tab-btn { transition: all 0.2s; }
.tab-btn.active {
    border-bottom: 2px solid #7c3aed;
    color: #7c3aed;
    font-weight: 600;
}
html.dark .tab-btn.active { color: #a78bfa; border-color: #a78bfa; }

/* --- STAT CARD GLOW --- */
.stat-card { transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.12); }
