/* Studenti.css - Stili per l'app Area Studenti BudoCam */

:root {
    --blu: #000080;
    --rosso: #ff0000;
    --grigio: #f4f4f4;
    --bianco: #ffffff;
    --verde: #28a745;
    --giallo: #ffc107;
    --viola: #6f42c1;
    --oro: #ffd700;
    --arancio: #fd7e14;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--grigio);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* Sezione pubblica: descrizione app e link legali (visibile quando non loggato, per verifica branding) */
.sezione-pubblica {
    max-width: 600px;
    margin: 20px auto 12px auto;
    padding: 16px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid var(--blu);
    font-size: 14px;
    color: #333;
}
.sezione-pubblica p {
    margin: 0 0 10px 0;
}
.sezione-pubblica p:last-child {
    margin-bottom: 0;
}
.sezione-pubblica a {
    color: var(--blu);
    text-decoration: underline;
}
.sezione-pubblica a:hover {
    color: var(--rosso);
}

/* Auth Card */
.auth-card {
    max-width: 400px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 5px solid var(--blu);
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.auth-btn {
    width: 100%;
    background: var(--blu);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}

.auth-btn:hover {
    background: var(--rosso);
}

.toggle-link {
    margin-top: 20px;
    display: block;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

header {
    background: var(--blu);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    position: relative;
    border-bottom: 5px solid var(--rosso);
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
}

.header-nome {
    font-weight: bold;
    font-size: 1em;
    opacity: 1;
}

/* Hamburger button */
.hamburger-btn {
    flex-shrink: 0;
    background: white;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hamburger-btn:hover {
    background: #f0f0f0;
}

.hamburger-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.hamburger-label {
    font-size: 10px;
    font-weight: bold;
    color: var(--blu);
    letter-spacing: 0.05em;
}

/* Dropdown menu */
.hamburger-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 200;
    min-width: 200px;
    overflow: hidden;
    flex-direction: column;
}

.hamburger-menu.open {
    display: flex;
}

.header-nav-btn {
    background: white;
    color: var(--blu);
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 20px;
    text-align: left;
    border-radius: 0;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}

.header-nav-btn:hover {
    background: var(--grigio);
}

.header-nav-btn.active {
    background: var(--blu);
    color: white;
}

.hamburger-divider {
    height: 1px;
    background: #ddd;
}

.hamburger-esci {
    color: var(--rosso);
    border-bottom: none;
}

.hamburger-esci:hover {
    background: #fff0f0;
    color: var(--rosso);
}

/* Overlay trasparente per chiudere il menu cliccando fuori */
.hamburger-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 199;
}

.hamburger-overlay.open {
    display: block;
}

.back-btn {
    background: var(--bianco);
    color: var(--blu);
    border: 1px solid var(--blu);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    width: 100%;
    text-align: center;
}

#box-avviso {
    background: var(--arancio);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 0;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    user-select: none;
}

.annunci-titolo {
    flex: 1;
    text-align: center;
    transition: opacity 0.4s ease;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.annunci-titolo.annunci-fade-out {
    opacity: 0;
}

.annunci-freccia {
    font-size: 11px;
    opacity: 0.8;
    flex-shrink: 0;
}

.annunci-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53935;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.pannello-annunci {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.pannello-annunci.ha-scroll::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.97));
    pointer-events: none;
    z-index: 2;
}

@keyframes rimbalza {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

.pannello-scroll-arrow {
    display: none;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    color: var(--arancio);
    pointer-events: none;
    z-index: 3;
    animation: rimbalza 0.9s ease-in-out infinite;
    line-height: 1;
}

.pannello-annunci.ha-scroll .pannello-scroll-arrow {
    display: block;
}

.pannello-annunci-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--arancio);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.pannello-annunci-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.pannello-annunci-lista {
    max-height: 60vh;
    overflow-y: auto;
}

.pannello-annuncio-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pannello-annuncio-item:last-child {
    border-bottom: none;
}

.pannello-annuncio-titolo {
    font-weight: bold;
    font-size: 14px;
    color: #1a237e;
    margin-bottom: 4px;
}

.pannello-annuncio-testo {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
}

.pannello-annuncio-link {
    display: inline-block;
    color: var(--arancio);
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid var(--arancio);
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Gamification */
.xp-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 8px solid var(--oro);
    cursor: pointer;
    transition: 0.2s;
}

.xp-section:hover {
    background: #fffdf0;
}

.xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.xp-bar-bg {
    background: #eee;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--oro), #ffb700);
    transition: width 0.8s ease-out;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    background: white;
    padding: 10px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: bold;
    color: var(--blu);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

/* MODAL PLAYER VIDEO - FIX MOBILE */
#video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.98);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-player-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mobile-close-btn {
    width: 100%;
    background: var(--rosso);
    color: white;
    padding: 18px 0;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    border: none;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.modal-content-player {
    width: 100%;
    max-width: 950px;
    aspect-ratio: 16/9;
    background: black;
    margin: auto;
    position: relative;
}

#xp-status-msg {
    color: var(--oro);
    padding: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Discipline */
.disciplina-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.disciplina-card {
    background: var(--blu);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.disciplina-card:hover {
    transform: translateY(-5px);
    background: var(--rosso);
}

/* Video Card */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
}

.video-card.bloccato {
    opacity: 0.6;
    filter: grayscale(1);
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    pointer-events: none;
}

.lock-text {
    font-size: 10px;
    background: rgba(0,0,0,0.8);
    padding: 4px 8px;
    border-radius: 20px;
    margin-top: 5px;
    font-weight: bold;
}

/* Icona Cuore a Sinistra */
.fav-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #bbb;
    z-index: 15;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.fav-btn.active {
    color: var(--rosso);
    transform: scale(1.1);
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.video-info {
    padding: 12px;
    flex-grow: 1;
}

.video-title {
    font-weight: bold;
    color: var(--blu);
    font-size: 0.95em;
    line-height: 1.3;
}

.grado-separatore {
    width: 100%;
    color: var(--blu);
    border-bottom: 3px solid var(--oro);
    padding-bottom: 8px;
    margin: 40px 0 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
}

.progress-mini-container {
    width: 100px;
    background: #eee;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-mini-bar {
    height: 100%;
    background: var(--verde);
    transition: width 0.5s;
}

.search-input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 35px;
    border: 2px solid var(--blu);
    font-size: 17px;
    box-sizing: border-box;
    margin-bottom: 25px;
    outline: none;
}

/* Modal Livelli */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.modal-content-livelli {
    background: white;
    width: 90%;
    max-width: 480px;
    padding: 25px;
    border-radius: 15px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.modal-punti-utente {
    text-align: center;
    font-weight: bold;
    color: var(--blu);
    margin: 0 0 20px 0;
    padding: 12px;
    background: var(--grigio);
    border-radius: 8px;
    font-size: 15px;
}

.livello-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.livello-row.attuale {
    background: var(--oro);
    color: var(--blu);
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#messaggio-abilitazione {
    background: #fff3cd;
    color: #856404;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 15px;
    border: 1px solid #ffeeba;
}

.hidden {
    display: none;
}

/* Pagina Impostazioni */
.impostazioni-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 8px solid var(--blu);
    margin-top: 15px;
}

.impostazioni-campo {
    margin-bottom: 22px;
}

.impostazioni-campo label {
    display: block;
    font-weight: bold;
    color: var(--blu);
    margin-bottom: 8px;
}

.impostazioni-campo .search-input {
    margin-bottom: 8px;
}

.hint {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.avviso-nickname {
    font-size: 13px;
    margin-top: 8px;
}

.avviso-nickname.avviso-warning {
    color: var(--arancio);
    font-weight: bold;
}

/* Pagina Classifica */
.classifica-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 8px solid var(--oro);
    margin-top: 15px;
}

.classifica-sottotitolo {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.tabella-classifica {
    width: 100%;
    border-collapse: collapse;
}

.tabella-classifica th,
.tabella-classifica td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabella-classifica th {
    background: var(--grigio);
    color: var(--blu);
    font-weight: bold;
}

.tabella-classifica tbody tr:hover {
    background: #fafafa;
}

.classifica-riga-io {
    background: #fff9e6;
    font-weight: bold;
}

.badge-io {
    background: var(--blu);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 6px;
}

.classifica-privati {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Pagina Percorso (tecniche apprese, sola lettura) */
.percorso-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 8px solid var(--viola);
    margin-top: 15px;
}

.percorso-intro {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 18px;
}

.percorso-lista {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}


.percorso-meta {
    font-size: 12px;
    color: #666;
}

.percorso-vuoto {
    font-size: 14px;
    color: #666;
    padding: 16px;
    margin: 0;
}

.percorso-disciplina {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.percorso-disciplina-titolo {
    background: var(--blu);
    color: white;
    padding: 12px 16px;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.percorso-grado {
    border-bottom: 1px solid #eee;
}

.percorso-grado:last-child {
    border-bottom: none;
}

.percorso-grado-titolo {
    background: var(--viola);
    color: white;
    padding: 8px 16px;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.percorso-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    vertical-align: middle;
}

.percorso-badge.appresa {
    background: var(--verde);
}

.percorso-badge.non-appresa {
    background: var(--rosso);
}

/* ========== QUIZ ========== */
#vista-quiz {
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.quiz-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.quiz-suoni-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    color: var(--blu);
    cursor: pointer;
    user-select: none;
}

.quiz-suoni-toggle input {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.quiz-azioni-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.quiz-regole-testo p {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

#quiz-griglia-categorie {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.quiz-categoria-btn {
    background: var(--blu);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quiz-categoria-icona {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.quiz-categoria-btn:hover {
    background: var(--viola);
    transform: scale(1.02);
}

#quiz-domanda-wrap {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 6px solid var(--blu);
}

#quiz-categoria-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

#quiz-domanda-testo {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.4;
}

.quiz-timer-wrap {
    height: 12px;
    background: var(--grigio);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.quiz-timer-bar-bg {
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

#quiz-timer-bar {
    height: 100%;
    min-height: 12px;
    background: var(--blu);
    width: 100%;
    transition: width 1s linear;
    display: block;
}

#quiz-timer-secondi {
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

#quiz-opzioni {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-opzione-btn {
    background: var(--grigio);
    border: 2px solid #ddd;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.quiz-opzione-btn:focus,
.quiz-opzione-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

@media (hover: hover) {
    .quiz-opzione-btn:hover {
        border-color: var(--blu);
        background: #e8e8ff;
    }
}

#quiz-feedback-wrap {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

#quiz-feedback-titolo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

#quiz-feedback-messaggio {
    color: #555;
    margin-bottom: 12px;
}

#quiz-feedback-riepilogo {
    background: #f0f7f0;
    border-left: 4px solid var(--verde);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: left;
}

#quiz-feedback-domanda-testo {
    color: #333;
    margin-bottom: 6px;
}

#quiz-feedback-risposta-corretta {
    font-weight: bold;
    color: var(--verde);
    margin: 0;
}

#quiz-feedback-avanti-btn {
    background: var(--blu);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 4px;
}

