@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
    .text-shadow { text-shadow: 0 2px 15px rgba(22, 93, 255, 0.4); }
    .card-hover { transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .card-hover:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 25px 50px -12px rgba(22, 93, 255, 0.25); }
    .btn-hover { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
    .btn-hover:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.4); }
    .gradient-text {
        background-size: 400% 400%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .input-focus { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
    .input-focus:focus { border-color: #165DFF; box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1); transform: scale(1.02); }
    .filter-btn { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    .filter-btn.active { background-color: #165DFF; color: white; transform: scale(1.05); }
    .filter-btn:hover:not(.active) { transform: scale(1.05); background-color: rgba(22, 93, 255, 0.1); }
    .table-row-hidden { opacity: 0; transform: translateY(10px); }
    .glass-effect {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        background: rgba(3, 7, 18, 0.8);
        border: 1px solid rgba(22, 93, 255, 0.15);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .glass-effect::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .glass-effect:hover::before {
        left: 100%;
    }
    .glass-effect:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px -10px rgba(22, 93, 255, 0.2);
    }
    .glass-btn {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(22, 93, 255, 0.2);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .glass-btn:hover {
        background: rgba(22, 93, 255, 0.1);
        border-color: rgba(22, 93, 255, 0.4);
    }
    .glass-input {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        background: rgba(3, 7, 18, 0.5);
        border: 1px solid rgba(22, 93, 255, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .scale-105 { transform: scale(1.05); }
    .reflect-effect {
        position: relative;
    }
    .reflect-effect::after {
        content: attr(data-text);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100%;
        color: rgba(255,255,255,0.1);
        transform: scaleY(-1);
        filter: blur(2px);
        opacity: 0.7;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reflect-effect:hover::after {
        opacity: 1;
        filter: blur(1px);
    }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes punishPulse {
    0% { color: #FFFFFF; text-shadow: 0 0 5px rgba(255,255,255,0.1); }
    50% { color: #EF4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
    100% { color: #FFFFFF; text-shadow: 0 0 5px rgba(255,255,255,0.1); }
}
@keyframes rowFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes elasticIn {
    0% { transform: scale(0.9); opacity: 0; }
    40% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-float { animation: float 8s ease-in-out infinite; }
.animate-gradient { animation: gradient 8s ease infinite; }
.animate-fade-in { animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-punish-pulse { animation: punishPulse 2s ease-in-out infinite; }
.animate-row-fade-in { animation: rowFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-click-pulse { animation: clickPulse 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-elastic-in { animation: elasticIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

#copyTestServer {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#copyTestServer:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(22, 93, 255, 0.5);
}

:root {
    --primary: #165DFF;
    --accent: #EF4444;
    --secondary: #030712;
}

.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }
.bg-secondary { background-color: var(--secondary); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--secondary); }
.border-primary { border-color: var(--primary); }
.border-accent { border-color: var(--accent); }

* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(3, 7, 18, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(22, 93, 255, 0.5);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 93, 255, 0.8);
}