/* Custom Styles on top of Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .outfit {
    font-family: 'Outfit', sans-serif;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Gradient text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

/* Background Animations */
.bg-animated-gradient {
    background: linear-gradient(-45deg, #eff6ff, #dbeafe, #f3e8ff, #f8fafc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

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

/* Cool hacker terminal style for admin */
.hacker-bg {
    background-color: #050505;
    background-image: 
        radial-gradient(ellipse at center, rgba(0, 255, 0, 0.15) 0%, transparent 80%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 0, 0.05) 2px, rgba(0, 255, 0, 0.05) 4px);
    background-size: 100% 100%, 100% 4px;
}

.scanline {
    width: 100%;
    height: 10px;
    background: rgba(0, 255, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    animation: scanline 6s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    z-index: 10;
}

@keyframes scanline {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(100vh); }
}

.glow-border {
    box-shadow: 0 0 15px rgba(34,197,94,0.4), inset 0 0 10px rgba(34,197,94,0.1);
}

/* Custom loader para botones */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling profesional */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* Fix CSS autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

body.bg-black input:-webkit-autofill,
body.bg-black input:-webkit-autofill:hover, 
body.bg-black input:-webkit-autofill:focus, 
body.bg-black input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #050505 inset !important;
    -webkit-text-fill-color: #22c55e !important;
}
