﻿.min-w-200 {
    min-width: 200px;
}

.gap-3 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Paginazione Soft Style */
.pagination-soft .page-link {
    border: none;
    background: #fff;
    color: #495057;
    margin: 0 3px;
    border-radius: 8px !important;
    padding: 8px 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.pagination-soft .page-item.active .page-link {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.pagination-soft .page-link:hover:not(.active) {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Card adjustments */
.person-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}

.card-header-custom {
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.card-body-custom {
    padding: 18px;
    flex-grow: 1;
}

    .card-body-custom h4 {
        margin-bottom: 12px;
        font-size: 20px;
        font-weight: 600;
    }

.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

    .status-badge.success {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .status-badge.danger {
        background: #ffebee;
        color: #c62828;
    }

.info-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.service-list {
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.badge-service {
    background: #f1f3f5;
    color: #495057;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-soft {
    width: 100%;
    text-align: left;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    background: #fff;
    border: 1px solid #e9ecef;
    color: #495057;
    transition: all .15s ease;
}

.btn-accredita {
    border-left: 4px solid #74c69d;
}

    .btn-accredita:hover {
        background: #f1fbf6;
        border-color: #74c69d;
    }

.btn-accredita-stampa {
    border-left: 4px solid #74c0fc;
}

    .btn-accredita-stampa:hover {
        background: #f1f8ff;
        border-color: #74c0fc;
    }

.btn-modifica {
    border-left: 4px solid #ffd166;
    text-align: center;
}

.btn-stampa {
    border-left: 4px solid #adb5bd;
    text-align: left;
}

.role-status-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.passaggio-data {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Stile Dropdown Personalizzato */
.custom-sort .btn-soft {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 500;
    min-width: 200px;
    border-left: 1px solid #e9ecef; /* Togliamo il bordo colorato per il filtro */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-sort .dropdown-menu {
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px !important;
}

.custom-sort .dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s;
}

    .custom-sort .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #3498db;
    }

    .custom-sort .dropdown-item.active {
        background-color: #e3f2fd;
        color: #0d6efd;
    }

#searchBox:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25 margin-bottom: rgba(52, 152, 219, 0.15);
    outline: none;
}

/* Rende l'input più armonioso con il pulsante dropdown */
#searchBox {
    border-radius: 12px;
    padding: 10px 15px;
    transition: all 0.2s;
}

/* Toolbar più sottile */
.sticky-toolbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eee;
    padding: 2px 0; /* Padding verticale ridotto al minimo */
}

/* Wrapper Ricerca compatto */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.85rem;
}

.search-wrapper .form-control-sm {
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 8px;
    height: 34px; /* Altezza ridotta */
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    cursor: pointer;
    display: none;
    font-size: 0.9rem;
}

/* Pulsante Dropdown compatto */
.custom-sort .btn-sm {
    height: 34px;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0 15px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
}

.custom-sort .dropdown-menu {
    font-size: 0.85rem;
}

/* Correzione margin per il contenuto */
.content-wrapper {
    margin-top: 15px;
}
