/* static/css/carica_giocatori.css */

.search-bar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}
.table th {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px;
}
.table th:hover {
    background-color: #e9ecef;
}
.table th .sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.5;
}
.table th.active .sort-icon {
    opacity: 1;
    color: #0d6efd;
}
.table th .sort-icon i {
    margin-left: 2px;
}
.no-results {
    padding: 30px;
    text-align: center;
    color: #6c757d;
}
.badge-count {
    font-size: 14px;
    background: #0d6efd;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
}
.highlight {
    background-color: #fff3cd !important;
}
.btn-aggiungi {
    white-space: nowrap;
}
.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}
.btn-esporta {
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-bar .row {
        gap: 8px;
    }
    .search-bar .col-md-4,
    .search-bar .col-md-3,
    .search-bar .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .card-header {
        flex-direction: column;
        gap: 8px;
        align-items: stretch !important;
    }
    .card-header .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
    .card-header .btn {
        font-size: 12px;
        padding: 4px 8px;
    }
    .table-responsive {
        max-height: 400px;
    }
    .table th, .table td {
        font-size: 11px;
        padding: 4px 6px;
    }
    .table .badge {
        font-size: 9px !important;
        padding: 1px 5px !important;
    }
    .d-flex.gap-2 {
        flex-wrap: wrap;
        justify-content: center;
    }
    .d-flex.gap-2 .flex-grow-1 {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .table {
        font-size: 10px;
    }
    .table th, .table td {
        padding: 2px 4px;
        white-space: nowrap;
    }
    .table .badge {
        font-size: 8px !important;
        padding: 1px 4px !important;
    }
    .modal-dialog {
        margin: 10px;
    }
    .modal-body {
        padding: 12px;
    }
    .modal-header .modal-title {
        font-size: 16px;
    }
    .btn {
        font-size: 12px;
        padding: 4px 10px;
    }
}