:root {
  --page-bg: #eef8f2;
  --panel-bg: rgba(251, 255, 252, 0.9);
  --panel-strong: rgba(241, 252, 246, 0.96);
  --mint-100: #dff7ec;
  --mint-200: #caefdf;
  --mint-300: #a9dec8;
  --mint-400: #77c7a4;
  --mint-500: #4daa83;
  --olive-900: #42522c;
  --olive-700: #5b7041;
  --olive-500: #728a54;
  --line: rgba(86, 122, 78, 0.18);
  --shadow: 0 28px 90px rgba(85, 129, 108, 0.18);
  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: "Segoe UI", "Verdana", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--olive-900);
  font-family: var(--font-body);
}

a {
  color: var(--olive-900);
}

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.ambient-left {
  top: -6rem;
  left: -7rem;
  background: transparent;
}

.ambient-right {
  right: -6rem;
  bottom: -8rem;
  background: transparent;
}

.layout,
.admin-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.layout--three {
  display: grid;
  grid-template-columns: 1.02fr 1fr 0.82fr;
  gap: 1.5rem;
  align-items: stretch;
}

.form-layout {
  display: contents;
}

.card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, var(--panel-bg), var(--panel-strong));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.info-card,
.form-card,
.actions-card,
.admin-login-card,
.admin-dashboard-card {
  padding: 1.7rem;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  animation: rise 0.9s ease both;
}

.form-card,
.actions-card {
  animation: rise 1.05s ease both;
}

.admin-shell {
  display: grid;
}

.admin-login-card {
  width: min(520px, 100%);
  margin: 3rem auto 0;
}

.admin-dashboard-card {
  animation: rise 1s ease both;
}

.brand-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--olive-900);
}

.mini-tag,
.eyebrow,
.detail-label,
.highlight-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.mini-tag {
  width: fit-content;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(112, 182, 147, 0.12);
  border: 1px solid rgba(112, 182, 147, 0.24);
  color: var(--olive-700);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-copy,
.form-head {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.hero-copy h1,
.form-head h2,
.admin-title {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3.1vw, 2.7rem);
}

.form-head h2,
.admin-title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.eyebrow {
  margin: 0;
  color: var(--olive-700);
  font-size: 0.77rem;
  font-weight: 700;
}

.detail-label {
  margin: 0;
  color: var(--olive-500);
  font-size: 0.76rem;
  font-weight: 800;
}

.lead,
.support,
.form-head p,
.highlight-card p,
.transfer-card p,
.upload-name,
.field span,
.resource-note,
.admin-topbar p {
  line-height: 1.65;
}

.lead,
.support,
.form-head p,
.resource-note {
  margin: 0;
  color: rgba(66, 82, 44, 0.84);
}

.support a {
  font-weight: 700;
}

.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: auto;
}

.highlight-card {
  padding: 1rem;
  border-radius: 24px;
  background: rgba(245, 255, 249, 0.72);
  border: 1px solid rgba(114, 138, 84, 0.13);
}

.highlight-card strong {
  display: block;
  margin: 0.45rem 0 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.highlight-card p,
.transfer-card p {
  margin: 0;
  color: rgba(66, 82, 44, 0.78);
}

.highlight-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--olive-500);
}

.field-grid,
.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--olive-700);
}

.field input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(111, 152, 105, 0.25);
  background: rgba(255, 255, 255, 0.88);
  color: var(--olive-900);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input:focus {
  border-color: rgba(79, 163, 127, 0.68);
  box-shadow: 0 0 0 5px rgba(138, 219, 187, 0.2);
  transform: translateY(-1px);
}

.transfer-card {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(222, 248, 236, 0.95), rgba(239, 252, 245, 0.9)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(115, 170, 131, 0.2);
}

.transfer-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--olive-900);
}

.actions-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-button,
.secondary-button,
.ghost-button,
.submit-button,
.export-button,
.upload-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 18px;
  padding: 0.95rem 1rem;
  text-decoration: none;
  font-weight: 800;
}

.resource-button,
.secondary-button,
.ghost-button {
  border: 1px solid rgba(91, 112, 65, 0.22);
}

.resource-button {
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--olive-900);
  cursor: pointer;
}

.resource-button:hover {
  transform: translateY(-1px);
}

.upload-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px dashed rgba(91, 112, 65, 0.35);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.upload-box:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 170, 131, 0.62);
  background: rgba(248, 255, 251, 0.96);
}

.upload-box input {
  display: none;
}

.upload-action {
  width: fit-content;
  gap: 0.6rem;
  background: linear-gradient(135deg, #8bd8b6, #67be97);
  color: #173221;
  box-shadow: 0 18px 30px rgba(92, 174, 135, 0.2);
}

.upload-action::before {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}

.upload-name {
  color: rgba(66, 82, 44, 0.75);
  font-size: 0.95rem;
}

.submit-button,
.export-button {
  border: 0;
  background: linear-gradient(135deg, #5eb187, #7fd0ad);
  color: #173221;
  cursor: pointer;
  box-shadow: 0 22px 34px rgba(72, 154, 116, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.submit-button:hover,
.export-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.85);
  color: var(--olive-900);
}

.ghost-button {
  background: transparent;
  color: var(--olive-700);
}

.success-message {
  display: none;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(220, 248, 233, 0.95);
  border: 1px solid rgba(104, 167, 124, 0.28);
  color: var(--olive-900);
}

.success-message.is-visible {
  display: block;
  animation: rise 250ms ease both;
}

.success-message.is-error {
  background: rgba(255, 238, 238, 0.98);
  border-color: rgba(181, 96, 96, 0.28);
  color: #7a3131;
}

.is-hidden {
  display: none;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filters-grid {
  align-items: end;
  margin-bottom: 1rem;
}

.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.table-shell {
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(114, 138, 84, 0.13);
  background: rgba(255, 255, 255, 0.72);
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.records-table th,
.records-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(114, 138, 84, 0.1);
}

.records-table th {
  position: sticky;
  top: 0;
  background: rgba(235, 249, 241, 0.96);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.records-table td a {
  font-weight: 700;
}

.table-empty {
  text-align: center;
  color: rgba(66, 82, 44, 0.7);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1160px) {
  .layout--three {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .filters-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .layout,
  .admin-shell {
    width: min(100% - 1rem, 1380px);
    padding: 0.75rem 0 2rem;
  }

  .card,
  .admin-login-card,
  .admin-dashboard-card {
    border-radius: 26px;
  }

  .info-card,
  .form-card,
  .actions-card,
  .admin-login-card,
  .admin-dashboard-card {
    padding: 1.25rem;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}
