/* ... (todo o CSS anterior permanece igual) ... */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");
body {
  font-family: "Poppins", sans-serif;
  background-color: #f0f2f5;
  color: #333;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-header,
.site-footer {
  text-align: center;
  color: #555;
  flex-shrink: 0;
}
.site-header h1 {
  font-weight: 600;
}
.site-footer {
  margin-top: auto;
  padding: 20px;
  font-size: 0.9em;
}
main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  flex-grow: 1;
  align-items: flex-start;
}
.main-content {
  flex: 2;
  min-width: 450px;
}
.sidebar {
  flex: 1;
  min-width: 350px;
}
.card {
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  box-sizing: border-box;
}
.card h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  font-weight: 600;
  color: #1a2c50;
}
.input-container {
  position: relative;
  display: flex;
  align-items: center;
}
.k-suffix {
  position: absolute;
  right: 15px;
  color: #888;
  font-weight: 600;
  pointer-events: none;
}
.input-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95em;
  color: #555;
}
input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}
button[type="submit"] {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #0056b3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
button[type="submit"]:hover {
  background-color: #003d82;
}
.action-buttons {
  display: none;
  gap: 10px;
  margin-top: 20px;
}
.action-buttons button {
  width: 100%;
  padding: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
#btn-save {
  background-color: #28a745;
  color: white;
  border: none;
}
#btn-save:hover {
  background-color: #218838;
}
#btn-new {
  background-color: #f0f2f5;
  color: #555;
  border: 1px solid #ddd;
}
#btn-new:hover {
  background-color: #e2e6ea;
}
.resultado-container {
  margin-top: 25px;
  line-height: 1.7;
  display: none;
}
.resultado-container p {
  margin: 5px 0;
  display: flex;
  justify-content: space-between;
}
.resultado-container span {
  font-weight: 600;
  color: #1a2c50;
}
.resultado-container .valor-final {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 1.2rem;
  font-weight: 600;
}
.empty-state {
  text-align: center;
  color: #888;
  padding: 20px 0;
}
.saved-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
}
.saved-item p {
  margin: 4px 0;
  font-size: 0.9em;
  display: flex;
  justify-content: space-between;
}
.saved-item p span {
  font-weight: 600;
}
.saved-item-header {
  font-size: 1.1em !important;
  font-weight: 600;
  color: #0056b3;
}
.saved-item-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}
.saved-item-remove:hover {
  color: #d9534f;
}

/* Nova classe para esconder/mostrar elementos */
.hidden {
  display: none !important;
}
