
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.controls {
    margin-top: 15px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: linear-gradient(135deg, #e4ebf5, #d2d9e5);
  color: #1a1a1a;
  padding: 30px;
}

.app {
  max-width: 1200px;
  margin: auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.12);
  animation: fadeIn 0.3s ease;
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #202634;
}

.muted {
  font-size: 14px;
  color: #6c7a92;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

label {
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  display: block;
  color: #334155;
}

input {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f7f9fc;
  font-size: 15px;
  transition: 0.2s;
}

input:focus {
  border-color: #2563eb;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
  padding: 12px 18px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: #1d4fd8;
}

.green {
  background: #0ea96f;
}

.green:hover {
  background: #0c8a5a;
}

.red {
  background: #d43a3a;
}

.red:hover {
  background: #b92f2f;
}

.small {
  padding: 8px 12px;
  font-size: 13px;
  margin-top: 10px;
}


.items {
  background: #f1f5f9;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #d0d7e6;
  margin-top: 10px;
}

.item-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.item-delete {
  background: #ef4444;
  border: none;
  border-radius: 8px;
  padding: 10px;
  color: white;
  cursor: pointer;
}

.tax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 10px;
}


.invoice {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.invoice h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}


.invoice h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 17px;
    color: #444;
}

/* Texto */
.invoice p {
    margin: 5px 0;
    font-size: 15px;
    color: #333;
}

/* Lista dos itens */
.invoice ul {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.invoice ul li {
    margin: 4px 0;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.invoice ul li:last-child {
    border-bottom: none;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
