/* ============================================================
   Le Scimmie CrossFit — 2026 UI
   Mobile-first, app-like design
   ============================================================ */

/* ============================================================
   PRENOTA — day picker + course cards
   ============================================================ */

/* Day picker scrollabile su mobile */
.sc-day-picker {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sc-day-picker::-webkit-scrollbar { display: none; }

.sc-day-btn {
    flex-shrink: 0;
    min-width: 52px;
    padding: 10px 14px;
    border-radius: 50px !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #555;
    transition: all 0.15s;
}
.sc-day-btn:hover { border-color: #bbb; color: #111; text-decoration: none; }
.sc-day-btn.active {
    background: #111;
    border-color: #111;
    color: #fff;
    text-decoration: none;
}

/* Griglia corsi */
.sc-courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}
@media (min-width: 576px) {
    .sc-courses-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Su desktop, nella col-md-8, 2 colonne sono sufficienti */
@media (min-width: 992px) {
    .col-md-8 .sc-courses-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Solo se usata come griglia standalone (pagina intera) usa 3 colonne */
@media (min-width: 1200px) {
    .sc-courses-grid { grid-template-columns: repeat(3, 1fr); }
    .col-md-8 .sc-courses-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Card corso */
.sc-course-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 16px 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.sc-course-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}
.sc-course-card__time {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}
.sc-course-card__date {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}
.sc-course-card__footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sc-spots {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}
.sc-spots-ok   { background: #e8f5e9; color: #2e7d32; }
.sc-spots-out  { background: #ffebee; color: #c62828; }
.sc-spots-warn { background: #fff8e1; color: #f57c00; }

.sc-badge-open    { font-size: 11px; color: #1565c0; }
.sc-badge-special { font-size: 11px; color: #6a1b9a; }

/* Bottone prenota — card corso */
.sc-btn-prenota {
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 50px !important;
    padding: 7px 18px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s;
}
.sc-btn-prenota:hover,
.sc-btn-prenota:focus {
    background: #1976d2;
    box-shadow: 0 4px 14px rgba(21,101,192,0.35);
    color: #fff;
    outline: none;
}
.sc-btn-prenota:active {
    background: #0d47a1;
    box-shadow: none;
}

/* Bottoni modal conferma */
.sc-btn-modal-confirm {
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 50px !important;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}
.sc-btn-modal-confirm:hover,
.sc-btn-modal-confirm:focus {
    background: #1976d2;
    box-shadow: 0 4px 14px rgba(21,101,192,0.35);
    color: #fff;
    text-decoration: none;
    outline: none;
}
.sc-btn-modal-confirm:active {
    background: #0d47a1;
    box-shadow: none;
    color: #fff;
}
.sc-btn-modal-cancel {
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 50px !important;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.sc-btn-modal-cancel:hover {
    background: #f5f5f5;
    color: #333;
}

/* ============================================================
   APP LAYOUT — sidebar desktop / bottom nav mobile
   ============================================================ */

/* Bottom nav: visibile solo su mobile */
.sc-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111;
    border-top: 1px solid #2a2a2a;
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone safe area */
}

.sc-bottom-nav__items {
    display: flex;
    height: 60px;
    align-items: stretch;
}

.sc-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    text-decoration: none;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.sc-bottom-nav__item i {
    font-size: 24px;
    margin-bottom: 2px;
    display: block;
    line-height: 1;
}

.sc-bottom-nav__item:hover,
.sc-bottom-nav__item:active {
    color: #fff;
    text-decoration: none;
}

.sc-bottom-nav__item.active {
    color: #e53935;
    text-decoration: none;
}

/* Mobile: mostra bottom nav, aggiungi padding al content */
@media (max-width: 767px) {
    .sc-bottom-nav {
        display: block;
    }

    /* spazio per non sovrapporre la bottom nav al contenuto */
    .content {
        padding-bottom: 72px !important;
    }

    /* logo testuale visibile anche su mobile, dimensione ridotta */
    .header .header__logo {
        min-width: 0;
    }
    .header .header__logo h1 {
        font-size: 1rem;
    }
}

/* Desktop: nasconde la bottom nav, la sidebar è sempre visibile */
@media (min-width: 768px) {
    .sc-bottom-nav {
        display: none !important;
    }
}

/* Header logo: sempre bianco */
.header .header__logo h1,
.header .header__logo h1 a,
.header .header__logo a {
    color: #ffffff !important;
}

/* Utenti senza sidebar: content occupa tutta la larghezza */
body.sc-no-sidebar .sidebar {
    display: none !important;
    width: 0 !important;
}
body.sc-no-sidebar .content,
body.sc-no-sidebar .page-content,
body.sc-no-sidebar main > .content {
    margin-left: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
}
body.sc-no-sidebar .header,
body.sc-no-sidebar header.header {
    left: 0 !important;
    width: 100% !important;
}

/* ============================================================
   CARD & COMPONENTI GENERALI 2026
   ============================================================ */

.sc-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.sc-card h2, .sc-card h3 {
    font-weight: 700;
    color: #111;
}

.sc-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.sc-stat-box {
    background: #fff;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.sc-stat-box .sc-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.sc-stat-box .sc-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 4px;
}

.sc-stat-box.sc-stat-danger .sc-stat-number { color: #e53935; }
.sc-stat-box.sc-stat-warning .sc-stat-number { color: #f57c00; }
.sc-stat-box.sc-stat-success .sc-stat-number { color: #2e7d32; }

/* Griglia azioni rapide — desktop utente */
.sc-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.sc-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 22px 12px;
    text-decoration: none;
    color: #111;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.15s;
    border: 2px solid transparent;
    text-align: center;
    gap: 8px;
}

.sc-action-btn i {
    font-size: 30px;
    display: block;
}

.sc-action-btn:hover {
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

.sc-action-btn:active {
    transform: translateY(0);
}

.sc-action-btn.sc-action-prenota   { color: #0277bd; border-color: #e3f2fd; }
.sc-action-btn.sc-action-mie       { color: #1565c0; border-color: #e8eaf6; }
.sc-action-btn.sc-action-acquista  { color: #2e7d32; border-color: #e8f5e9; }
.sc-action-btn.sc-action-telegram  { color: #0088cc; border-color: #e3f2fd; }

.sc-action-btn.sc-action-prenota:hover  { background: #e3f2fd; }
.sc-action-btn.sc-action-mie:hover      { background: #e8eaf6; }
.sc-action-btn.sc-action-acquista:hover { background: #e8f5e9; }
.sc-action-btn.sc-action-telegram:hover { background: #e1f5fe; }

/* 3 bottoni documenti affiancati */
.sc-doc-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sc-doc-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    padding: 14px 8px;
    text-decoration: none;
    color: #555;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border: 1px solid #eee;
    text-align: center;
    gap: 6px;
    transition: background 0.2s, box-shadow 0.2s;
}

.sc-doc-btn i {
    font-size: 22px;
    color: #888;
    display: block;
}

.sc-doc-btn:hover {
    background: #f5f5f5;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    color: #333;
}

/* Bottoni pagamento (Satispay / Carta) */
.sc-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 50px !important;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, box-shadow 0.15s;
}
.sc-pay-satispay {
    background: #e2002d;
    color: #fff;
}
.sc-pay-satispay:hover { background: #b3001f; color: #fff; text-decoration: none; }
.sc-pay-stripe {
    background: #1565c0;
    color: #fff;
}
.sc-pay-stripe:hover { background: #0d47a1; color: #fff; text-decoration: none; }

/* Bottone disdetta — card prenotazione */
.sc-btn-disdetta {
    background: transparent;
    color: #e53935;
    border: 1px solid #e53935;
    border-radius: 50px !important;
    padding: 7px 18px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.sc-btn-disdetta:hover,
.sc-btn-disdetta:focus {
    background: #ffebee;
    color: #c62828;
    outline: none;
}

/* Bottone conferma azione pericolosa (disdetta) */
.sc-btn-modal-danger {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 50px !important;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}
.sc-btn-modal-danger:hover,
.sc-btn-modal-danger:focus {
    background: #b71c1c;
    color: #fff;
    text-decoration: none;
    outline: none;
}

/* ============================================================
   TOAST — popup notifiche (non modifica il layout)
   ============================================================ */

.sc-toast-container {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.sc-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 340px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    pointer-events: all;
    animation: sc-toast-in 0.25s ease;
    position: relative;
}

@keyframes sc-toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.sc-toast.sc-toast-out {
    animation: sc-toast-out 0.3s ease forwards;
}

@keyframes sc-toast-out {
    to { opacity: 0; transform: translateX(40px); }
}

.sc-toast i { font-size: 20px; flex-shrink: 0; }
.sc-toast span { flex: 1; }

.sc-toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.5;
    padding: 0 0 0 4px;
    line-height: 1;
    flex-shrink: 0;
    font-family: inherit;
}
.sc-toast-close:hover { opacity: 1; }

.sc-toast-danger   { background: #ffebee; color: #c62828; }
.sc-toast-warning  { background: #fff8e1; color: #f57c00; }
.sc-toast-info     { background: #e3f2fd; color: #1565c0; }
.sc-toast-success  { background: #e8f5e9; color: #2e7d32; }
.sc-toast-telegram { background: #0088cc; color: #fff; text-decoration: none; cursor: pointer; }
.sc-toast-telegram:hover { background: #006fa8; color: #fff; text-decoration: none; }
.sc-toast-telegram .sc-toast-close { color: #fff; }

/* su mobile: toast in basso al centro sopra la bottom nav */
@media (max-width: 767px) {
    .sc-toast-container {
        top: auto;
        bottom: 76px;
        right: 12px;
        left: 12px;
        align-items: stretch;
    }
    .sc-toast { max-width: 100%; }
}

/* Alert banner (usato solo inline dove serve, es. prenota) */
.sc-alert {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sc-alert-danger  { background: #ffebee; color: #c62828; }
.sc-alert-warning { background: #fff8e1; color: #f57c00; }
.sc-alert-info    { background: #e3f2fd; color: #1565c0; }
.sc-alert-success { background: #e8f5e9; color: #2e7d32; }

/* ---- Auth pages (login, recupera accesso, reset password) ---- */

.sc-auth-page {
    min-height: 100vh;
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.sc-auth-logo {
    width: 100%;
    max-width: 340px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
}

.sc-auth-logo img {
    width: 100%;
    display: block;
}

.sc-auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px 24px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.sc-auth-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.sc-auth-card .sc-auth-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

/* Input fields */
.sc-auth-card .form-group {
    margin-bottom: 20px;
}

.sc-auth-card .form-group label,
.sc-auth-card .sc-label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    display: block;
}

.sc-auth-card .form-control {
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0 !important;
    padding: 10px 0;
    font-size: 17px;
    color: #222;
    background: transparent;
    box-shadow: none;
    transition: border-color 0.2s;
    width: 100%;
}

.sc-auth-card .form-control:focus {
    border-bottom-color: #111;
    box-shadow: none;
    outline: none;
    background: transparent;
}

/* Buttons */
.sc-btn-primary {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 50px !important;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 8px;
    margin-bottom: 16px;
    display: block;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.sc-btn-primary:hover,
.sc-btn-primary:active,
.sc-btn-primary:focus {
    background: #b71c1c;
    color: #fff;
    text-decoration: none;
}

.sc-btn-register {
    background: #2e7d32;
    color: #fff;
    border-radius: 50px !important;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.sc-btn-register:hover,
.sc-btn-register:active {
    background: #1b5e20;
    color: #fff;
    text-decoration: none;
}

/* Secondary links block */
.sc-auth-links {
    margin-top: 8px;
}

.sc-auth-links p {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    text-align: center;
}

.sc-auth-links p + p {
    margin-top: 12px;
}

.sc-btn-ghost {
    display: inline-block;
    background: #f5f5f5;
    color: #333;
    border-radius: 50px !important;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.sc-btn-ghost:hover {
    background: #e8e8e8;
    color: #111;
    text-decoration: none;
}

/* Back link */
.sc-back-link {
    text-align: center;
    margin-top: 8px;
}

.sc-back-link a {
    font-size: 14px;
    color: #777;
    text-decoration: none;
    font-weight: 600;
}

.sc-back-link a:hover {
    color: #111;
}

/* Register CTA below card */
.sc-auth-register {
    margin-top: 24px;
    text-align: center;
}

/* Flash messages overrides for auth pages */
.sc-auth-card .message,
.sc-auth-card .alert {
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

/* ============================================================
   SIDEBAR AMMINISTRAZIONE — restyle 2026
   Layout (posizione, larghezza, comportamento mobile/desktop)
   resta quello del tema base: qui solo grafica.
   ============================================================ */

.sc-sidebar {
    background: #fff;
    border-right: 1px solid #eee;
}

.sc-sidebar .scrollbar-inner {
    padding-top: 4px;
}

.sc-navigation {
    padding: 0 12px;
}

.sc-navigation li {
    margin-bottom: 4px;
    list-style: none;
}

.sc-navigation li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: #555;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.sc-navigation li a i {
    font-size: 19px;
    width: 22px;
    text-align: center;
    color: #999;
    transition: color 0.2s;
    flex-shrink: 0;
}

.sc-navigation li:not(.sc-nav-active):not(.sc-nav-logout) a:hover {
    background: #e3f2fd;
    color: #1565c0;
    text-decoration: none;
}

.sc-navigation li:not(.sc-nav-active):not(.sc-nav-logout) a:hover i {
    color: #1565c0;
}

.sc-navigation li.sc-nav-active a {
    background: #1565c0;
    color: #fff;
}

.sc-navigation li.sc-nav-active a i {
    color: #fff;
}

.sc-navigation li.sc-nav-divider {
    margin: 10px 0;
}

.sc-navigation li.sc-nav-divider hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

.sc-navigation li.sc-nav-logout a {
    color: #e53935;
}

.sc-navigation li.sc-nav-logout a i {
    color: #e53935;
}

.sc-navigation li.sc-nav-logout a:hover {
    background: #ffebee;
    color: #c62828;
    text-decoration: none;
}

.sc-navigation li.sc-nav-logout a:hover i {
    color: #c62828;
}

/* Hamburger: allineato al nuovo header, resta bianco su sfondo header scuro */
.navigation-trigger__inner:before {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Il tema base incolla il content subito dopo la sidebar (padding-left = larghezza
   sidebar, 0 respiro). Aggiungiamo uno spazio visivo su desktop. */
@media (min-width: 1200px) {
    body:not(.sc-no-sidebar) .content:not(.content--boxed):not(.content--full) {
        padding-left: 300px !important;
    }
}

/* ============================================================
   PAGINE AMMINISTRAZIONE — liste/tabelle/form (es. Corsi)
   ============================================================ */

.sc-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.sc-page-actions {
    margin: 16px 0;
}

.sc-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
}

.sc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.sc-table th {
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f5;
    text-align: left;
    color: #333;
    font-weight: 700;
}

.sc-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 12px;
    border-bottom: 2px solid #f0f0f0;
    white-space: nowrap;
}

.sc-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    vertical-align: middle;
    white-space: nowrap;
}

.sc-table tbody tr:hover {
    background: #fafafa;
}

.sc-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}
.sc-badge-pill.sc-badge-on      { background: #e8f5e9; color: #2e7d32; }
.sc-badge-pill.sc-badge-off     { background: #ffebee; color: #c62828; }
.sc-badge-pill.sc-badge-warn    { background: #fff8e1; color: #f57c00; }
.sc-badge-pill.sc-badge-blue    { background: #e3f2fd; color: #1565c0; }
.sc-badge-pill.sc-badge-neutral { background: #f0f0f0; color: #666; }

.sc-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e3f2fd;
    color: #1565c0;
    transition: background 0.2s, color 0.2s;
}
.sc-icon-btn:hover,
.sc-icon-btn:focus {
    background: #bbdefb;
    color: #0d47a1;
    text-decoration: none;
}

.sc-icon-yes { color: #2e7d32; }
.sc-icon-no  { color: #c62828; }

.sc-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sc-icon-btn-danger {
    background: #ffebee;
    color: #c62828;
    border: none;
    cursor: pointer;
}
.sc-icon-btn-danger:hover,
.sc-icon-btn-danger:focus {
    background: #ffcdd2;
    color: #b71c1c;
}

.sc-icon-btn-warn {
    background: #fff8e1;
    color: #f57c00;
}
.sc-icon-btn-warn:hover,
.sc-icon-btn-warn:focus {
    background: #ffecb3;
    color: #e65100;
}

/* Sezioni colorate nelle schede admin (es. modifica iscritto) */
.sc-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 20px 0 10px;
}
.sc-section-title.sc-warn    { color: #f57c00; }
.sc-section-title.sc-success { color: #2e7d32; }
.sc-section-title.sc-info    { color: #1565c0; }
.sc-section-title.sc-danger  { color: #c62828; }

.sc-section-box {
    border-radius: 14px;
    padding: 14px 12px 4px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.sc-section-box.sc-warn    { background: #fff8e1; border-color: #ffe082; }
.sc-section-box.sc-success { background: #e8f5e9; border-color: #a5d6a7; }
.sc-section-box.sc-info    { background: #e3f2fd; border-color: #90caf9; }
.sc-section-box.sc-danger  { background: #ffebee; border-color: #ef9a9a; }

/* Bottoni azione pillola piccoli (es. ricalcola scadenza, aggiungi/togli gettoni) */
.sc-btn-pill-sm {
    display: inline-block;
    border: none;
    border-radius: 50px !important;
    padding: 7px 18px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.sc-btn-pill-sm.sc-btn-blue    { background: #1565c0; color: #fff !important; }
.sc-btn-pill-sm.sc-btn-blue:hover,
.sc-btn-pill-sm.sc-btn-blue:focus    { background: #1976d2; color: #fff !important; }
.sc-btn-pill-sm.sc-btn-green   { background: #2e7d32; color: #fff !important; }
.sc-btn-pill-sm.sc-btn-green:hover,
.sc-btn-pill-sm.sc-btn-green:focus   { background: #1b5e20; color: #fff !important; }
.sc-btn-pill-sm.sc-btn-red     { background: #e53935; color: #fff !important; }
.sc-btn-pill-sm.sc-btn-red:hover,
.sc-btn-pill-sm.sc-btn-red:focus     { background: #b71c1c; color: #fff !important; }
.sc-btn-pill-sm.sc-btn-blue i,
.sc-btn-pill-sm.sc-btn-green i,
.sc-btn-pill-sm.sc-btn-red i {
    color: #fff !important;
}

/* Chip numerici (selezione rapida gettoni) */
.sc-chip-btn {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    border-radius: 50px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin: 2px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sc-chip-btn:hover {
    background: #e3f2fd;
    border-color: #1565c0;
    color: #1565c0;
}
.sc-chip-btn.sc-chip-primary {
    background: #1565c0;
    border-color: #1565c0;
    color: #fff;
}
.sc-chip-btn.sc-chip-primary:hover {
    background: #1976d2;
}

/* Vista sola-lettura (es. dettaglio iscritto): label piccola + valore in evidenza */
.sc-view-card label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}
.sc-view-card .font-weight-bold {
    font-size: 14px;
    color: #222;
    font-weight: 600 !important;
}
.sc-view-card .form-group {
    margin-bottom: 18px;
}

/* Riga evidenziata nel dettaglio corso (già presente in negativo, es. dettaglio calendario) */
.sc-table tr.red {
    background-color: #fff3e0;
}

/* Calendario — solo colori/tipografia, la struttura resta quella di FullCalendar/tema */
.content__title--calendar .actions__item {
    color: #999;
}
.content__title--calendar .actions__item:hover,
.content__title--calendar .actions__item.actions__item--active {
    color: #1565c0;
}

.fc-event {
    background-color: #1565c0 !important;
    border-color: #1565c0 !important;
}
.fc-event:hover {
    background-color: #1976d2 !important;
}
.fc-day-grid-event {
    border-radius: 6px;
}
.fc-today {
    background: #e3f2fd !important;
}
.calendar .fc-day-header {
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 11px;
}

/* Paginazione — usata da liste come Chiusure/Sospensioni */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 0;
    margin: 16px 0 8px;
    list-style: none;
}
.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 50px !important;
    border: 1px solid #e0e0e0;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination .page-item .page-link:hover {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #e3f2fd;
    text-decoration: none;
}
.pagination .page-item.active .page-link {
    background: #1565c0;
    border-color: #1565c0;
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* Modal: coerenti con le card arrotondate 2026 */
.modal-content {
    border-radius: 16px !important;
    overflow: hidden;
}

/* Form pagine admin (add/edit corsi e simili) */
.sc-form .form-group,
.sc-form > .input {
    margin-bottom: 16px;
}

.sc-form label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.sc-form .form-control:not([type="checkbox"]):not([type="radio"]) {
    border: 1px solid #e0e0e0;
    border-radius: 10px !important;
    padding: 9px 14px;
    font-size: 14px;
    color: #222;
    background: #fafafa;
    box-shadow: none;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}

.sc-form .form-control:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: #1565c0;
    background: #fff;
    box-shadow: none;
    outline: none;
}

.sc-form .checkbox label,
.sc-form .form-check-label {
    text-transform: none;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: inline;
}

.sc-form .form-check {
    margin-bottom: 16px;
}

.sc-btn-save {
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 50px !important;
    padding: 11px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    display: inline-block;
    margin-top: 8px;
}
.sc-btn-save:hover,
.sc-btn-save:focus {
    background: #1976d2;
    box-shadow: 0 4px 14px rgba(21,101,192,0.35);
    color: #fff;
    text-decoration: none;
    outline: none;
}
.sc-btn-save:active {
    background: #0d47a1;
}