#quiz-feedback-avanti-btn:hover {
    opacity: 0.88;
}

#quiz-nessuna-domanda {
    background: #fff9e6;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #ffeeba;
}

#quiz-nessuna-domanda p {
    margin: 0 0 16px 0;
    color: #856404;
}

/* Pulsante Reset Quiz in header quiz */
.quiz-btn-reset {
    background: var(--arancio);
}

.quiz-btn-reset:hover {
    background: #e06c00;
}

/* Modal Reset Quiz */
.modal-reset-quiz .quiz-reset-intro {
    text-align: center;
    font-size: 15px;
    color: #333;
    margin: 0 0 20px 0;
    padding: 12px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid var(--blu);
}

.quiz-reset-categorie-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    max-height: 220px;
    overflow-y: auto;
}

.quiz-reset-categoria-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--blu);
    padding: 8px 0;
}

.quiz-reset-categoria-cb {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.modal-reset-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.auth-btn-secondary {
    background: #666;
    color: white;
}

.auth-btn-secondary:hover {
    background: #555;
}

/* Vista Punti BudoCam */
.punti-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.punti-sezione {
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-top: 16px;
}

.punti-riga {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.punti-riga:last-child {
    border-bottom: none;
}

.punti-badge {
    flex-shrink: 0;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 40px;
    text-align: center;
}

.punti-badge-verde {
    background: #e8f5e9;
    color: var(--verde);
}

.punti-badge-rosso {
    background: #ffebee;
    color: var(--rosso);
}

/* Vista Home - profilo studente */
.home-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.home-card-titolo {
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 10px;
}

.home-card-sottotitolo {
    font-weight: bold;
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-card-profilo {
    border-left: 5px solid var(--blu);
}

.home-profilo-nome {
    font-size: 22px;
    font-weight: bold;
    color: var(--blu);
    margin-bottom: 4px;
}

.home-profilo-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.home-discipline-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-disciplina-riga {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: var(--grigio);
    border-radius: 8px;
    font-size: 14px;
}

.home-disciplina-nome {
    font-weight: bold;
    color: var(--blu);
}

.home-disciplina-grado {
    font-size: 12px;
    color: #666;
}

.home-xp-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.home-xp-numero {
    font-size: 24px;
    font-weight: bold;
    color: var(--blu);
}

.home-xp-livello {
    font-size: 12px;
    background: var(--blu);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.home-prossimo-livello {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.home-classifica-pos {
    font-size: 13px;
    color: var(--viola);
    font-weight: bold;
    margin-top: 8px;
}

.home-stat-riga {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.home-stat-riga:last-child {
    border-bottom: none;
}

.home-stat-riga span:last-child {
    font-weight: bold;
    color: var(--blu);
}

.home-stat-small {
    font-size: 12px;
    color: #666;
}

.home-stat-small span:last-child {
    color: #555;
}

.home-quiz-cat-riga {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 12px;
}

.home-quiz-cat-nome {
    flex: 0 0 160px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-quiz-cat-bar-wrap {
    flex: 1;
    background: #eee;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.home-quiz-cat-bar {
    height: 100%;
    background: var(--verde);
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.home-quiz-cat-perc {
    flex: 0 0 50px;
    text-align: right;
    color: #888;
    font-size: 11px;
}
