html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* DASHBOARD MODERNA */

body {
    background-color: #0f172a;
    color: white;
}

.dashboard-container {
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

    .dashboard-header h1 {
        margin: 0;
        font-size: 28px;
    }

    .dashboard-header p {
        margin: 0;
        color: #94a3b8;
    }

.user-box {
    text-align: right;
}

    .user-box span {
        display: block;
        font-weight: bold;
    }

    .user-box small {
        color: #94a3b8;
    }

.logout-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #ef4444;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

    .logout-btn:hover {
        background: #dc2626;
    }

/* GRID */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* CARD */

.dash-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    box-shadow: 0 0 0 transparent;
}

    .dash-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }

/* ICONA */

.card-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

/* TESTO */

.dash-card h3 {
    margin: 0;
}

.dash-card p {
    color: #94a3b8;
    font-size: 14px;
}

/* DISABLED */

.dash-card.disabled {
    opacity: 0.4;
    pointer-events: none;
}
/* ===============================
   DASHBOARD PREMIUM SALTOSERVICE
================================ */

body {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 35%), radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.18), transparent 35%), #070b16 !important;
    color: #ffffff;
}

.premium-dashboard {
    min-height: calc(100vh - 80px);
    padding: 35px;
}

.premium-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.app-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
}

.premium-topbar h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
}

.premium-topbar p {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 16px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 12px 14px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: 22px;
}

.topbar-user strong {
    display: block;
    font-size: 14px;
}

.topbar-user span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.premium-logout {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white !important;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.25s;
}

    .premium-logout:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
    }

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

    .stat-card span {
        display: block;
        color: #94a3b8;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .stat-card strong {
        font-size: 24px;
    }

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.premium-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 26px;
    border-radius: 26px;
    text-decoration: none;
    color: white !important;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 55px rgba(0,0,0,0.28);
    transition: 0.28s ease;
}

    .premium-card::before {
        content: "";
        position: absolute;
        inset: -80px;
        opacity: 0.2;
        transition: 0.28s ease;
    }

    .premium-card.blue::before {
        background: radial-gradient(circle, #3b82f6, transparent 45%);
    }

    .premium-card.green::before {
        background: radial-gradient(circle, #22c55e, transparent 45%);
    }

    .premium-card.purple::before {
        background: radial-gradient(circle, #a855f7, transparent 45%);
    }

    .premium-card.orange::before {
        background: radial-gradient(circle, #f97316, transparent 45%);
    }

    .premium-card.red::before {
        background: radial-gradient(circle, #ef4444, transparent 45%);
    }

    .premium-card:hover {
        transform: translateY(-8px) scale(1.01);
        border-color: rgba(255,255,255,0.28);
        box-shadow: 0 28px 70px rgba(0,0,0,0.42);
    }

        .premium-card:hover::before {
            opacity: 0.36;
        }

.premium-icon {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 30px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    margin-bottom: 24px;
}

.premium-card h3 {
    position: relative;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 800;
}

.premium-card p {
    position: relative;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.5;
    max-width: 310px;
}

.premium-card span {
    position: absolute;
    left: 26px;
    bottom: 22px;
    color: #e2e8f0;
    font-weight: 700;
}

.premium-card.disabled {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 768px) {
    .premium-dashboard {
        padding: 20px;
    }

    .premium-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .topbar-user {
        width: 100%;
        justify-content: space-between;
    }
}