/* LFP Inscriptions POC - Styles */

/* Container principal */
.lfp-inscriptions-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Header */
.lfp-inscriptions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.lfp-inscriptions-header h2 {
    margin: 0;
    color: #0073aa;
}

/* Boutons */
.lfp-export-csv-btn,
.lfp-delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lfp-export-csv-btn {
    background: #28a745;
    color: white;
}

.lfp-export-csv-btn:hover {
    background: #218838;
}

.lfp-delete-btn {
    background: #dc3545;
    color: white;
    font-size: 12px;
    padding: 6px 12px;
}

.lfp-delete-btn:hover {
    background: #c82333;
}

/* Filtres */
.lfp-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lfp-search-input,
.lfp-filter-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.lfp-search-input {
    flex: 1;
    min-width: 250px;
}

.lfp-filter-select {
    min-width: 200px;
}

/* Table */
.lfp-inscriptions-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.lfp-inscriptions-table thead {
    background: #f8f9fa;
}

.lfp-inscriptions-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
    cursor: pointer;
    user-select: none;
}

.lfp-inscriptions-table th:hover {
    background: #e9ecef;
}

.lfp-inscriptions-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.lfp-inscriptions-table tbody tr:hover {
    background: #f8f9fa;
}

.lfp-inscriptions-table tbody tr.hidden {
    display: none;
}

/* Footer */
.lfp-inscriptions-footer {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    color: #666;
}

/* Message sans inscriptions */
.lfp-no-inscriptions {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Liste de joueurs (pour CF7) */
.lfp-joueurs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.lfp-joueur-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.lfp-joueur-checkbox:hover {
    background: #e9ecef;
}

.lfp-joueur-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.lfp-joueurs-select {
    width: 100%;
    min-height: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .lfp-inscriptions-container {
        padding: 15px;
    }
    
    .lfp-inscriptions-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .lfp-filters {
        flex-direction: column;
    }
    
    .lfp-search-input,
    .lfp-filter-select {
        width: 100%;
    }
    
    .lfp-inscriptions-table {
        font-size: 12px;
    }
    
    .lfp-inscriptions-table th,
    .lfp-inscriptions-table td {
        padding: 8px 6px;
    }
}

/* Loading spinner */
.lfp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: lfp-spin 1s ease-in-out infinite;
}

@keyframes lfp-spin {
    to { transform: rotate(360deg); }
}



