body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

h2, h3, h5 {
    font-family: 'Orbitron', sans-serif;
    color: #00FFFF;
}

h2, h3, h5, footer p, .content p, .card .card-text {
    margin: 0;
}

/* Headings */
h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 20px #00FFFF, 0 0 30px #00FFFF, 0 0 40px #00FFFF;
}

h3 {
    font-size: 1.5em;
    font-weight: bold;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

h3::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(to right, transparent 35%, #00FFFF 50%, transparent 65%);
}

h5 {
    font-size: 1.5em;
    font-weight: bold;
}

/* Form Elements */
label {
    color: #00FFFF !important;
    font-size: 0.8em;
}

/* Footer */
footer {
    background: #000;
    padding: 20px;
    text-align: center;
}

/* Table */
table tr td, table tr th {
    background-color: transparent !important;
    border-bottom: 0;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #fff !important;
}

/* Navbar */
.navbar {
    font-family: 'Orbitron', sans-serif;
    background: transparent !important;
    box-shadow: none;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease-in-out;
    justify-content: center;
    letter-spacing: 2px;
}

.navbar.scrolled {
    background: #000 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
}

.navbar-brand, .nav-link {
    color: #fff !important;
    font-weight: bold;
}

.navbar-brand:hover, .nav-link:hover {
    color: #00FFFF !important;
    text-shadow: 0 0 10px #00FFFF;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('./../img/bg2.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
}

.hero h1 {
    font-size: 3em;
    color: #00FFFF;
    z-index: 1;
    text-shadow: 0 0 20px #00FFFF, 0 0 30px #00FFFF, 0 0 40px #00FFFF;
}

.hero p {
    font-size: 1.2em;
    color: lightgray;
    z-index: 1;
}

.hero a {
    z-index: 1;
}

/* Content Section */
.content {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
    margin-top: -50px;
}

.content p {
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
    text-align: center;
    font-size: 1.1em;
}

/* Cards */
.card {
    background: #333;
    border-radius: 10px;
    border: 1px solid #0f0f0f;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.card .card-title {
    font-family: 'Orbitron', sans-serif;
    color: #00FFFF;
    text-shadow: 0 0 10px #00FFFF;
}

.card-body {
    padding: 30px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.card .card-text, .card-text {
    color: #CCCCCC;
}

/* Leaderboard Card */
.leaderboard-card {
    background-color: transparent;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-outline-cyan {
    color: #00FFFF;
    border-color: #00FFFF;
    background-color: transparent;
    padding: 10px 20px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 3px;
}

.btn-outline-cyan:hover {
    color: #000;
    background-color: #00FFFF;
    border-color: #00FFFF;
}

.btn-cyan {
    color: #fff;
    background-color: #00FFFF;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.btn-cyan:hover {
    background-color: #fff;
    color: #00FFFF;
}

/* Text Utilities */
.text-cyan {
    color: #00FFFF;
}

.text-left {
    text-align: left;
}

/* Modal */
.modal-content {
    background: transparent !important;
    backdrop-filter: blur(50px);
    box-shadow: 0 0 10px #00FFFF;
}

.modal.fade.show {
    backdrop-filter: blur(10px);
}

/* Dropdown */
.dropdown-menu {
    background: transparent !important;
    backdrop-filter: blur(10px);
    border: 1px solid #0f0f0f;
    box-shadow: 0 0 10px #00FFFF;
    width: 300px;
}

.dropdown-divider {
    border-top: 1px solid #00FFFF;
}

.dropdown-item {
    color: #fff !important;
    font-size: 0.8em;
}

.dropdown-item:hover {
    background: #00FFFF !important;
    color: #000 !important;
}

/* Popover */
.popover {
    left: 0;
    min-width: 650px;
    padding: 1rem;
    background: transparent;
    backdrop-filter: blur(10px);
    border: 1px solid #0f0f0f;
    box-shadow: 0 0 10px #000;
}

.popover-arrow {
    background-color: #000;
}

/* List Group */
.list-group-item {
    background: transparent !important;
    color: #fff;
}

.list-group-item-action:hover {
    color: #00FFFF;
    transition: all 0.3s ease;
}

/* Status Indicators */
.server-status-online, .server-status-offline {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
}

.server-status-online {
    background-color: #00FF00;
}

.server-status-offline {
    background-color: #FF0000;
}

/* Border */
.border-left {
    border-left: 1px solid #ccc;
}

/* Floating Button */
#pediaButton {
    position: fixed;
    z-index: 990;
    transition: transform 0.3s ease;
    color: #000;
    background: #00FFFF;
    border-radius: 50%;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 0 10px #00FFFF;
    cursor: pointer;
}

#pediaButton:hover {
    transform: scale(1.1);
}

#pediaButton:active {
    transform: scale(0.9);
}

/* Status Section */
#status {
    position: relative;
    background-image: url('./../img/bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#status .card {
    background: transparent !important;
    backdrop-filter: blur(5px);
    border: 1px solid #0f0f0f;
    box-shadow: 0 0 10px #000;
}

/* Leaderboard */
#leaderboard {
    position: relative;
}

/* Pedia Result */
#pedia-result {
    position: relative;
    top: -50px;
}

/* Particles JS */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Modal Bottom Right */
.modal-bottom-right {
    right: 10px;
    bottom: 10px;
}

