/* Global styles for FaceMatch Blazor App */

/* Tailwind utilities that might not be in CDN */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Blazor error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Disabled state */
button:disabled {
    cursor: not-allowed;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Aspect ratio utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Animation utilities */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Slide in from left animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

/* Slide in from right animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

/* Grayscale filter */
.grayscale {
    filter: grayscale(100%);
}

/* Backdrop blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* Text gradient */
.bg-gradient-to-r,
.bg-gradient-to-br,
.bg-gradient-to-tr,
.bg-gradient-to-b {
    background-clip: text;
    -webkit-background-clip: text;
}

body {
    font-family: 'Outfit', sans-serif; /* Primary font for readability */
    background: linear-gradient(to bottom right, #FFFFFF, #EFF6FF); /* Minimalist white to light blue gradient */
    min-height: 100vh; /* Ensure gradient covers full height */
}

h1, h2, h3 { /* Fredoka for headings */
    font-family: 'Fredoka', sans-serif;
}

button, span { /* Outfit for UI elements */
    font-family: 'Outfit', sans-serif;
}
