.buttonRapido{
    appearance: none;
    background-color: #18baa8;
    border: 1px solid rgba(27, 31, 35, .15);
    border-radius: 6px;
    box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    padding: 6px 16px;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    white-space: nowrap;
}


.button-3:focus:not(:focus-visible):not(.focus-visible) {
    box-shadow: none;
    outline: none;
}

.button-3:hover {
    background-color: #2c974b;
}

.button-3:focus {
    box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
    outline: none;
}

.button-3:disabled {
    background-color: #94d3a2;
    border-color: rgba(27, 31, 35, .1);
    color: rgba(255, 255, 255, .8);
    cursor: default;
}

.button-3:active {
    background-color: #298e46;
    box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}

tml, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.custom-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: transparent;
}

.last-div {
    margin-bottom: 20px;
}

.sidebar-menu .treeview-menu > li > a.active-sub {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
}
.sidebar-menu .treeview-menu > li > a.active-sub {
    color: #000;
    border-left: 1px solid #000;
}
.sidebar-menu .treeview-menu > li > a.active-sub:hover {
    color: #000;
    border-left: 1px solid #000;
}

/* 
    Utenti.jsp
*/

.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}





.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.filter-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.action-btn {
    transition: all 0.2s;
}
.action-btn:hover {
    transform: scale(1.1);
}

/* Task Info Cards */
.task-info-card {
    height: 100%;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 0.5rem;
    overflow: hidden;
    border: none;

}

.task-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.task-info-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-style: normal;
}

.task-info-item {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
}



.task-info-label {
    font-weight: 500;
    color: #6c757d;
    width: 40%;
    font-size: 0.9rem;
    font-style: normal;
}


.task-info-value {
    width: 60%;
    font-weight: 500;
}

.section-divider {
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    margin: 1.25rem 0;
}

/* Task Status Badge */
.task-status-badge {
    font-size: 15px !important;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    font-style: normal;
}

/* Template Mapping Table */
.template-mapping-table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.template-mapping-table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flag-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-style: normal;
}

/* Card styling */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 1.25rem;
    font-style: normal;
}


/* Footer styling */
.footer-container {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.logo-container {
    background-color: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .task-info-label, .task-info-value {
        width: 100%;
    }

    .task-info-value {
        margin-top: 0.25rem;
        margin-bottom: 0.75rem;
    }
}


/* Stili personalizzati per il dashboard migliorato */
.dashboard-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    border-radius: 12px;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #56ab2f 0%, #56ab2f 100%);
}
.bg-success-gradient {
    background: linear-gradient(135deg, #56ab2f 0%, #56ab2f 100%);
}
.bg-warning-gradient {
    background: linear-gradient(135deg, #56ab2f 0%, #56ab2f 100%);
}
.bg-info-gradient {
    background: linear-gradient(135deg, #56ab2f 0%, #56ab2f 100%);
}
.bg-danger-gradient {
    background: linear-gradient(135deg, #56ab2f 0%, #56ab2f 100%);
}
.bg-secondary-gradient {
    background: linear-gradient(135deg, #56ab2f 0%, #56ab2f 100%);
}

.quick-action-btn {
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 2px solid transparent;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


/* Details Missions */

.timeline-with-icons {
    position: relative;
    list-style: none;
    padding-left: 0;
}

.timeline-with-icons .timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-with-icons .timeline-item:not(:last-child) {
    padding-bottom: 1.5rem;
}

.timeline-with-icons .timeline-item:not(:last-child):before {
    content: "";
    position: absolute;
    left: 0.85rem;
    top: 1.8rem;
    height: 100%;
    width: 1px;
    background-color: #e9ecef;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}


/* Mission Progress */

.info-cardMission {
    display: flex;
    align-items: center;
    padding: 0 0.5rem 0.5rem 0;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.info-cardMission:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-card-contentMission {
    flex: 1;
}


.info-card-iconMission {
    font-size: 1.5rem;
    color: #114eaa;
    margin-right: 1rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.info-card-labelMission {
    font-size: 0.900rem;
    color: #6c757d;
    margin-bottom: 0.15rem;
}


.info-card-valueMission {
    font-weight: 600;
    color: #212529;
}

.current-status-boxMission {
    background: linear-gradient(135deg, #eef2f3 0%, #f2f3f5 100%);
    color: rgb(56, 54, 54);
    padding: 1rem 2rem;
    border-radius: 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.current-status-nodeMission {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.current-status-descriptionMission {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.current-status-passengerMission {
    font-size: 0.875rem;
    opacity: 0.8;
}

.task-detail-sectionMission {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
}

.task-detail-headingMission {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

.task-detail-gridMission {
    display: grid;
    gap: 1rem;
}

.task-detail-itemMission {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.task-detail-itemMission:last-child {
    border-bottom: none;
}

.task-detail-labelMission {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.task-detail-valueMission {
    font-weight: 600;
    color: #212529;
}

.mission-logsMission {
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.log-entryMission {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    border-left: 4px solid #0d6efd;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.log-timestampMission {
    color: #6c757d;
    font-weight: bold;
}

.list-group-item-successMission {
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
}

.dashboard-cardMission {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dashboard-cardMission:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-headerMission {
    background: #f8f9fa;
    border-radius: 1rem 1rem 0 0 !important;
    border: none;
    padding: 1rem 1.5rem;
}

.card-header h5,
.card-header h6 {
    color: #434547;
    margin: 0;
}

.header-actions-card-Mission {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-titleMission {
    margin-bottom: 1rem;
}

.status-indicatorMission {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.activeMission {
    background-color: #28a745;
    animation: pulse 2s infinite;
}

.status-indicator.pendingMission {
    background-color: #ffc107;
}

.status-indicator.inactiveMission {
    background-color: #6c757d;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.equal-heightMission {
    display: flex;
    flex-direction: column;
}

.equal-height .card-bodyMission {
    flex: 1;
}
.auth-logo {
    display: flex;
    justify-content: center;
}
.auth-logo img {
    width: 55%;
}

/* footer */
.footer-logo-intererreg {
    width: 90%;
    height: 90%;
    object-fit: contain;
}
.footer-loghi-finanziamenti {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Stili per migliorare l'aspetto della tabella */
.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.action-btn {
    transition: all 0.2s ease;
    border-radius: 0.375rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stili per i badge di stato */
.badge {
    font-size: 0.75em;
    padding: 0.375rem 0.75rem;
}

/* Stili per la paginazione */



/* Stili per le card */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Stili per i form */
.form-select:focus,
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Stili responsivi */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group .btn {
        padding: 0.25rem 0.5rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Animazioni per il caricamento */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}
