/* ========== Global reset ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

/* ========== Top bar (logo + nav) ========== */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: #111; /* dark header like corporate site */
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 40px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.company-name {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tagline {
  font-size: 0.8rem;
  opacity: 0.8;
}

.main-nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* ========== Hero banner ========== */

.hero-banner {
  position: relative;
  width: 100%;
  height: 320px; /* adjust as you like */
  background: url("../assets/gnb-banner.png") center center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55); /* darken image */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
}

.hero-overlay h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-overlay p {
  max-width: 720px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* ========== Buttons ========== */

.button,
button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 4px;
  background: #00703c; /* pick a green tone to nod to their brand */
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.button:hover,
button:hover {
  background: #005c31;
}

/* ========== Main content ========== */

main {
  padding: 2rem 1.5rem;
}

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

.intro h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.intro p {
  font-size: 0.98rem;
}

/* ========== Responsive tweaks ========== */

@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero-banner {
    height: 260px;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .hero-overlay p {
    font-size: 0.9rem;
  }
}

.inspection-selection {
  max-width: 400px;
  margin: 40px auto;
}

.inspection-selection select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

.inspection-container {
  max-width: 800px;
  margin: 60px auto;
}

/* ========== GNB Polarity 13A Inspection Styles ========== */
.wrap {
  max-width: 900px;
  margin: 30px auto;
  padding: 16px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 14px;
}

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #fff;
  color: #333;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 12px;
}

.error {
  color: #b00020;
  font-weight: 600;
  margin-top: 8px;
  display: none;
}

.muted {
  color: #666;
  font-size: 13px;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.checkline input {
  width: auto;
}

.gridNote {
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed #bbb;
  background: #fafafa;
}

.note {
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed #bbb;
  background: #fafafa;
}

.kpi {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi span {
  border: 1px solid #eee;
  background: #fafafa;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* ========== Storage Page Styles ========== */
.storage-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
}

.filter-section {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 15px;
  align-items: flex-end;
}

.filter-row > div {
  display: flex;
  flex-direction: column;
}

.filter-row label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.filter-row input,
.filter-row select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.filter-row button {
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.filter-row button:hover {
  background: #333;
}

.results-section {
  margin-top: 30px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-header h2 {
  margin: 0;
}

.inspection-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.inspection-card-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.inspection-card-field {
  display: flex;
  flex-direction: column;
}

.inspection-card-field label {
  font-weight: 600;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.inspection-card-field value {
  font-size: 16px;
  color: #111;
  font-weight: 500;
}

.inspection-type-badge {
  display: inline-block;
  background: #00703c;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px dashed #ddd;
}

.empty-state p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

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

.action-buttons button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-view {
  background: #00703c;
  color: #fff;
}

.btn-view:hover {
  background: #005c31;
}

.btn-delete {
  background: #f5f5f5;
  color: #b00020;
  border: 1px solid #ddd;
}

.btn-delete:hover {
  background: #ffe0e0;
}