:root {
    --dark: #131c26;
    --dark-2: #1b2733;
    --teal: #13544a;
    --teal-light: #1a7a6a;
    --orange: #e67e22;
    --orange-dark: #c96a15;
    --border: #e3e6ea;
    --text: #1c2733;
    --muted: #798392;
    --bg: #f4f6f8;
    --green: #1e9e6b;
    --red: #c1442a;
    --amber: #c98a1a;
}

.vcpc-form-wrap, .vcpc-app, .vcpc-app * { box-sizing: border-box; }

.vcpc-form-wrap { max-width: 460px; margin: 40px auto; background: #fff; border-radius: 10px; padding: 32px 36px; box-shadow: 0 1px 4px rgba(0,0,0,.08); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); }
.vcpc-form-wrap h1 { font-size: 22px; margin: 0 0 18px; color: var(--dark); }
.vcpc-form-wrap p { margin-bottom: 14px; }
.vcpc-form-wrap label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.vcpc-form-wrap input[type="text"], .vcpc-form-wrap input[type="email"], .vcpc-form-wrap input[type="password"], .vcpc-form-wrap input[type="url"], .vcpc-form-wrap select, .vcpc-form-wrap textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; color: var(--text);
}
.vcpc-form-wrap a { color: var(--teal-light); text-decoration: none; }
.vcpc-form-wrap a:hover { text-decoration: underline; }

.vcpc-btn { display: inline-block; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--border); background: #fff; color: var(--teal); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; }
.vcpc-btn:hover { background: #f4f6f8; }
.vcpc-btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); width: 100%; padding: 11px 16px; font-size: 14px; }
.vcpc-btn-primary:hover { background: var(--orange-dark); color: #fff; }

.vcpc-hint { font-size: 12px; color: var(--muted); }
.vcpc-msg { font-size: 12px; margin-left: 8px; }
.vcpc-msg.ok { color: var(--green); }
.vcpc-msg.erro { color: var(--red); }

.vcpc-alerta { border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.vcpc-alerta-erro { background: #fdecea; color: var(--red); }
.vcpc-alerta-ok { background: #e4f6ee; color: var(--green); }
.vcpc-alerta ul { margin: 0; padding-left: 18px; }

.vcpc-linha-dupla { display: flex; gap: 14px; }
.vcpc-linha-dupla p { flex: 1; }
.vcpc-linha-flex { display: flex; gap: 8px; align-items: center; }
.vcpc-linha-flex input { flex: 1; }

.vcpc-rede-linha { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.vcpc-rede-linha select { max-width: 150px; }
.vcpc-rede-linha input { flex: 1; }
.vcpc-rede-remover { width: 30px; height: 38px; border: 1px solid var(--border); background: #fff; border-radius: 6px; cursor: pointer; color: var(--red); font-size: 16px; }
.vcpc-rede-remover:hover { background: #fdecea; }

.vcpc-sep-linha { border-top: 1px solid var(--border); margin: 18px 0; }

/* ------------- Shell do painel (sidebar + topo) ------------- */
.vcpc-app { display: flex; min-height: 70vh; background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); margin: -8px 0; }
.vcpc-sidebar { width: 220px; background: var(--dark); color: #d6dbe1; flex-shrink: 0; padding: 20px 0; }
.vcpc-logo { font-weight: 800; font-size: 17px; color: #fff; padding: 0 20px 20px; letter-spacing: .02em; }
.vcpc-logo span { color: var(--orange); }
.vcpc-sidebar nav { display: flex; flex-direction: column; }
.vcpc-sidebar nav a { color: #b7c0ca; text-decoration: none; padding: 11px 20px; font-size: 13.5px; }
.vcpc-sidebar nav a:hover { background: var(--dark-2); color: #fff; }
.vcpc-sidebar nav a.on { background: var(--dark-2); color: #fff; border-left: 3px solid var(--orange); }
.vcpc-sep { height: 1px; background: #2a3846; margin: 10px 20px; }

.vcpc-main { flex: 1; min-width: 0; }
.vcpc-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.vcpc-btn-proposta { background: var(--green); color: #fff; font-weight: 700; font-size: 12.5px; padding: 9px 16px; border-radius: 6px; text-decoration: none; }
.vcpc-icon-btn { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--teal); cursor: pointer; text-decoration: none; }
.vcpc-quem { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); line-height: 1.3; }
.vcpc-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }

.vcpc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; padding: 24px; }
.vcpc-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.07); padding: 18px 20px; scroll-margin-top: 90px; }
.vcpc-card h3 { margin: 0 0 12px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.vcpc-card h3 a { font-size: 12px; font-weight: 600; color: var(--orange); text-decoration: none; }

.vcpc-linha-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; flex-wrap: nowrap; }
.vcpc-linha-item:last-child { border-bottom: none; }

.vcpc-campanha-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.vcpc-campanha-row:last-child { border-bottom: none; }
.vcpc-periodo { font-size: 11.5px; color: var(--muted); }

.vcpc-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.vcpc-badge-respondido { background: #e4f6ee; color: var(--green); }
.vcpc-badge-atendido { background: #e6effd; color: #1a56c4; }
.vcpc-badge-aguardando { background: #fdf3e3; color: var(--amber); }

.vcpc-pico { width: 19px; height: 19px; display: inline-flex; border-radius: 5px; overflow: hidden; margin-left: 4px; }
.vcpc-pico svg { width: 100%; height: 100%; }
.vcpc-pico-group { display: inline-flex; align-items: center; }

.vcpc-pdf-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; }
.vcpc-pdf-btn:hover { background: #fdecea; border-color: #f3c1b8; }

.vcpc-admin-wrap { padding: 24px; max-width: 900px; }
.vcpc-admin-wrap h1 { font-size: 20px; margin-bottom: 16px; }
.vcpc-admin-wrap .vcpc-card { max-width: 640px; }
.vcpc-admin-wrap .vcpc-card p { margin-bottom: 14px; }
.vcpc-admin-wrap .vcpc-card label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.vcpc-admin-wrap .vcpc-card input { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }

.vcpc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.vcpc-table th, .vcpc-table td { padding: 10px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
.vcpc-table th { background: #f8f9fb; font-weight: 700; color: var(--muted); font-size: 11.5px; text-transform: uppercase; }

@media (max-width: 780px) {
    .vcpc-app { flex-direction: column; }
    .vcpc-sidebar { width: 100%; padding: 10px 0; }
    .vcpc-sidebar nav { flex-direction: row; overflow-x: auto; }
}
