/* Centralized Premium Stylesheet for Riauwy.Adv Admin Panel */

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}

.hover-float:hover {
    animation: float 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.pulse-glow-indigo {
    animation: pulseGlow 2.5s infinite;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.25);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.45);
}

/* Base body adjustments */
body {
    background-color: #f8fafc;
    background-image: radial-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 0), radial-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

/* Sidebar Custom Overrides */
.sidebar-link-base {
    color: rgba(226, 232, 240, 0.75) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}
.sidebar-link-base:hover {
    color: #ffffff !important;
}

/* Active and Hover States per Module (Visually Rich & Colorful) */
/* 1. Dashboard (Indigo) */
.sidebar-link-dashboard.active {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #ffffff !important;
    border-left: 4px solid #6366f1 !important;
    font-weight: 700;
}
.sidebar-link-dashboard:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #ffffff !important;
}

/* 2. Live Monitor (Emerald) */
.sidebar-link-monitor.active {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #ffffff !important;
    border-left: 4px solid #10b981 !important;
    font-weight: 700;
}
.sidebar-link-monitor:hover {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #ffffff !important;
}

/* 3. Riwayat Pesanan (Sky) */
.sidebar-link-history.active {
    background: rgba(14, 165, 233, 0.15) !important;
    color: #ffffff !important;
    border-left: 4px solid #0ea5e9 !important;
    font-weight: 700;
}
.sidebar-link-history:hover {
    background: rgba(14, 165, 233, 0.08) !important;
    color: #ffffff !important;
}

/* 4. Kelola Menu (Amber) */
.sidebar-link-menus.active {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #ffffff !important;
    border-left: 4px solid #f59e0b !important;
    font-weight: 700;
}
.sidebar-link-menus:hover {
    background: rgba(245, 158, 11, 0.08) !important;
    color: #ffffff !important;
}

/* 5. Generator Meja (Purple) */
.sidebar-link-tables.active {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #ffffff !important;
    border-left: 4px solid #a855f7 !important;
    font-weight: 700;
}
.sidebar-link-tables:hover {
    background: rgba(168, 85, 247, 0.08) !important;
    color: #ffffff !important;
}

/* 6. Pengaturan Toko (Pink) */
.sidebar-link-settings.active {
    background: rgba(236, 72, 153, 0.15) !important;
    color: #ffffff !important;
    border-left: 4px solid #ec4899 !important;
    font-weight: 700;
}
.sidebar-link-settings:hover {
    background: rgba(236, 72, 153, 0.08) !important;
    color: #ffffff !important;
}

/* Logout Override */
aside a[href*='logout'] {
    color: #fca5a5 !important;
    transition: all 0.2s ease;
}
aside a[href*='logout']:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fecaca !important;
}

/* Glassmorphism Panel Upgrades */
.glass-panel-custom {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-custom:hover {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

/* Login Page Glowing Blobs */
.login-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}
.login-blob-1 {
    top: -12%;
    left: -12%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}
.login-blob-2 {
    bottom: -12%;
    right: -12%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
}
.login-blob-3 {
    top: 35%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
}

/* Table Hover Row Animation */
.hover-row {
    transition: all 0.2s ease;
}
.hover-row:hover {
    background-color: rgba(241, 245, 249, 0.6) !important;
}
