/* Stili per il plugin Giocatori Confermati */

#giocatori-confermati-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.title-header {
    text-align: center;
    color: #2c5aa0;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    border: 2px solid #2c5aa0;
}

/* Sezione visualizzazione */
.visualizzazione-section {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.visualizzazione-section h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.listbox-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.listbox-item {
    flex: 1;
    min-width: 300px;
}

.listbox-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #495057;
}

.listbox-item select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background-color: white;
}

.listbox-item select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 5px rgba(44, 90, 160, 0.3);
}

/* Sezione selezione */
.selezione-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.selezione-section h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
}

/* Info conservati */
#info-conservati {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    color: #004085;
}

/* Tabs */
.giocatori-tabs {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
    gap: 2px;
}

.tab-button {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-bottom: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #e9ecef;
}

.tab-button.active {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h4 {
    color: #2c5aa0;
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* Tabelle giocatori */
.giocatori-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.giocatori-table thead {
    background: #2c5aa0;
    color: white;
}

.giocatori-table th,
.giocatori-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.giocatori-table th {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.giocatori-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.giocatori-table tbody tr:hover {
    background: #e3f2fd;
    cursor: pointer;
}

.giocatori-table td:first-child {
    width: 60px;
    text-align: center;
}

.giocatori-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2c5aa0;
}

/* Azioni form */
.form-actions {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

#salva-giocatori {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#salva-giocatori:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

#salva-giocatori:active {
    transform: translateY(0);
}

/* Messaggi */
#message-container {
    margin-top: 20px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    font-weight: bold;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    font-weight: bold;
    white-space: pre-line;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    #giocatori-confermati-container {
        padding: 10px;
    }
    
    .title-header {
        font-size: 1.8em;
        padding: 15px;
    }
    
    .listbox-container {
        flex-direction: column;
    }
    
    .giocatori-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-radius: 5px;
        margin-bottom: 2px;
    }
    
    .tab-button.active {
        border-radius: 5px;
    }
    
    .giocatori-table {
        font-size: 14px;
    }
    
    .giocatori-table th,
    .giocatori-table td {
        padding: 8px 10px;
    }
    
    #salva-giocatori {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .title-header {
        font-size: 1.5em;
    }
    
    .giocatori-table th,
    .giocatori-table td {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .selezione-section,
    .visualizzazione-section {
        padding: 15px;
    }
}