﻿/* BUTTON RENTAL */

.btn-rental {
    background: var(--color-menu-web-sidebar-bg); /*linear-gradient(135deg, #3498db, #2980b9)*/
    border: 1.5px solid var(--color-menu-web-sidebar-bg);
    color: var(--color-text);
    font-weight: 600;
    padding: 8px 18px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: 0 4px 15px -5px rgba(52, 152, 219, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 1;
    margin: 10px;
    text-align: center;
    white-space: normal; 
    word-wrap: break-word;
}

    .btn-rental:hover {
        background: rgba(52, 152, 219, 0.08);
        border-color: #3498db;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px -5px rgba(52, 152, 219, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
        letter-spacing: 1px;
        color: #3498db;
    }

        .btn-rental:hover::before {
            left: 100%;
        }

        .btn-rental:hover::after {
            transform: scaleX(1);
        }

    .btn-rental:active {
        transform: translateY(1px) scale(0.97);
        background: #3498db73;
        box-shadow: 0 2px 10px -3px rgba(52, 152, 219, 0.8), inset 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: all 0.1s;
        color: var(--color-text-light);
    }

    .btn-rental:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3), 0 4px 15px -3px rgba(52, 152, 219, 0.8);
        animation: pulse 1.5s infinite;
    }

        .btn-rental:focus:not(:focus-visible) {
            animation: none;
            box-shadow: 0 4px 15px -5px rgba(52, 152, 219, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);
        }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3), 0 4px 15px -3px rgba(52, 152, 219, 0.8);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.2), 0 8px 25px -3px rgba(52, 152, 219, 1);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3), 0 4px 15px -3px rgba(52, 152, 219, 0.8);
    }
}

/* END OF BUTTON RENTAL */

.btn-number-stat {
    display: inline-block;
    padding: 8px 16px;
    border: 1.5px solid var(--color-menu-web-sidebar-bg);
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-align: center;
    background: var(--color-menu-web-sidebar-bg); /* rgba(52, 152, 219, 0.03) */
    backdrop-filter: blur(5px);
    min-width: 45px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: 0 4px 12px -6px rgba(52, 152, 219, 0.2);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

    .btn-number-stat::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(52, 152, 219, 0.1), transparent );
        transition: left 0.5s ease;
    }

    .btn-number-stat:hover {
        background: rgba(52, 152, 219, 0.08);
        border-color: #3498db;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px -8px rgba(52, 152, 219, 0.4);
        color: #3498db;
        border: 1px solid #3498db;
    }

        .btn-number-stat:hover::before {
            left: 100%;
        }

    .btn-number-stat:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px -4px rgba(52, 152, 219, 0.3);
        background: rgba(52, 152, 219, 0.12);
        transition: all 0.1s;
    }

    /* Variante per stati attivi/selection */
    .btn-number-stat.active {
        background: rgba(52, 152, 219, 0.15);
        border-color: #3498db;
        box-shadow: 0 4px 15px -5px rgba(52, 152, 219, 0.5);
        color: #3498db;
        font-weight: 700;
    }

    /* Effetto pulsante con bordo più spesso per stati speciali */
    .btn-number-stat.outlined {
        background: transparent;
        border-width: 2px;
        border-color: rgba(52, 152, 219, 0.4);
        font-weight: 500;
    }

        .btn-number-stat.outlined:hover {
            background: rgba(52, 152, 219, 0.04);
            border-color: #3498db;
        }

.card-body-custom {
    padding: 20px;
}

.section-title {
    font-size: 25px;
    font-weight: bold;
    color: #333;
}

.status-text {
    font-size: 14px;
    /*font-weight: bold;*/
    color: #e74c3c;
}

/* SEZIONE btn-click-Section */

.btn-click-Section {
    width: 100%;
    background-color: var(--color-menu-web-sidebar-bg); /* Azzurro principale */
    color: var(--color-text);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* Permette l'andata a capo */
    word-break: break-word; /* Forza a capo su parole lunghe */
}

    .btn-click-Section:hover {
        border: 1px solid #3498db;
        background-color: #3498db33; /* Azzurro più scuro */
        color: #3498db;
        transform: translateY(-2px);
        box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.2);
    }

    .btn-click-Section:active {
        background-color: #1c5985;
        color: white;
        transform: scale(0.95);
        box-shadow: inset 2px 2px 8px rgba(0, 0, 0, 0.3);
    }

    .btn-click-Section i {
        font-size: 22px;
    }

.btn-content {
    padding: 10px;
    margin: 0;
}

@media (max-width: 576px) {
    .btn-click-Section h3 {
        font-size: 0.95rem;
    }

    .btn-click-Section i {
        font-size: 20px;
    }
}

/* END SEZIONE btn-click-Section */

.card-text {
    font-weight: bold;
}