/* --- NUOVI STILI PER IL PANNELLO HAPPY HOUR SPOSTATO --- */
.happy-hour-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 250px;

    /* Forziamo la trasparenza assoluta dello sfondo */
    background: transparent !important; /* Aggiunto !important per la massima priorità */
    background-color: transparent !important; /* Doppia sicurezza per il colore di sfondo */

    padding: 20px; /* Mantieni il padding se vuoi spazio interno */
    /* Rimuovi bordo e ombra se non vuoi che "definiscano" il pannello */
    border: none !important; /* Rimuovi completamente il bordo */
    box-shadow: none !important; /* Rimuovi completamente l'ombra */
    border-radius: 0 !important; /* Rimuovi anche i bordi arrotondati se vuoi trasparenza totale */

    /* backdrop-filter e -webkit-backdrop-filter sono già stati rimossi o dovrebbero esserlo */
    /* Se li vedi ancora nel tuo codice, cancellali. */

    z-index: 10;
    text-align: left;
    overflow: hidden;
}

/* Le regole per h3 e p rimangono invariate, ma `font-weight` viene spostato nello `span` */
.happy-hour-panel h3 {
    /* font-weight: 900; VA SPOSTATO SULLO SPAN! */
    font-size: 1.8rem; /* Mantieni la dimensione base qui */
    margin-bottom: 15px;
    /* text-shadow: 0 0 10px #00FFFF; Questo text-shadow non serve più qui, il colore è trasparente */
    text-align: center;
    color: transparent; /* Lascia questo così, il testo visibile è nello span */
    position: relative;
    /* Aggiungi queste righe per l'animazione */
    opacity: 0; /* Inizialmente invisibile */
    transform: translateY(30px); /* Inizia da sotto */
    animation: slideUpDetails 0.8s ease forwards; /* Applica l'animazione */
    animation-delay: 0s; /* Puoi impostare un ritardo se vuoi che appaia per primo o ultimo */
 white-space: nowrap; /* <-- AGGIUNGI QUESTA RIGA */
}

.happy-hour-panel h3::before {
    content: '* ';
    color: transparent; /* Rendi il colore trasparente per usare il text-shadow per il fade giallo */
    text-shadow: 0 0 10px gold, 0 0 20px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.4); /* Fade giallo */
    font-weight: 900; /* Anche gli asterischi in grassetto */
}

.happy-hour-panel h3::after {
    content: ' *';
    color: transparent; /* Rendi il colore trasparente per usare il text-shadow per il fade giallo */
    text-shadow: 0 0 10px gold, 0 0 20px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.4); /* Fade giallo */
    font-weight: 900; /* Anche gli asterischi in grassetto */
}

.happy-hour-panel h3 span {
    color: #fff;
    font-weight: 900;
    text-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF, 0 0 30px rgba(0, 255, 255, 0.7);
    text-transform: uppercase; /* QUESTA RIGA LO RENDE TUTTO MAIUSCOLO */
}

.happy-hour-panel p {
    color: #39ff14;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-shadow: 0 0 8px #39ff14, 0 0 15px rgba(57, 255, 20, 0.7);
    line-height: 1.4;
    text-align: center;

    opacity: 0;
    transform: translateY(30px);
    animation: slideUpDetails 0.8s ease forwards;
}
.happy-hour-panel p:nth-child(2) { animation-delay: 0.2s; }
.happy-hour-panel p:nth-child(3) { animation-delay: 0.4s; }
.happy-hour-panel p:nth-child(4) { animation-delay: 0.6s; }
.happy-hour-panel p:nth-child(5) { animation-delay: 0.8s; }

@keyframes slideUpDetails {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- STILI PER LA SCHERMATA DI CARICAMENTO --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Sfondo scuro e quasi opaco */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Assicura che sia sopra tutto */
    opacity: 0; /* Inizialmente invisibile */
    visibility: hidden; /* Nasconde l'overlay dal layout */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-text {
    color: #00FFFF;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px #00FFFF, 0 0 40px rgba(0, 255, 255, 0.7);
    margin-bottom: 30px;
    animation: pulseGlow 1.5s infinite alternate; /* Animazione pulsante per il testo */
}

@keyframes pulseGlow {
    from { text-shadow: 0 0 20px #00FFFF, 0 0 40px rgba(0, 255, 255, 0.7); }
    to { text-shadow: 0 0 30px #00FFFF, 0 0 60px rgba(0, 255, 255, 0.9); }
}

.spinner {
    border: 8px solid rgba(0, 255, 255, 0.3); /* Base della barra (trasparente) */
    border-top: 8px solid #00FFFF; /* Colore della parte "che gira" */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; /* Animazione di rotazione */
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8); /* Bagliore attorno allo spinner */
}

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

/* --- STILI PER SERVER TIME --- */
#server-time {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #fff; /* Colore bianco */
    font-size: 1.1em;
    font-weight: bold;
    text-shadow: 0 0 8px #fff, 0 0 15px rgba(255, 255, 255, 0.7); /* Bagliore bianco */
    z-index: 10;
    opacity: 0; /* Inizialmente invisibile */
    transform: translateY(-20px); /* Inizia più in alto */
    animation: slideDownFadeIn 1s ease forwards; /* Animazione di discesa e fade-in */
    animation-delay: 1.5s; /* Appare insieme alla stringa online */
    pointer-events: none;
    user-select: none;
}

/* Animazione per SERVER TIME */
@keyframes slideDownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        text-shadow: none;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 8px #fff, 0 0 15px rgba(255, 255, 255, 0.7);
    }
}

/* Media Queries */
@media (min-width: 992px) {
    .nav-right {
        position: absolute;
        right: 2%;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-brand {
        margin: auto;
    }

    .hero h1, .hero p, .hero .btn {
        text-align: center;
    }

    .dropdown-menu {
        width: 100%;
    }

    .content {
        padding: 15px;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .leaderboard-card {
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 1.25rem;
    }

    #pediaPopoverTemplate .popover-body .form-control {
        width: 100%;
    }

    #result-box {
        text-align: left;
        flex-direction: column;
    }

    #result-box .col-6 {
        width: 100%;
    }

    footer p {
        text-align: center;
        font-size: 0.8rem;
    }
}