/* =====================================================
   kzp8Panel - Animations (subtle, BisectHosting-style)
   ===================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ---- PAGE ---- */
.main-panel .content-wrapper { animation: fadeIn 0.3s ease both; }
.navbar.default-layout { animation: fadeInDown 0.3s ease both; }
.sidebar { animation: fadeInLeft 0.3s ease both; }

/* ---- SIDEBAR ITEMS ---- */
.sidebar .nav-item { animation: fadeInLeft 0.25s ease both; }
.sidebar .nav-item:nth-child(1) { animation-delay: 0.03s; }
.sidebar .nav-item:nth-child(2) { animation-delay: 0.06s; }
.sidebar .nav-item:nth-child(3) { animation-delay: 0.09s; }
.sidebar .nav-item:nth-child(4) { animation-delay: 0.12s; }
.sidebar .nav-item:nth-child(5) { animation-delay: 0.15s; }
.sidebar .nav-item:nth-child(6) { animation-delay: 0.18s; }
.sidebar .nav-item:nth-child(7) { animation-delay: 0.21s; }
.sidebar .nav-item:nth-child(8) { animation-delay: 0.24s; }

/* ---- CARDS ---- */
.card { animation: fadeInUp 0.3s ease both; }
.row .col-12:nth-child(1) .card { animation-delay: 0.04s; }
.row .col-12:nth-child(2) .card { animation-delay: 0.08s; }
.row .col-12:nth-child(3) .card { animation-delay: 0.12s; }
.row .col-12:nth-child(4) .card { animation-delay: 0.16s; }

/* ---- TABLES ---- */
.table tbody tr { animation: fadeIn 0.25s ease both; }
.table tbody tr:nth-child(1)  { animation-delay: 0.04s; }
.table tbody tr:nth-child(2)  { animation-delay: 0.07s; }
.table tbody tr:nth-child(3)  { animation-delay: 0.10s; }
.table tbody tr:nth-child(4)  { animation-delay: 0.13s; }
.table tbody tr:nth-child(5)  { animation-delay: 0.16s; }
.table tbody tr:nth-child(6)  { animation-delay: 0.19s; }
.table tbody tr:nth-child(7)  { animation-delay: 0.22s; }
.table tbody tr:nth-child(8)  { animation-delay: 0.25s; }

/* ---- DROPDOWNS / MODALS ---- */
.dropdown-menu.show { animation: fadeInUp 0.15s ease both; }
.modal.show .modal-dialog { animation: scaleIn 0.2s ease both; }
.alert { animation: fadeInUp 0.25s ease both; }
.notification.toast { animation: slideInRight 0.3s ease both !important; }

/* ---- STATUS DOTS ---- */
img[src*="green.png"] { filter: drop-shadow(0 0 3px rgba(16,185,129,0.6)); animation: pulse 2.5s ease infinite; }
img[src*="red.png"]   { filter: drop-shadow(0 0 3px rgba(239,68,68,0.6)); animation: pulse 2s ease infinite; }

/* ---- RIPPLE ON BUTTONS ---- */
.btn { position: relative; overflow: hidden; }
.btn .ripple-effect {
    position: absolute;
    border-radius: 50%;
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.25);
    transform: scale(0);
    animation: ripple 0.5s linear;
    pointer-events: none;
}

/* ---- FOOTER ---- */
.footer { animation: fadeIn 0.4s ease both; animation-delay: 0.3s; }

/* ---- ACCESSIBILITY ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
