/* Fimi Data - Custom Styles */
/* Brand tokens (mirror Tailwind config in Pages/Shared/_Layout.cshtml):
   Navy   #012152   Turquoise #01B5CD   Cream #F8F7F4
   Play (heading)   Sora (body)
*/

:root {
    --fimi-navy: #012152;
    --fimi-navy-mid: #1a3a6a;
    --fimi-turquoise: #01B5CD;
    --fimi-turquoise-soft: #4dcfe0;
    --fimi-cream: #F8F7F4;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom focus ring — brand turquoise */
*:focus-visible {
    outline: 2px solid var(--fimi-turquoise);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Table hover effects */
.table-row-hover:hover {
    background-color: #F8F7F4;
}
.dark .table-row-hover:hover {
    background-color: #1f2937;
}

/* Card hover lift */
.card-hover {
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.card-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.dark .card-hover:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
}

/* Status badge animations */
.status-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Toast animations */
.toast-enter {
    animation: slideInRight 300ms ease-out;
}

.toast-exit {
    animation: slideOutRight 200ms ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Compliance score ring */
.score-ring {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Subtle gradient backgrounds — brand warm */
.bg-gradient-subtle {
    background: linear-gradient(135deg, var(--fimi-cream) 0%, #e8edf5 100%);
}
.dark .bg-gradient-subtle {
    background: linear-gradient(135deg, #030712 0%, #0f172a 100%);
}

/* Navy gradient with turquoise glow — hero & CTA sections */
.bg-gradient-navy {
    background: var(--fimi-navy);
    background-image:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(1, 181, 205, 0.18) 0%, transparent 70%),
        linear-gradient(165deg, #012152 0%, #1a3a6a 50%, #012152 100%);
}

/* Navy dark footer */
.bg-gradient-navy-dark {
    background: linear-gradient(180deg, #011a42 0%, #000d24 100%);
}

/* Form input refinements — turquoise focus */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="search"],
select,
textarea {
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: var(--fimi-turquoise);
    box-shadow: 0 0 0 3px rgba(1, 181, 205, 0.15);
}

.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark input[type="password"]:focus,
.dark input[type="date"]:focus,
.dark input[type="search"]:focus,
.dark select:focus,
.dark textarea:focus {
    border-color: var(--fimi-turquoise-soft);
    box-shadow: 0 0 0 3px rgba(1, 181, 205, 0.25);
}

/* Empty state styling */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

/* Mobile drawer transition */
#mobile-drawer {
    transition: transform 300ms ease-in-out;
}

/* Mobile backdrop fade */
#mobile-backdrop {
    transition: opacity 200ms ease;
}

/* Dark focus ring — turquoise (softer for dark bg) */
.dark *:focus-visible {
    outline-color: var(--fimi-turquoise-soft);
}

/* Breathing focus animation for decorative imagery */
@keyframes breathe {
    0%, 100% { filter: blur(0px); opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
    50% { filter: blur(2px); opacity: 0.5; transform: translate(-50%, -50%) scale(1.04); }
}
.animate-breathe {
    animation: breathe 6s ease-in-out infinite;
}
