/* ==========================================================================
   DASHBOARD CARDS (SMALL-BOX) - PROFESSIONAL NAVY STYLE
   ========================================================================== */

/* 1. Reset e Contenitore Card */
.small-box {
    background-color: var(--main-blue-600) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important; /* Angoli squadrati richiesti */
    overflow: hidden;
    position: relative;
    z-index: 1; /* Crea un contesto di stratificazione */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 20px;
}

/* 2. Contenuto Testuale (Sopra l'icona) */
.small-box .inner {
    position: relative;
    z-index: 10; /* Forza il testo sopra l'icona */
    padding: 20px !important;
    height: 110px !important;
}

.small-box h3 {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    margin: 0;
    letter-spacing: 0.3px;
}

/* 3. Icona sullo sfondo */
.small-box .icon {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 0; /* Rimane dietro al testo */
    color: rgba(255, 255, 255, 0.1) !important; 
    font-size: 50px;
    transition: all 0.3s ease;
}

/* 4. Pulsante Gestisci (Footer) */
.small-box-footer {
    position: relative;
    z-index: 11; /* Sopra tutto per essere cliccabile */
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important; /* Testo chiaro richiesto */
    padding: 10px !important;
    display: block;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

/* ==========================================================================
   EFFETTI HOVER
   ========================================================================== */

.small-box:hover {
    background-color: var(--main-blue-700) !important; /* Leggermente più chiaro della sidebar */
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
    text-decoration: none !important;
}

.small-box:hover .small-box-footer {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.small-box:hover .icon {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.2) !important;
}

/* Fix per link e cursori */
.small-box-footer:hover {
    text-decoration: none !important;
}