/* assets/css/custom.css — Premium KasClear Stylesheet */

:root {
    /* Color System */
    --color-income: #0f766e;     /* Emerald Sage */
    --color-expense: #be123c;    /* Rose Terracotta */
    --color-transfer: #4338ca;   /* Slate Indigo */
    --color-surface: #f8fafc;
    --color-card: #ffffff;
    --color-border: #e2e8f0;
    --color-text-primary: #0f172a;
    --color-text-secondary: #64748b;

    /* Micro-motion Defaults */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 350ms;
    --ease-enter: cubic-bezier(0, 0, 0.2, 1);
    --ease-exit: cubic-bezier(0.4, 0, 1, 1);
}

/* Base Settings */
html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-surface);
}

body {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
}

/* Global Smooth Transitions */
a, button, input, select, textarea {
    transition: all var(--duration-fast) var(--ease-enter);
}

/* Minimalist Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glassmorphism Styles */
.header-glass {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px) saturate(190%);
    -webkit-backdrop-filter: blur(12px) saturate(190%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.navbar-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(190%);
    -webkit-backdrop-filter: blur(16px) saturate(190%);
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

/* Premium Card Styles */
.card-premium {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 4px 16px rgba(15, 23, 42, 0.02);
    transition: box-shadow var(--duration-normal) var(--ease-enter), transform var(--duration-normal) var(--ease-enter);
}
.card-premium:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.03);
    transform: translateY(-2px);
}

/* Wallet Card Layout gradient effects */
.card-wallet-gradient {
    background: linear-gradient(135deg, var(--color-income) 0%, #115e59 100%);
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 118, 110, 0.25), 0 8px 10px -6px rgba(15, 118, 110, 0.15);
    position: relative;
    overflow: hidden;
}

/* Dynamic counter & animation support */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Smooth Input Focus ring */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-income) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1) !important;
}

/* Toast Slide in Animation */
.toast-slide-in {
    animation: toastSlideIn var(--duration-normal) var(--ease-enter) forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Stagger animation class for list elements */
.stagger-item {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    animation: fadeSlideUp var(--duration-slow) var(--ease-enter) forwards;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Lucide Icon Vertical Alignments helper */
.lucide-icon-inline {
    display: inline-block;
    vertical-align: middle;
    width: 1.25em;
    height: 1.25em;
    stroke-width: 2;
}
