body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f4f7f6;
  color: #333;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: #1e293b;
  margin-bottom: 5px;
}

.subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 30px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

h2 {
  margin-top: 0;
  color: #0f172a;
  font-size: 1.25rem;
}

textarea {
  width: 100%;
  height: 100px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
  resize: vertical;
}

button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #1d4ed8;
}

.export-btn {
  background-color: #059669;
}

.export-btn:hover {
  background-color: #047857;
}

.result-box {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  background-color: #f1f5f9;
  font-weight: 600;
}

.hidden {
  display: none;
}

.status-message {
  margin-top: 10px;
  font-weight: 500;
  color: #475569;
}

.dashboard-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.chart-container {
  width: 100%;
  max-width: 320px;
}

.table-wrapper {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th, td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background-color: #f8fafc;
  position: sticky;
  top: 0;
}

.positive-row {
  color: #166534;
  font-weight: 600;
}

.negative-row {
  color: #991b1b;
  font-weight: 600;
}