body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #f4f4f9;
  color: #333;
  height: 100vh;
  overflow: hidden; /* Evita scroll na página inteira */
}

.app-container {
  display: flex;
  height: 100%;
}

/* --- SIDEBAR --- */
.sidebar {
  width: 240px;
  background-color: #2c3e50;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #34495e;
  padding-bottom: 10px;
}

.nav-btn {
  background: none;
  border: none;
  color: #ecf0f1;
  width: 100%;
  text-align: left;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 6px;
  margin-bottom: 5px;
  transition: background 0.2s;
}

.nav-btn:hover {
  background-color: #34495e;
}

.nav-btn.active {
  background-color: #3498db; /* Azul destaque */
  font-weight: bold;
}

/* --- CONTEÚDO --- */
.content {
  flex: 1;
  padding: 40px;
  overflow-y: auto; /* Scroll apenas no conteúdo */
}

h1 {
  margin-top: 0;
  color: #2c3e50;
}
.desc {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

textarea {
  width: 100%;
  height: 200px;
  font-family: monospace;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  resize: vertical;
}

.controles {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

button {
  padding: 10px 20px;
  background-color: #27ae60; /* Verde */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
}

button:hover {
  background-color: #219150;
}

.box-resultado {
  background: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  white-space: pre-line;
  font-family: monospace;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Lógica de Abas */
.aba {
  display: none;
}
.aba.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- LAYOUT PARA DUAS COLUNAS (ABA ESTOQUE) --- */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.coluna h3 {
  margin-top: 0;
  font-size: 16px;
  color: #2c3e50;
  margin-bottom: 8px;
}

/* Responsivo para celular: uma coluna embaixo da outra */
@media (max-width: 768px) {
  .grid-2-col {
    grid-template-columns: 1fr;
  }
}
