/*
  Autor: Felipe Gustavo Andrzejewski
  Data: 06/03/2026
*/
:root {
  --bg-1: #f8fafc;
  --bg-2: #ffffff;
  --ink: #0f2740;
  --muted: #5e6d81;
  --brand: #ff8200;
  --brand-dark: #d96f00;
  --accent: #ffb86b;
  --card: #ffffff;
  --line: #e2e8f2;
  --danger: #c23d3d;
  --shadow: 0 10px 24px rgba(15, 39, 64, 0.06);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.brand-logo {
  width: 162px;
  height: auto;
  display: block;
}

.brand-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8798;
}

.hero {
  padding: 28px 30px;
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 1.04rem;
}

.col-5 {
  grid-column: span 5;
}

.col-7 {
  grid-column: span 7;
}

.field {
  margin-bottom: 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cfd8ea;
  background: #fff;
  font: inherit;
  padding: 10px 12px;
}

.readonly-value {
  border-radius: 10px;
  border: 1px solid #cfd8ea;
  background: #f8fafd;
  font: inherit;
  padding: 10px 12px;
  color: #2a3a52;
  font-weight: 600;
}

input:focus,
select:focus {
  outline: 2px solid rgba(255, 130, 0, 0.25);
  border-color: var(--brand);
}

.btn {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 120ms ease, opacity 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 130, 0, 0.26);
  padding-top: 11px;
  padding-bottom: 11px;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid #ffc58a;
  padding-top: 11px;
  padding-bottom: 11px;
}

.btn-muted {
  border: 1px solid #d8e0ee;
  color: #4d5871;
  background: #f7f9fd;
}

.actions-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.result {
  border: 1px dashed #ffd09d;
  border-radius: 12px;
  padding: 12px;
  background: #fff8ef;
  margin-top: 12px;
}

.result .value {
  font-size: 1.6rem;
  margin: 5px 0;
  font-weight: 800;
  color: #8f4800;
  letter-spacing: -0.02em;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.result-breakdown {
  margin-top: 10px;
  border-top: 1px solid #ffdcbc;
  padding-top: 8px;
  display: grid;
  gap: 6px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.result-label {
  color: #7a5c3a;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.result-text {
  color: #2a3a52;
  font-size: 0.9rem;
  text-align: right;
  font-weight: 600;
}

.result-row-highlight {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #ffd3a4;
}

.plan-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-height: 290px;
  overflow: auto;
}

.plan-item {
  border: 1px solid #e0e6f2;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fbfdff;
}

.plan-item:hover {
  border-color: #ffd4a8;
  background: #fffaf3;
}

.plan-info strong {
  display: block;
  font-size: 0.95rem;
}

.plan-info span {
  color: var(--muted);
  font-size: 0.86rem;
}

.plan-actions {
  display: flex;
  gap: 6px;
}

.btn-edit,
.btn-remove {
  width: auto;
  padding: 7px 10px;
  font-size: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.btn-edit {
  border: 1px solid #c9ddf8;
  color: #214a84;
  background: #f2f7ff;
}

.btn-remove {
  border: 1px solid #f1cccc;
  color: var(--danger);
  background: #fff5f5;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 12px;
  border: 1px dashed #d8e0ee;
  border-radius: 10px;
  background: #fcfdff;
  margin-top: 8px;
}

.hint {
  font-size: 0.82rem;
  color: #6a7486;
  margin-top: -3px;
}

.alert {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.alert.error {
  color: #7b2222;
  background: #fff3f3;
  border: 1px solid #f0cccc;
  display: block;
}

.alert.success {
  color: #145330;
  background: #f0fff4;
  border: 1px solid #cdebd8;
  display: block;
}

@media (max-width: 860px) {
  .col-5,
  .col-7 {
    grid-column: span 12;
  }

  .wrap {
    padding: 14px 12px 30px;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .brand-logo {
    width: 140px;
  }

  .brand-tag {
    font-size: 0.72rem;
  }
}
