/* --- FUENTES Y CONFIGURACIÓN GENERAL --- */
body {
    background-color: #050505;
    color: #EAEAEA;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(150, 0, 0, 0.3) 0%, rgba(26, 5, 5, 0) 40%, rgba(2, 1, 1, 0) 80%),
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, #050505 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.bg-noise {
    position: fixed; inset: 0; z-index: -1; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.text-shadow-lg {
    text-shadow: 0 0 25px rgba(230, 0, 0, 0.6);
}

/* --- PANELES DE CRISTAL (GLASSMORPHISM) --- */
.glass-panel {
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

/* --- BOTONES --- */
.btn-primary, .btn-discord, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(90deg, #990000 0%, #E60000 100%);
    color: white;
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(230, 0, 0, 0.4);
    transform: translateY(-2px);
}
.btn-primary::after {
    content: '';
    position: absolute; top: 0; left: -150%; width: 80%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.6s;
}
.btn-primary:hover::after { left: 150%; transition: 0.6s ease-in-out; }

.btn-discord {
    background-color: #7289da;
    color: white;
}
.btn-discord:hover {
    background-color: #5f73bc;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: #EAEAEA;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* --- FORMULARIOS (INPUTS, TEXTAREAS, SELECTS) --- */
.input-glass {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}
.input-glass:focus {
    outline: none;
    border-color: #E60000;
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
}
.input-glass::placeholder {
    color: #888;
}

/* --- LISTA DE TICKETS --- */
.ticket-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ticket-item:hover {
    border-color: rgba(230, 0, 0, 0.4);
    background: linear-gradient(145deg, rgba(230, 0, 0, 0.1), rgba(230, 0, 0, 0.02));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -10px rgba(230, 0, 0, 0.15);
}

/* --- VISTA DE CHAT --- */
#ticket-chat {
    scrollbar-width: thin;
    scrollbar-color: #E60000 #333;
}
#ticket-chat::-webkit-scrollbar {
    width: 8px;
}
#ticket-chat::-webkit-scrollbar-track {
    background: #111;
}
#ticket-chat::-webkit-scrollbar-thumb {
    background-color: #990000;
    border-radius: 4px;
    border: 2px solid #111;
}

.message-content {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- PANEL DE ADMINISTRACIÓN --- */
.user-management-item {
    transition: background-color 0.3s ease;
}
.user-management-item:hover {
    background-color: rgba(255,255,255,0.03);
}

/* --- ANIMACIONES --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0; /* Start hidden */
}