:root {
    --disco-pink: #FF00FF;
    --disco-purple: #8A2BE2;
    --disco-blue: #00BFFF;
    --disco-green: #00FF7F;
    --disco-orange: #FF4500;
    --disco-yellow: #FFFF00;
    --dark-bg: #1A1A2E;
    --neon-text: #FFFFFF;
    --card-bg: #2D2D44;
}

/* Personalização da barra de scroll para a página inteira - Tema Roxo */
html {
    scrollbar-width: thin;
    scrollbar-color: #8A2BE2 #1A1A2E;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0F0C29, #302B63, #24243E);
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-text);
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
    
    /* Personalização do scrollbar para Webkit (Chrome, Safari, Edge) */
    scrollbar-width: thin;
    scrollbar-color: #8A2BE2 #1A1A2E;
}

/* Para Webkit (Chrome, Safari, Edge) */
body::-webkit-scrollbar {
    width: 14px;
}

body::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1A1A2E, #2D2D44, #1A1A2E);
    border-left: 1px solid rgba(138, 43, 226, 0.3);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8A2BE2, #FF00FF, #8A2BE2);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 15px rgba(138, 43, 226, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF00FF, #8A2BE2, #FF00FF);
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

body::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #8A2BE2, #6A1B9A, #8A2BE2);
}

body::-webkit-scrollbar-corner {
    background: transparent;
}

/* Efeito de brilho na borda da página quando há scroll */
body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 14px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(138, 43, 226, 0.1) 20%, 
        rgba(255, 0, 255, 0.2) 50%, 
        rgba(138, 43, 226, 0.1) 80%, 
        transparent 100%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.scrollable::after {
    opacity: 1;
}

/* Para Firefox */
body {
    scrollbar-width: thin;
    scrollbar-color: #8A2BE2 #1A1A2E;
}

/* Animações suaves para o scroll */
html {
    scroll-behavior: smooth;
}

/* Efeito de pulso no scrollbar quando a página carrega */
@keyframes scrollbarPulse {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(138, 43, 226, 0.6),
            inset 0 0 8px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(255, 0, 255, 0.8),
            inset 0 0 12px rgba(255, 255, 255, 0.6);
    }
}

body::-webkit-scrollbar-thumb {
    animation: scrollbarPulse 3s ease-in-out 1;
}

a{
    text-decoration: none;
}


#messages-container {
    position: fixed;
    top: 160px;
    right: 20px;
    /* O overlay tem 9999, então a mensagem precisa ser maior que isso */
    z-index: 10000; 
    max-width: 400px;
    width: 100%;
    pointer-events: auto;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-out;
}

.alert-success {
    background: #28a745 !important;   /* Cor verde vibrante */
    color: white;
    border: 2px solid #218838; /* Cor mais escura para a borda */
    font-weight: bold;
    animation: bounceIn 0.6s ease-out, glowEffect 1s ease-in-out infinite; /* Efeito de brilho */
}

.alert-error {
    background: #f44336;
    color: white;
    border: 1px solid #da190b;
}

.close-message {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 15px;
}

/* Efeito de animação de entrada */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animação de entrada com efeito de "pulo" */
@keyframes bounceIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Efeito de brilho pulsante */
@keyframes glowEffect {
    0% {
        text-shadow: 0 0 5px #ffffff, 0 0 10px #28a745, 0 0 15px #28a745;
    }
    50% {
        text-shadow: 0 0 10px #ffffff, 0 0 20px #28a745, 0 0 30px #28a745;
    }
    100% {
        text-shadow: 0 0 5px #ffffff, 0 0 10px #28a745, 0 0 15px #28a745;
    }
}

/* Overlay de carregamento */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Ajuste no ícone de loading (somente o ícone gira) */
.loading-spinner {
    color: white;
    font-size: 2rem;
    display: flex;       /* Adicionado para alinhar ícone e texto */
    align-items: center; /* Centraliza verticalmente */
    gap: 15px;          /* Espaço entre o ícone e o texto */
    /* animation: spin 1s infinite linear; <--- REMOVIDO DAQUI */
}

.loading-spinner i {
    animation: spin 1s infinite linear;
}

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


@media (max-width: 768px) {
    #messages-container {
    position: fixed;
    top: 140px;
    right: 3px;
    z-index: 10000; 
    max-width: 350px;
    width: 100%;
    pointer-events: auto;
}
}