
:root {
  --bg: #0c120e;
  --surface: #141e18;
  --surface2: #1b2921;
  --border: #29392f;
  --green: #23834b;
  --green-light: #58d58a;
  --white: #f3f7f4;
  --muted: #91a398;
  --danger: #e46d6d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
}

.topbar {
  min-height: 76px;
  padding: 14px 6%;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #101813;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 43px;
  height: 43px;
  background: var(--green);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: Outfit, sans-serif;
  letter-spacing: -1px;
}

.brand-info h1 {
  font-family: Outfit, sans-serif;
  font-size: 16px;
  letter-spacing: .6px;
}

.brand-info p {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin-top: 3px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  font-size: 10px;
  color: var(--green-light);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  height: 7px;
  width: 7px;
  background: var(--green-light);
  border-radius: 50%;
  box-shadow: 0 0 10px #58d58a88;
}

.icon-button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: white;
  border-radius: 8px;
  font-size: 20px;
}

.main-content {
  width: min(1200px, 90%);
  margin: auto;
  padding: 42px 0 30px;
}

.welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--green-light);
  font-weight: 700;
}

.welcome-section h2 {
  font-family: Outfit, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  margin: 8px 0;
  letter-spacing: -1.5px;
}

.welcome-section h2 span {
  color: var(--green-light);
}

.welcome-section p,
.panel-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.date-card {
  min-width: 145px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.date-card span,
.date-card small {
  color: var(--muted);
  font-size: 10px;
}

.date-card strong {
  font-size: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 38px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-icon {
  width: 39px;
  height: 39px;
  background: #204a31;
  color: var(--green-light);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 21px;
}

.stat-card div:last-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-card span {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}

.stat-card strong {
  font-size: 15px;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.section-heading {
  margin-bottom: 17px;
}

.section-heading h3,
.panel-heading h3 {
  font-family: Outfit, sans-serif;
  font-size: 21px;
  margin-top: 6px;
}

.version-tag,
.enhancement-badge {
  font-size: 9px;
  color: var(--green-light);
  background: #1b3927;
  border: 1px solid #285a39;
  border-radius: 5px;
  padding: 6px 9px;
  letter-spacing: .7px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 17px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 23px;
}

.panel-heading {
  margin-bottom: 22px;
}

.panel-heading h4 {
  font-size: 15px;
  margin-bottom: 5px;
}

.step-number {
  font-size: 12px;
  color: var(--green-light);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 7px;
}

.upload-zone {
  min-height: 260px;
  border: 1px dashed #41654c;
  background: #101a14;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.upload-placeholder {
  text-align: center;
  padding: 30px 15px;
}

.upload-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 17px;
  border-radius: 14px;
  background: #1c3d29;
  display: grid;
  place-items: center;
  color: var(--green-light);
  font-size: 28px;
}

.upload-placeholder h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.upload-placeholder p,
.file-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}

.primary-button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 11px;
  padding: 13px 20px;
  letter-spacing: .7px;
  transition: .2s;
}

.primary-button:hover,
.generate-button:hover {
  background: #2b9c5a;
  transform: translateY(-1px);
}

.file-note {
  display: block;
  margin: 15px 0 0;
  font-size: 10px;
}

.preview-container {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 10px;
}

.preview-container img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
}

.preview-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 3px 0;
}

.preview-label {
  font-size: 9px;
  color: var(--green-light);
}

.remove-button {
  background: #402020;
  color: #ffaaaa;
  border: 1px solid #704040;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 9px;
}

.enhancement-box {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid var(--border);
  background: #101813;
  border-radius: 11px;
}

.enhancement-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.enhancement-header h4 {
  font-size: 13px;
  margin-bottom: 5px;
}

.enhancement-header p {
  color: var(--muted);
  font-size: 10px;
}

.range-control {
  display: block;
  margin-bottom: 17px;
}

.range-control span {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 9px;
}

.range-control strong {
  color: var(--green-light);
}

.range-control input {
  width: 100%;
  accent-color: var(--green-light);
}

.secondary-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.secondary-button:hover {
  color: white;
  border-color: var(--green-light);
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  color: #aab9af;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 9px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #101813;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  color: white;
  font-size: 12px;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #66776b;
}

.form-group select option {
  background: #101813;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.location-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  background: #101a14;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 16px;
}

.location-icon {
  font-size: 23px;
  color: var(--green-light);
}

.location-info {
  flex: 1;
  min-width: 0;
}

.location-info strong {
  font-size: 9px;
  letter-spacing: .7px;
}

.location-info p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.location-button {
  background: #20452e;
  color: var(--green-light);
  border: 1px solid #356b47;
  padding: 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
}

.form-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  gap: 7px;
  margin-bottom: 17px;
}

.form-note span {
  color: var(--green-light);
}

.generate-button {
  width: 100%;
  border: 0;
  background: var(--green);
  color: white;
  padding: 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: .2s;
}

.generate-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.result-panel {
  margin-top: 25px;
}

.result-preview {
  background: #0b100d;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  justify-content: center;
}

.result-preview canvas {
  display: block;
  width: min(100%, 560px);
  height: auto;
  border-radius: 5px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer {
  text-align: center;
  padding: 40px 10px 10px;
}

.footer-brand {
  font-family: Outfit, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.footer p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0;
}

.footer span {
  color: #668071;
  font-size: 8px;
  letter-spacing: 1.5px;
}

[hidden] {
  display: none !important;
}

@media(max-width: 850px) {
  .report-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    width: 92%;
  }
}

@media(max-width: 550px) {
  .topbar {
    padding: 12px 4%;
  }

  .brand-info h1 {
    font-size: 13px;
  }

  .brand-info p {
    font-size: 8px;
  }

  .status-indicator {
    font-size: 8px;
  }

  .main-content {
    width: 92%;
    padding-top: 27px;
  }

  .welcome-section {
    align-items: flex-start;
  }

  .welcome-section p {
    max-width: 220px;
    font-size: 11px;
  }

  .date-card {
    min-width: 105px;
    padding: 10px;
  }

  .date-card strong {
    font-size: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 28px;
  }

  .stat-card {
    padding: 12px;
  }

  .panel {
    padding: 16px;
  }

  .section-heading h3 {
    font-size: 18px;
  }

  .version-tag {
    font-size: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .location-box {
    flex-wrap: wrap;
  }

  .location-info {
    flex-basis: calc(100% - 50px);
  }

  .location-button {
    margin-left: 33px;
  }

  .result-actions button {
    width: 100%;
  }
}
