.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}
.main-container main .page-title {
  font-size: 28px;
  margin-bottom: 4px;
}
.main-container .page-sub {
  color: #475569;
  margin-bottom: 16px;
}

.main-container .panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 4px 5px 10px 1px rgba(168, 168, 168, 0.49);
  -webkit-box-shadow: 4px 5px 10px 1px rgba(168, 168, 168, 0.49);
  -moz-box-shadow: 4px 5px 10px 1px rgba(168, 168, 168, 0.49);
}
.main-container .panel h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.main-container label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.main-container input,
.main-container select,
.main-container textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.main-container textarea {
  resize: vertical;
}

.main-container .grid-4,
.main-container .grid-3,
.main-container .grid-2 {
  display: grid;
  gap: 12px;
}
.main-container .grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.main-container .grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.main-container .grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .main-container .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .main-container .grid-4,
  .main-container .grid-3,
  .main-container .grid-2 {
    grid-template-columns: 1fr;
  }
}

.main-container .row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.main-container .grow {
  flex: 1;
}

.main-container .btn {
  background: #2563eb;
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.main-container .btn:hover {
  filter: brightness(0.95);
}
.main-container .btn.secondary {
  background: #64748b;
}
.main-container .btn.ghost {
  background: #e2e8f0;
  color: #111827;
}
.main-container .btn.danger {
  background: #ef4444;
}

.main-container .table-wrap {
  overflow-x: auto;
}
.main-container .items-table {
  width: 100%;
  border-collapse: collapse;
}
.main-container .items-table th,
.main-container .items-table td {
  border: 1px solid #e5e7eb;
  padding: 8px;
}
.main-container .items-table input {
  width: 100%;
  padding: 8px;
}

.main-container .totals-box {
  display: grid;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}
.main-container .totals-box div {
  display: flex;
  justify-content: space-between;
}
.main-container .totals-box .grand {
  font-size: 18px;
  font-weight: 700;
}

.main-container .hint {
  color: #64748b;
  font-size: 12px;
  margin-top: 8px;
}

/* SEO / Info Section Styling */
.tool-seo {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  line-height: 1.6;
}

.tool-seo h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #222;
  border-left: 4px solid #007bff;
  padding-left: 0.5rem;
}

.tool-seo h3 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
  color: #333;
}

.tool-seo p {
  margin-bottom: 1rem;
  color: #444;
}

.tool-seo ul {
  list-style: disc inside;
  margin: 0.5rem 0 1.25rem;
  padding-left: 0.5rem;
}

.tool-seo li {
  margin-bottom: 0.5rem;
  color: #444;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .tool-seo {
    padding: 1rem;
  }

  .tool-seo h2 {
    font-size: 1.2rem;
  }

  .tool-seo h3 {
    font-size: 1rem;
  }
}