/* Section Title */
.title-section {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    color: #2c3e50; /* Blu scuro per un look professionale */
    transition: all 0.5s ease-in-out;
}

    .title-section::after {
        content: "";
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, #3498db, #2c3e50); /* Gradiente blu */
        position: absolute;
        bottom: -2px;
        left: 0;
        transition: all 0.5s ease-in-out;
    }

    .title-section:hover {
        color: #2980b9; /* Cambia colore al passaggio */
    }

        .title-section:hover::after {
            height: 5px; /* Aumenta la spessore */
            width: 15px;
            background: linear-gradient(to right, #2c3e50, #3498db); /* Cambia direzione del gradiente */
        }

/* Stile sezione report */

/* Stile per il titolo della sezione */
.header-reports {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}

    .header-reports::after {
        content: "";
        width: 60%;
        height: 3px;
        background-color: #3498db; /* Azzurro */
        display: block;
        margin: 5px auto;
        border-radius: 5px;
    }

/* Stile delle card */
.report-box {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    background: #fff;
    overflow: hidden;
}

    .report-box:hover {
        transform: translateY(-5px);
        background-color: #e6e6e6;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

/* Titolo della card */
.report-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
}

/* Icone dentro la card */
.report-icon {
    color: #3498db;
    font-size: 22px;
}

/* Testo descrittivo della card */
.report-text {
    font-size: 14px;
    color: #555;
}

.action-circle:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.action-circle:active {
    transform: scale(0.95);
}

/* End sezione report */

/* btn style good start */

.border-like-goo {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    background-color: var(--color-menu-web-sidebar-bg); /* Sfondo leggero per contrasto */
    color: #2980b9;
    min-width: 40px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Effetto leggero di profondità */
}

    /* Effetto Hover */
    .border-like-goo:hover {
        background-color: #3498db8c; 
        border: 1px solid #3498db;
        color: var(--color-text); 
        border-color: #2980b9; 
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
        transform: translateY(-2px);
    }

    /* Effetto Click */
    .border-like-goo:active {
        background-color: #2980b9;
        border-color: #1c6691;
        transform: translateY(1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

/* btn style good end */

/*Ridimensiona la sezione section blu e percorrenza e scadenze a col-12 se scendo sotto 950 px*/
/*@media (max-width: 950px) {
    .row-custom-layout .col-md-4,
    .row-custom-layout .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}*/

/*TEST START*/

/* Contenitore principale riutilizzabile come contenitore generico (card, box, sezioni isolate).*/
.box-container {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    padding: 16px;
    box-sizing: border-box;
    /* font-family: Arial, sans-serif; */
}

/* Corpo interno */
.body-scadenze-xp {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header con titolo e stato */
.header-scadenze-xp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

/* Testo stato */
.status-scadenze-xp {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.btn-card-large {
    min-height: 200px;
}

/* Riga orizzontale con gli elementi Molto utile per liste orizzontali scrollabili (es. tag, mini-card, elementi orizzontali).*/
.row-horizon-x {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px; /* spazio per scrollbar */
    box-sizing: content-box; /* assicura che il padding non riduca l'area */
}

/* Singolo elemento */
.elem-scadenze-xp {
    flex: 0 0 auto;
    min-width: 200px; /* Puoi adattare in base al tuo design */
    margin-right: 1rem; /* Spazio tra elementi */
}

.scroll-wrapper-x {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

/* Titolo elemento */
.text-title-sm {
    font-size: 20px;
    padding: 8px 0;
    white-space: normal;
    font-weight: 600;
}

/* Scrollbar minimale */
.row-scadenze-xp::-webkit-scrollbar {
    height: 6px;
}

.row-scadenze-xp::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* Adattamento su schermi piccoli */
@media (max-width: 480px) {
    .elem-scadenze-xp {
        min-width: 120px;
        font-size: 14px;
    }

    .title-scadenze-xp {
        font-size: 18px;
    }
}

/*TEST END*/

/* Animazione 3 butttons start */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 2000ms ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-out-down {
    animation: fadeDown 1000ms ease-in forwards;
}

@keyframes fadeDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

.fade-in-element {
    opacity: 0; /* Inizialmente invisibile */
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 1s; /* Appare dopo 1 secondo */
}
.fade-in-element-1 {
    opacity: 0; /* Inizialmente invisibile */
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 0.2s; /* Appare dopo 1 secondo */
}
.fade-in-element-2 {
    opacity: 0; /* Inizialmente invisibile */
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 0.4s; /* Appare dopo 1 secondo */
}
.fade-in-element-3 {
    opacity: 0; /* Inizialmente invisibile */
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 0.6s; /* Appare dopo 1 secondo */
}
.fade-in-element-4 {
    opacity: 0; /* Inizialmente invisibile */
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 0.8s; /* Appare dopo 1 secondo */
}
.fade-in-element-5 {
    opacity: 0; /* Inizialmente invisibile */
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 1.2s; /* Appare dopo 1 secondo */
}
.fade-in-element-6 {
    opacity: 0; /* Inizialmente invisibile */
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 1.4s; /* Appare dopo 1 secondo */
}
.fade-in-element-7 {
    opacity: 0; /* Inizialmente invisibile */
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 1.6s; /* Appare dopo 1 secondo */
}
.fade-in-element-8 {
    opacity: 0; /* Inizialmente invisibile */
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 1.8s; /* Appare dopo 1 secondo */
}
.fade-in-element-title {
    opacity: 0; /* Inizialmente invisibile */
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 0.1s; /* Appare dopo 1 secondo */
}

/* Per garantire la compatibilità con tutti i browser */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animazione 3 butttons end */