﻿@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: #ffffff;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

.progress-striped {
    background-image: linear-gradient( 135deg, rgba(255, 255, 255, 0.4) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.4) 75%, transparent 75%, transparent );
    background-size: 15px 15px;
}

.gold-glow {
    box-shadow: -10px 0px 25px -5px rgba(220, 38, 38, 0.4);
}

.sidebar-radius {
    border-radius: 0 45px 0 0;
}

.leaderboard-bg {
    background: linear-gradient(180deg, #0a254d 0%, #0056D2 100%);
}

.hide-scrollbar::-webkit-scrollbar {
    width: 0px;
}

/* ── CURVA MOBILE ──
   La parte blu è in alto, i bordi inferiori si curvano verso l'alto
   lasciando gli angoli bianchi in basso ai lati */
.header-curve {
    background: #008DD2;
    padding-top: 80px;
    padding-bottom: 48px;
    width: 100%;
}

.app-container {
    width: 100%;
    height: 100vh;
    background: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
    .app-container {
        height: 92vh;
        border-radius: 35px;
    }
}

@media (max-width: 381px) {
    .margin {
        margin-top: 30px !important;
    }
}

@media (max-width: 324px) {
    .margin {
        margin-bottom: 10px !important;
        position: absolute;
        top: 250px;
        width: 100%;
    }

    .bottt {
        margin-top: 70px !important;
    }

    .text {
        font-size: 10px !important;
    }
}

/* Mobile tab selector margin - identico all'originale HTML */
@media (max-width: 381px) {
    .margin {
        margin-top: 30px !important;
    }
}

@media (max-width: 324px) {
    .margin {
        margin-bottom: 10px !important;
        position: absolute;
        top: 250px;
        width: 100%;
    }
}

/* Banner d'errore non gestito di Blazor (markup in wwwroot/index.html).
   Nascosto di default: blazor.webassembly.js lo porta a display:block solo
   quando intercetta un'eccezione non gestita. Regola persa nel passaggio
   dal template di default (Bootstrap) a Tailwind, per cui restava sempre
   visibile fin dal primo render, a prescindere da errori reali. */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -0.1rem 0.5rem rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
