/* Great Ledger v2 - Smooth & Subtle Animations */
/* Brand Colors: Indigo (#4F46E5), Purple (#7C3AED), Teal (#0D9488) */

/* 1. Global Page Transition (Fade In + Slide Up) */
/* Gives the app a "native" feel when navigating */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fi-main {
    animation: pageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 2. Universal Smooth Transition for Interactive Elements */
a,
button,
input,
select,
.fi-btn,
.fi-wi-stats-overview-stat,
.fi-wi-chart {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Button Micro-interactions: Tactile Press Effect */
.fi-btn:active,
button:active {
    transform: scale(0.97);
}

/* 4. Widget & Card Hover: Lift & Glow */
.fi-wi-stats-overview-stat:hover,
.fi-wi-chart:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.2);
    /* Soft Indigo Shadow */
    z-index: 10;
}

/* Stats Card Styling */
.fi-wi-stats-overview-stat {
    border-left: 4px solid #4F46E5;
    /* Indigo-600 */
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 0.75rem;
}

.dark .fi-wi-stats-overview-stat {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #818CF8;
    /* Indigo-400 */
}

/* 5. Table Modernization */
.fi-ta-table {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.fi-ta-table thead {
    background: linear-gradient(to right, #4F46E5, #7C3AED);
    /* Indigo to Purple Gradient */
}

.fi-ta-table thead th {
    color: white !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.fi-ta-row {
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.fi-ta-row:hover {
    background-color: rgba(99, 102, 241, 0.04) !important;
    /* Extremely subtle tint */
}

/* 6. Primary Button Gradient */
.fi-btn-primary {
    background-image: linear-gradient(135deg, #4F46E5, #7C3AED) !important;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.fi-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 12px -2px rgba(79, 70, 229, 0.4);
}

/* 7. Financial Typography */
/* Monospaced font for numbers ensures columns align perfectly */
.font-mono,
.fi-ta-cell,
.fi-wi-stats-overview-stat-value,
td[class*="text-end"],
/* Alignment classes often used for money */
td[class*="text-right"] {
    font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.fi-wi-stats-overview-stat-value {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    /* Make main stats pop */
}

/* 8. Form Inputs Focus */
.fi-input,
.fi-select-input {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.fi-input:focus-within,
.fi-select-input:focus-within {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
    /* Teal Glow */
    border-color: #0D9488;
}

/* 9. Loading Shimmer */
.fi-loading-skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0.2) 37%,
            rgba(255, 255, 255, 0.1) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}