/* ============================================
   CONFIGURAÇÕES DO WORDPRESS - ESTILOS
   ============================================ */

.configuracoes-management {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.configuracoes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.configuracoes-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.configuracoes-header-actions {
    display: flex;
    gap: 1rem;
}

.btn-refresh-config,
.btn-save-all-config {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-save-all-config {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.btn-refresh-config:hover,
.btn-save-all-config:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Tabs de Configurações */
.configuracoes-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.config-tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.config-tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.config-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Conteúdo das Tabs */
.config-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.config-tab-content.active {
    display: block;
}

.config-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.config-section h4 {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-label-small {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.form-input,
.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-select option {
    background: #2c3e50;
    color: #ffffff;
    padding: 0.5rem;
}

.form-select option:hover {
    background: #34495e;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Grupos de Checkbox e Radio */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0.25rem 0;
}

.checkbox-custom,
.radio-custom {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.radio-custom {
    border-radius: 50%;
    width: 22px;
    height: 22px;
}

input[type="checkbox"]:checked + .checkbox-custom,
input[type="radio"]:checked + .radio-custom {
    background: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

/* Labels dos itens selecionados */
input[type="checkbox"]:checked + .checkbox-custom + span,
input[type="radio"]:checked + .radio-custom + span {
    color: #00ff88;
    font-weight: 600;
}

/* Garantir que radio buttons sejam perfeitamente redondos */
.radio-custom {
    border-radius: 50% !important;
    aspect-ratio: 1/1;
    min-width: 22px;
    min-height: 22px;
}

input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

input[type="checkbox"],
input[type="radio"] {
    display: none;
}

/* Layouts de Formulário */
.form-row {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-with-suffix {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-suffix {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Status de Salvamento */
.config-save-status {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.save-status-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

/* Código para exibir estruturas de permalink */
code {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Responsividade */
@media (max-width: 768px) {
    .configuracoes-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .configuracoes-header-actions {
        justify-content: center;
    }
    
    .configuracoes-tabs {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .config-save-status {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem 0;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Melhorias visuais para campos específicos */
.form-input[type="email"] {
    font-family: monospace;
}

.form-input[type="number"] {
    text-align: right;
    max-width: 120px;
}

/* Hover effects */
.checkbox-label:hover .checkbox-custom,
.radio-label:hover .radio-custom {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.checkbox-label:hover,
.radio-label:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Efeito especial para label do item selecionado */
input[type="radio"]:checked + .radio-custom + span {
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.form-input:hover,
.form-select:hover {
    background: rgba(255, 255, 255, 0.12);
}
