/**
 * Styles pour le tableau de bord front-end
 * 
 * @package Gestion_Candidats
 * @since 2.2.0
 */

/* Container principal */
.gelec-dashboard-front {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.gelec-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.gelec-dashboard-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.gelec-dashboard-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Onglets */
.gelec-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.gelec-tab {
    display: inline-block;
    padding: 12px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.gelec-tab:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    text-decoration: none;
}

.gelec-tab-active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Contenu de l'élection */
.gelec-election-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Ligne de tableaux */
.gelec-tables-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.gelec-tables-row:last-child {
    margin-bottom: 0;
}

/* Container de tableau */
.gelec-table-container {
    background: #fafbfc;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.gelec-table-container:last-child {
    margin-bottom: 0;
}

/* Tableau pleine largeur */
.gelec-table-full {
    width: 100%;
}

.gelec-table-container.gelec-empty {
    background: transparent;
    border: none;
}

.gelec-table-container h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* Tableau */
.gelec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gelec-table thead tr {
    background: #f0f2f5;
}

.gelec-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.gelec-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

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

.gelec-table .center {
    text-align: center;
}

.gelec-total-row {
    background: #f0f2f5 !important;
}

/* Badges de statut */
.gelec-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.gelec-status-green {
    background: #d4edda;
    color: #155724;
}

.gelec-status-blue {
    background: #d1ecf1;
    color: #0c5460;
}

.gelec-status-yellow {
    background: #fff3cd;
    color: #856404;
}

.gelec-status-red {
    background: #f8d7da;
    color: #721c24;
}

.gelec-status-gray {
    background: #e9ecef;
    color: #6c757d;
}

/* Couleurs de texte */
.gelec-text-green {
    color: #28a745;
    font-weight: bold;
}

.gelec-text-red {
    color: #dc3545;
    font-weight: bold;
}

.gelec-text-blue {
    color: #17a2b8;
    font-weight: bold;
}

.gelec-text-gray {
    color: #999;
}

/* Message de succès */
.gelec-success-message {
    margin-top: 15px;
    padding: 10px 15px;
    background: #d4edda;
    border-radius: 5px;
    color: #155724;
    font-size: 13px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .gelec-tables-row {
        grid-template-columns: 1fr;
    }
    
    .gelec-table-container.gelec-empty {
        display: none;
    }
    
    .gelec-tabs {
        justify-content: center;
    }
    
    .gelec-tab {
        flex: 1 1 auto;
        text-align: center;
        min-width: 150px;
    }
}

@media (max-width: 600px) {
    .gelec-dashboard-front {
        padding: 10px;
    }
    
    .gelec-dashboard-header {
        padding: 20px;
    }
    
    .gelec-dashboard-header h2 {
        font-size: 22px;
    }
    
    .gelec-election-content {
        padding: 15px;
    }
    
    .gelec-table-container {
        padding: 15px;
    }
    
    .gelec-table {
        font-size: 12px;
    }
    
    .gelec-table th,
    .gelec-table td {
        padding: 8px 5px;
    }
    
    .gelec-tab {
        padding: 10px 15px;
        font-size: 13px;
    }
}