@import "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap";

* {
  box-sizing: border-box;
}

body {
  font-family: Montserrat, Arial, sans-serif;
  background-color: #f0f2f5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
}

.page {
  width: 100%;
  max-width: 760px;
  min-height: 520px;
  margin: 20px;
  background-color: #fff;
  box-shadow: 0 4px 12px #0000001a;
  border-radius: 8px;
  overflow: hidden;
  padding: 32px;
}

.sv-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4e7ee;
}

.sv-brand {
  text-align: center;
}

.sv-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: #2e7d32;
}

.sv-logo-image {
  width: 190px;
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto 6px;
}

.sv-subtitle {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.hint {
  margin: 0 0 18px;
  text-align: center;
  color: #555;
  font-size: 14px;
}

.card {
  border: 1px solid #e4e7ee;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
}

.field {
  display: block;
  margin-bottom: 15px;
}

.field > span {
  font-size: 14px;
  color: #333;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 5px;
  background: #fff;
  color: #111;
}

input:focus {
  border-color: #4caf50;
  outline: none;
  box-shadow: 0 0 0 1px #4caf50;
}

.actions {
  margin-top: 20px;
}

.btn {
  width: 100%;
  padding: 10px;
  background-color: #4caf50;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #45a049;
}

.error {
  color: #d32f2f;
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}

.message {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  display: none;
}

.message.success {
  color: #2e7d32;
}

.message.error {
  color: #d32f2f;
}

.loading {
  color: #666;
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}

.results {
  margin-top: 14px;
}

.results h2 {
  margin: 0 0 12px;
  font-size: 19px;
}

.captcha-box {
  margin-top: 14px;
}

.captcha-box h2 {
  margin: 0 0 10px;
  font-size: 18px;
  text-align: center;
}

.captcha-question {
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px;
}

.results-list {
  display: grid;
  gap: 12px;
}

.boleto {
  border: 1px solid #e2e6ef;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.boleto-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.boleto-title {
  font-weight: 700;
}

.meta {
  color: #5f6675;
  font-size: 13px;
  margin-top: 4px;
}

.linha-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.linha {
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f8f9fb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 13px;
  color: #222;
  word-break: break-word;
}

.linha-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.copy-btn {
  border: none;
  background-color: transparent;
  color: inherit;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.05s ease;
}

.copy-btn:hover {
  background-color: #4caf501f;
}

.copy-btn.ok {
  background-color: #2e7d321f;
}

.view-btn {
  border: none;
  background-color: transparent;
  color: inherit;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.05s ease;
}

.view-btn:hover {
  background-color: #4caf501f;
}

.copy-btn svg,
.view-btn svg {
  width: 18px;
  height: 18px;
  fill: #4caf50;
}

.copy-btn.ok svg {
  fill: #2e7d32;
}

@media (max-width: 768px) {
  .page {
    margin: 10px;
    width: calc(100% - 20px);
    max-width: none;
    min-height: auto;
    padding: 20px;
  }

  .linha-box {
    align-items: stretch;
  }
}

