@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Poppins', sans-serif; 
    overflow-x: hidden;
}

/* Custom Scrollbar biar elegan */
::-webkit-scrollbar { 
    width: 6px; 
}

/* Scrollbar for transaction list (hidden by default) */
#list::-webkit-scrollbar {
    width: 0px; /* Hide scrollbar */
    background: transparent; /* Make track transparent */
}
#list::-webkit-scrollbar-thumb {
    background: transparent; /* Make thumb transparent */
}
/* For Firefox */
#list {
    scrollbar-width: none; /* Hide scrollbar */
}

::-webkit-scrollbar-track { 
    background: #f8fafc; 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: #94a3b8; 
}

/* Ngilangin panah naik-turun di input angka (Nominal) */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

/* Animasi hover riwayat dengan efek Glow */
#list li {
    transition: all 0.3s ease-in-out;
}

#list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2), 0 4px 6px -4px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Animasi Modern fadeInUp */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Animasi Pop-up Bounce */
@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
.animate-popIn { animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* Animasi Background Mesh */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mesh-bg {
    background: linear-gradient(-45deg, #f8fafc, #e0e7ff, #f1f5f9, #e0f2fe);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.dark .mesh-bg {
    background: linear-gradient(-45deg, #020617, #1e1b4b, #0f172a, #1e293b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    box-shadow: 0 25px 30px -5px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Sidebar Specific Classes */
#sidebar-menu.active {
    transform: translateX(0);
}

#sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-150%) skewX(-30deg); }
    100% { transform: translateX(250%) skewX(-30deg); }
}

input, select, button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Container for better spacing */
.bento-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}