/* ==========================================================================
   ZURCHE - SISTEMA CENTRAL DE ESTILOS (Design System)
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

body { background-color: #0f172a; color: #f8fafc; min-height: 100vh; }

/* -- Layout Geral e Navbar -- */
.navbar { background-color: #1e293b; border-bottom: 1px solid #334155; padding: 16px 40px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo h1 { font-size: 24px; font-weight: 800; color: #f8fafc; }
.nav-logo p { color: #38bdf8; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.btn-voltar { color: #94a3b8; text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; transition: color 0.2s; }
.btn-voltar:hover { color: #38bdf8; }

.main-container { flex: 1; max-width: 800px; width: 100%; margin: 0 auto; padding: 40px 20px; }
.header-title { margin-bottom: 32px; }
.header-title h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.header-title p { color: #94a3b8; font-size: 15px; }

/* -- Formulários e Seções -- */
.profile-form { background-color: #1e293b; border: 1px solid #334155; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.form-section-title { font-size: 15px; font-weight: 700; color: #38bdf8; border-bottom: 1px solid #334155; padding-bottom: 8px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }

.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: 13px; font-weight: 600; color: #94a3b8; }
.input-group input, .input-group select { background-color: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 12px 16px; color: #f8fafc; font-size: 14px; outline: none; transition: all 0.2s; }
.input-group input:focus, .input-group select:focus { border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2); }
.input-group input:disabled { background-color: #1e293b; color: #64748b; cursor: not-allowed; }

.btn-salvar { background-color: #10b981; color: #ffffff; border: none; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; transition: 0.2s; }
.btn-salvar:hover { background-color: #059669; }

/* -- Tabelas e Cards (Extras) -- */
.panel-card { background-color: #1e293b; border: 1px solid #334155; border-radius: 20px; padding: 32px; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 16px; color: #94a3b8; border-bottom: 1px solid #334155; }
td { padding: 16px; color: #cbd5e1; border-bottom: 1px solid #334155; }

/* -- Modais -- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box { background-color: #1e293b; border: 1px solid #334155; border-radius: 20px; padding: 32px; width: 90%; max-width: 400px; text-align: center; }
.modal-icon-wrapper { width: 64px; height: 64px; background: rgba(16, 185, 129, 0.1); border: 2px solid #10b981; color: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.btn-modal-fechar { background-color: #38bdf8; color: #0f172a; border: none; border-radius: 10px; padding: 12px 24px; font-weight: 700; cursor: pointer; width: 100%; }

.modal-confirm-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.modal-confirm-box { background: #1e293b; padding: 25px; border-radius: 15px; width: 400px; border: 1px solid #334155; text-align: center; }
.btn-confirm { padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; margin: 5px; }

/* -- Ajuste para os botões do Modal de Confirmação -- */
.btn-confirm { 
    padding: 10px 20px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    margin: 5px; 
    transition: 0.2s;
}
.btn-confirm:hover { 
    filter: brightness(1.2); 
}

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .full-width { grid-column: span 1; } }