/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f6fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 800px;
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #2f3640;
}

.panel {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
}

.panel h2 {
  color: #2f3640;
  margin-bottom: 10px;
  border-bottom: 2px solid #dcdde1;
  padding-bottom: 5px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: #4cd137;
  outline: none;
}

.row-controls {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  align-items: flex-end;
}

.bits-control, .mode-control {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bits-row input,
.bits-control input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

button {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  background-color: #4cd137;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

button.secondary {
  background-color: #00a8ff;
}

button:hover {
  background-color: #44bd32;
}

button.secondary:hover {
  background-color: #0097e6;
}

button:active {
  transform: scale(0.97);
}

.result {
  background-color: #f1f2f6;
  border-radius: 6px;
  padding: 15px;
  margin-top: 10px;
}

.output {
  background-color: #dcdde1;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  margin-top: 5px;
  color: #2f3640;
}

.footer {
  text-align: center;
  font-size: 14px;
  color: #718093;
  margin-top: 30px;
}

.footer {
  text-align: center;
  font-size: 14px;
  color: #718093;
  margin-top: 30px;
  padding: 15px 10px;
  background-color: #f0f0f0;
  border-top: 2px solid #dcdde1;
  border-radius: 0 0 12px 12px;
}

.footer .assinatura {
  font-weight: bold;
  font-size: 16px;
  color: #2a9d8f;
  margin-top: 8px;
}

.footer .assinatura a {
  text-decoration: none;
  color: #e76f51;
  transition: color 0.3s;
}

.footer .assinatura a:hover {
  color: #264653;
}
