@import "tailwindcss";
@import "./theme.css";
@config "./../../tailwind.config.js";

@theme {
    --font-sans: 'Manrope', "sans-serif";
}

/* Custom utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide default Blazor Server reconnection modal */
#blazor-error-ui {
    display: none !important;
}

#components-reconnect-modal {
    display: none !important;
}

/* Custom subtle loading indicator */
.custom-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    display: none;
}

    .custom-loading.show {
        display: block;
        animation: loading-bar 2s infinite ease-in-out;
    }

@keyframes loading-bar {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(100%);
    }
}

.connection-status {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(59, 130, 246, 0.95);
    color: white;
    padding: 8px 16px;
    text-align: center;
    z-index: 10000;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.connection-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes gradient-shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Gradient shimmer text utility */
.gradient-shimmer {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradient-shimmer 4s linear infinite;
}
