@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f0f4f8;
    color: #333;
    padding: 40px 20px;
    padding-bottom: 100px; /* Espaço para a barra flutuante */
}

.setup-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.setup-header {
    background-color: #004d73; /* Azul Fundamental */
    color: white;
    padding: 30px 40px;
}

.setup-header h1 { font-size: 24px; margin-bottom: 10px; }
.setup-header p { opacity: 0.85; font-size: 15px; line-height: 1.5; }

/* Sistema de Abas */
.tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 18px 20px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover { color: #004d73; background: #f1f5f9; }
.tab-btn.active { color: #004d73; border-bottom-color: #004d73; background: #fff; }

/* Conteúdo do Formulário */
.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease;
}

.tab-content.active { display: block; }

.tab-content h3 {
    margin-bottom: 25px;
    color: #0f172a;
    font-size: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.help-text { color: #64748b; font-size: 14px; margin-bottom: 20px; }

/* Inputs e Grupos */
.form-group { margin-bottom: 25px; }
.form-group-row { display: flex; gap: 20px; }
.form-group-row .form-group { flex: 1; }

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

input[type="text"], input[type="url"], input[type="email"], textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #007ba7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 167, 0.15);
}

.mt-2 { margin-top: 15px; }

/* Barra Flutuante de Ações */
.floating-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px 40px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

#save-status {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
}

.action-buttons { display: flex; gap: 15px; }

button.btn-warning, button.btn-success {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

button.btn-warning { background: #f59e0b; color: white; }
button.btn-success { background: #10b981; color: white; }

button:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Responsividade */
@media (max-width: 768px) {
    .form-group-row { flex-direction: column; gap: 0; }
    .tabs { flex-wrap: wrap; }
    .floating-actions { flex-direction: column; gap: 15px; text-align: center; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}