/* ==================== Estilos Globais ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #00329c 0%, #290f06 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.title {
  text-align: center;
  color: white;
  margin-bottom: 40px;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ================= Estilos do Formulário ================= */
.form-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

label[for="valor"] {
  font-weight: normal;
}

input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: #667eea;
}

.valor-input {
  border: 2px solid #000;
  padding: 10px;
  border-radius: 8px;
}

/* =================== Estilos dos Botões ================== */
.btn {
  padding: 15px 40px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #667eea;
  color: white;
  width: 100%;
  margin-top: 10px;
}

.btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #48bb78;
  color: white;
  display: block;
  margin: 30px auto 0;
  padding: 12px 30px;
  border-radius: 8px;
}

.btn-secondary:hover {
  background: #38a169;
}

/* =========== Estilos de Personalização de Data =========== */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.checkbox-group input#personalizarData {
  width: auto;
  margin-right: 5px;
}

.checkbox-group #labelDataPersonalizada {
  display: inline-block;
  margin: 0 5px 0 15px;
}

input#dataPersonalizada {
  width: 150px;
  padding: 10px;
  margin-bottom: 0;
}

/* =================== Estilos do Recibo =================== */
.recibo-container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.recibo-layout {
  border: 1px solid #000;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  max-width: 595px;
  margin: auto;
}

.recibo-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.recibo-logo-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logo {
  height: 55px;
  width: 125px;
  margin-bottom: -5px;
}

.empresa-info {
  font-size: 14px;
  line-height: 1;
}

.recibo-valor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 250px;
  height: auto;
}

.caixa-recibo {
  border: 1px solid #000;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  width: 100%;
  font-size: 16px;
}

.caixa-valor {
  border: 1px solid #000;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-weight: normal;
  width: 100%;
  font-size: 12px;
}

.caixa-valor span {
  font-weight: bold;
  font-size: 18px;
}

/* ================== Detalhes do Recibo =================== */
.recibo-detalhes-com-borda {
  border: 1px solid #000;
  padding: 15px;
  margin-top: 20px;
  border-radius: 6px;
}

.recibo-dados {
  margin-bottom: 10px;
}

.recibo-dados p {
  margin-bottom: 20px;
}

.destaque {
  font-weight: bold;
  text-transform: uppercase;
}

/* ================= QR Code e Assinatura ================== */
.recibo-qrcode-assinatura {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.qrcode img {
  width: 130px;
  height: 130px;
}

.pix-info {
  font-size: 12px;
  margin-top: -5px;
}

.assinatura-box {
  text-align: center;
}

.assinatura-img {
  height: 30px;
  margin-bottom: -8px;
}

.assinatura-nome {
  border-top: 1px solid #000;
  padding-top: 4px;
  font-size: 13px;
  font-weight: bold;
}

/* ==================== Data do Recibo ===================== */
.recibo-data {
  text-align: right;
  font-size: 12px;
  margin-top: 0px;
}

/* ====================== Utilitários ====================== */
.hidden {
  display: none;
}

/* ================= Estilos de Impressão ================== */
@media print {
  body * {
    visibility: hidden;
  }

  .recibo-container,
  .recibo-container * {
    visibility: visible;
  }

  .recibo-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    padding: 0;
  }

  .btn-secondary {
    display: none;
  }
}
