/* Estilo do formulário de confirmação público */
.wgl-confirmation {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wgl-confirmation h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.wgl-confirmation input[type="text"],
.wgl-confirmation input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.wgl-confirmation input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.wgl-confirmation input[type="submit"]:hover {
    background-color: #005177;
}

/* Estilo das mensagens de feedback */
.wgl-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
}

.wgl-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wgl-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wgl-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Seção de seleção de candidatos */
.wgl-candidates-section {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.wgl-candidates-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.wgl-candidates-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Opções de candidatos */
.wgl-candidate-option {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wgl-candidate-option:hover {
    border-color: #0073aa;
    background-color: #f8f9fa;
}

.wgl-candidate-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.wgl-candidate-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.wgl-candidate-option input[type="radio"]:checked + .wgl-candidate-name {
    color: #0073aa;
    font-weight: 600;
}

.wgl-candidate-name {
    font-size: 16px;
    color: #333;
    flex: 1;
}

/* Score de similaridade */
.wgl-similarity-score {
    font-size: 12px;
    color: #666;
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    font-weight: 500;
}

.wgl-candidate-option[data-similarity*="9"] .wgl-similarity-score,
.wgl-candidate-option[data-similarity*="8"] .wgl-similarity-score {
    background: #d4edda;
    color: #155724;
}

.wgl-candidate-option[data-similarity*="7"] .wgl-similarity-score,
.wgl-candidate-option[data-similarity*="6"] .wgl-similarity-score {
    background: #fff3cd;
    color: #856404;
}

.wgl-candidate-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Detalhes do candidato selecionado */
.wgl-candidate-details {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.wgl-candidate-details label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.wgl-candidate-details input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Ações dos candidatos */
.wgl-candidate-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.wgl-btn-primary {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wgl-btn-primary:hover {
    background-color: #005177;
}

.wgl-btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wgl-btn-secondary:hover {
    background-color: #545b62;
}

/* Formulário de confirmação normal */
.wgl-confirmation-form {
    max-width: 400px;
    margin: 0 auto;
}

.wgl-input-group {
    margin-bottom: 20px;
}

.wgl-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

/* Texto de ajuda */
.wgl-help-text {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wgl-help-text h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    color: #0073aa;
    font-size: 16px;
}

.wgl-help-text ul {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.wgl-help-text li {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.6;
    padding-left: 25px;
    position: relative;
}

.wgl-help-text li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00a32a;
    font-weight: bold;
    font-size: 14px;
}

.wgl-help-text li strong {
    color: #333;
    font-weight: 600;
}

/* Responsividade melhorada para dicas */
@media (max-width: 768px) {
    .wgl-help-text {
        padding: 15px;
        margin-top: 20px;
    }
    
    .wgl-help-text h4 {
        font-size: 15px;
    }
    
    .wgl-help-text li {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* ==================== ESTILOS DA PÁGINA ADMINISTRATIVA ==================== */

/* Container dos cards de estatísticas */
.wgl-stats-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Cards de estatísticas */
.wgl-stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 150px;
    flex: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wgl-stat-card h3 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.wgl-stat-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Cores específicas dos cards */
.wgl-stat-total h3 { color: #0073aa; }
.wgl-stat-confirmed h3 { color: #00a32a; }
.wgl-stat-pending h3 { color: #ff8c00; }
.wgl-stat-percentage h3 { color: #9b59b6; }

/* Candidatos com alta similaridade destacados */
.wgl-candidate-option[data-similarity*="0.9"],
.wgl-candidate-option[data-similarity*="0.8"] {
    border-color: #00a32a;
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffe6 100%);
}

.wgl-candidate-option[data-similarity*="0.7"],
.wgl-candidate-option[data-similarity*="0.6"] {
    border-color: #ff8c00;
    background: linear-gradient(135deg, #fff9f0 0%, #ffeaa7 100%);
}

/* Animação de seleção automática */
.wgl-auto-selected {
    animation: highlightBest 2s ease;
}

@keyframes highlightBest {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 4px 20px rgba(0, 163, 42, 0.3); }
    100% { transform: scale(1); }
}

/* Seções */
.wgl-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wgl-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Formulários inline */
.wgl-form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.wgl-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

/* Controles (filtros e ações) */
.wgl-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 20px;
}

.wgl-filters h2 {
    margin: 0 0 15px 0;
    color: #333;
}

/* Botões de filtro */
.wgl-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wgl-filter-buttons .button {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Ações (exportar, etc) */
.wgl-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Tabela de convidados */
.wgl-guests-table {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wgl-guests-table th {
    background: #f1f1f1;
    font-weight: 600;
    padding: 12px;
}

.wgl-guests-table td {
    padding: 12px;
    vertical-align: middle;
}

/* Headers ordenáveis */
.wgl-sortable a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: block;
    padding: 5px 0;
}

.wgl-sortable a:hover {
    color: #0073aa;
}

/* Colunas específicas */
.wgl-guest-name {
    font-weight: 500;
    color: #333;
}

.wgl-guest-email {
    color: #666;
    font-style: italic;
}

/* Status dos convidados */
.wgl-guest-status {
    text-align: center;
}

.wgl-status-confirmed {
    color: #00a32a;
    font-weight: 600;
    background: #d4edda;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    display: inline-block;
}

.wgl-status-pending {
    color: #ff8c00;
    font-weight: 600;
    background: #fff3cd;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    display: inline-block;
}

/* Ações da tabela */
.wgl-actions-cell {
    text-align: center;
    width: 100px;
}

/* Mensagem quando não há convidados */
.wgl-no-guests {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* Responsividade */
@media (max-width: 1200px) {
    .wgl-stats-container {
        justify-content: center;
    }
    
    .wgl-stat-card {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .wgl-stats-container {
        flex-direction: column;
    }
    
    .wgl-stat-card {
        min-width: 100%;
    }
    
    .wgl-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wgl-form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wgl-input {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .wgl-filter-buttons {
        justify-content: center;
    }
    
    .wgl-actions {
        justify-content: center;
    }
    
    /* Tabela responsiva */
    .wgl-guests-table {
        font-size: 14px;
    }
    
    .wgl-guests-table th,
    .wgl-guests-table td {
        padding: 8px;
    }
    
    /* Esconder coluna de email em telas pequenas */
    .wgl-guests-table th:nth-child(2),
    .wgl-guests-table td:nth-child(2) {
        display: none;
    }
}

@media (max-width: 480px) {
    .wgl-stat-card h3 {
        font-size: 2em;
    }
    
    .wgl-status-confirmed,
    .wgl-status-pending {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Animações suaves */
.wgl-stat-card,
.wgl-section,
.wgl-controls {
    transition: box-shadow 0.3s ease;
}

.wgl-stat-card:hover,
.wgl-section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.button {
    transition: all 0.3s ease;
}

/* Melhorias de acessibilidade */
.wgl-sortable a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}