/* Custom Login Background */
.fi-login-page {
    background: linear-gradient(135deg, #0d1f33 0%, #1a3c5e 100%);
    position: relative;
    overflow: hidden;
}

/* Background shapes/glows */
.fi-login-page::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(67, 180, 213, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    animation: float 10s ease-in-out infinite;
}

.fi-login-page::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(250, 190, 85, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Glassmorphism Card */
.fi-login-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Input Fields */
.fi-login-card input {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.fi-login-card input:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: #43B4D5 !important;
    box-shadow: 0 0 0 2px rgba(67, 180, 213, 0.2);
}

/* Button */
.fi-login-card button[type="submit"] {
    background: linear-gradient(135deg, #43B4D5 0%, #627D9C 100%);
    border: none;
    transition: transform 0.2s;
}

.fi-login-card button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 180, 213, 0.3);
}

/* Typography */
.fi-login-header {
    color: #fff;
    text-align: center;
}

.fi-login-brand {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #43B4D5, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* Dashboard Gap Tightening */
.fi-main .fi-wi-widget-grid {
    gap: 0.5rem !important;
}

.fi-wi-widget {
    margin-bottom: 0 !important;
}

.fi-section {
    height: 100% !important;
}

/* Custom Bento Grid */
.custom-bento-grid {
    display: flex;
    /* Fallback for mobile */
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .custom-bento-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

/* Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        --num: 0;
    }

    to {
        --num: var(--target);
    }
}

.animate-slide-up {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Chip Toggles for Charts */
.fi-wi-filter-button {
    border-radius: 9999px !important;
    border: none !important;
    background-color: rgba(67, 180, 213, 0.1) !important;
    /* Primary light */
    color: #43B4D5 !important;
    font-weight: 600 !important;
    padding: 0.25rem 1rem !important;
    transition: all 0.3s ease !important;
}

.fi-wi-filter-button:hover,
.fi-wi-filter-button[aria-checked="true"] {
    background-color: #43B4D5 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(67, 180, 213, 0.3) !important;
}

/* Hover Effects for Cards */
.hover-card-effect {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-card-effect:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15) !important;
    z-index: 10;
}


/* Global Dashboard Animations */
.animate-enter {
    animation: fadeSlideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* Stagger delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-150 {
    animation-delay: 150ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}