﻿/* --- HEADER E IDENTIFICAZIONE --- */
.student-header {
    border-bottom: 2px solid #f0f0f0;
    padding-top: 0rem;
    padding-bottom: 0rem;
    margin-bottom: 0rem;
}

.student-fixed-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background-color: #ffffff;
    padding-top: 0.0rem;
    padding-bottom: 0.0rem;
}


.portal-brand {
    display: inline-flex;
    align-items: baseline;
    cursor: pointer;
}

    .portal-brand,
    .portal-brand:visited,
    .portal-brand:hover,
    .portal-brand:active {
        color: inherit;
    }

        .portal-brand:hover {
            opacity: 0.85;
        }

.user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.2rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-icon-circle {
    width: 38px;
    height: 38px;
    background-color: #0d6efd;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.1rem;
}

.user-info-text small {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    color: #6c757d;
    display: block;
    text-transform: uppercase;
}

/* --- MENU ICONE --- */
.menu-link {
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.menu-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem 1rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .menu-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
        border-color: #0d6efd;
    }

    .menu-card img {
        height: 64px;
        width: auto;
        margin-bottom: 1rem;
        transition: transform 0.3s ease;
    }

    .menu-card:hover img {
        transform: scale(1.1);
    }

    .menu-card h6 {
        color: #333;
        margin-bottom: 0;
        font-weight: 700;
    }

/* --- GRAFICO E CONTENUTI --- */
.chart-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.chart-container {
    padding: 1.5rem;
    background-color: #fff;
}

#loader-wrapper {
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(3px); /* Effetto sfocato sullo sfondo */
}
/* --- BRAND PORTALE --- */
.portal-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    line-height: 1;
    white-space: nowrap;
}

.portal-brand-ares {
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    letter-spacing: -0.06em;
    color: #6f86a8;
    text-transform: uppercase;
}

.portal-brand-discenti {
    font-weight: 600;
    font-size: clamp(1.15rem, 2vw, 1.8rem);
    color: #495057;
}

.portal-brand-login {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.portal-brand-login .portal-brand-ares {
    font-size: clamp(2.4rem, 6vw, 4rem);
}

.portal-brand-login .portal-brand-discenti {
    font-size: clamp(1.3rem, 3vw, 2rem);
}

/* --- STILE UNIFICATO PULSANTI TESTUALI ---
   Regolazioni globali:
   - --ares-button-radius definisce l'arrotondamento predefinito di tutti i pulsanti testuali.
   - --ares-button-min-width definisce una larghezza minima comune.

   Regolazioni per singolo pulsante:
   - aggiungere style="--ares-btn-radius: 0.75rem" per cambiare solo l'arrotondamento.
   - aggiungere class="ares-btn-width" e style="--ares-btn-width: 180px" per impostare la larghezza del singolo pulsante.
   - usare classi rapide: ares-btn-w-sm, ares-btn-w-md, ares-btn-w-lg, ares-btn-w-xl.
*/
:root {
    --ares-button-radius: 0.55rem;
    --ares-button-min-width: 0;
}

.btn:not(.btn-close):not(.btn-link) {
    border-radius: var(--ares-btn-radius, var(--ares-button-radius)) !important;
    min-width: var(--ares-btn-min-width, var(--ares-button-min-width));
    width: var(--ares-btn-width, auto);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
}

.btn:not(.btn-close):not(.btn-link).w-100,
.btn:not(.btn-close):not(.btn-link).flex-fill {
    width: 100%;
}

.ares-btn-width {
    width: var(--ares-btn-width, auto) !important;
}

.ares-btn-w-sm {
    width: 120px !important;
}

.ares-btn-w-md {
    width: 160px !important;
}

.ares-btn-w-lg {
    width: 220px !important;
}

.ares-btn-w-xl {
    width: 280px !important;
}

.ares-btn-min-sm {
    --ares-btn-min-width: 120px;
}

.ares-btn-min-md {
    --ares-btn-min-width: 160px;
}

.ares-btn-min-lg {
    --ares-btn-min-width: 220px;
}

/* --- CAMBIO PASSWORD --- */
.student-header-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.password-change-card {
    overflow: hidden;
}

.password-policy-panel {
    background-color: #dff5f8;
    border-color: #b8e7ee;
    color: #174f58;
}

.password-policy-list {
    padding-left: 0;
    list-style: none;
}

.password-policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    transition: color 0.2s ease-in-out;
}

.password-policy-list li:last-child {
    margin-bottom: 0;
}

.password-policy-list .rule-icon {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.password-policy-list li.is-valid {
    color: #146c43;
}

.password-policy-list li.is-invalid {
    color: #b02a37;
}

.password-special-characters {
    overflow-wrap: anywhere;
    color: #9a3340;
}

.password-toggle {
    min-width: 44px !important;
}

@media (max-width: 767.98px) {
    .student-header-actions {
        justify-content: center;
        margin-top: 1rem;
    }
}
