/* ==========================================================================
   NADICREATIVE GANCI EDITION - CUSTOM DESIGN SYSTEM & STYLING
   ========================================================================== */

:root {
  /* Color Palette - Comfortable Green & White */
  --primary-dark: #123318;
  /* Very Deep Forest Green */
  --primary: #1e532b;
  /* Classic Forest Green */
  --primary-light: #2c7c40;
  /* Bright Forest Green */
  --primary-accent: #6fba83;
  /* Mint/Sage Light Accent */
  --accent-light: #e8f5e9;
  /* Light Mint Tint */
  --accent-bg: #f5fbf7;
  /* Soft Off-white Background */

  --white: #ffffff;
  --black: #111a13;
  --grey-dark: #5c6b60;
  --grey-light: #e2e8e4;
  --grey-bg: #f0f4f1;

  --success: #2e7d32;
  --warning: #f57c00;
  --danger: #d32f2f;
  --info: #0288d1;

  /* Typography */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(18, 51, 24, 0.05);
  --shadow-md: 0 8px 16px rgba(18, 51, 24, 0.08);
  --shadow-lg: 0 16px 32px rgba(18, 51, 24, 0.12);

  /* Layout */
  --header-height: 70px;
  --max-width: 1100px;
}

/* --- Global Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--accent-bg);
  color: var(--black);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* --- Container & View System --- */
.app-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-light);
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  cursor: pointer;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-accent {
  color: var(--primary);
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: var(--primary);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--grey-dark);
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-link.active {
  color: var(--primary-dark);
  background-color: var(--accent-light);
  font-weight: 600;
}

.nav-link:hover:not(.active) {
  background-color: var(--grey-bg);
  color: var(--black);
}

.app-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - var(--header-height) - 100px);
}

/* App View Router states */
.app-view {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.app-view.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* --- Common UI Components --- */
.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 51, 24, 0.06);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--grey-dark);
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  font-family: var(--font-family);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--accent-light);
}

.btn-secondary {
  background-color: var(--grey-bg);
  color: var(--black);
}

.btn-secondary:hover {
  background-color: var(--grey-light);
}

.btn-success {
  background-color: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background-color: #1b5e20;
}

.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #b71c1c;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  gap: 8px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-warning {
  background-color: #fff3e0;
  color: #e65100;
}

.badge-success {
  background-color: #e8f5e9;
  color: #1b5e20;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form inputs */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  font-family: var(--font-family);
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-light);
  background-color: var(--white);
  font-size: 1rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-light);
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex-grow: 1;
}

.input-helper {
  font-size: 0.8rem;
  color: var(--grey-dark);
  margin-top: 4px;
  display: block;
}

/* Alerts */
.alert {
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin: 16px 0;
  border: 1px solid transparent;
}

.alert-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-color: #c8e6c9;
}

.alert-danger {
  background-color: #ffebee;
  color: #c62828;
  border-color: #ffcdd2;
}

/* --- 1. HERO & LANDING PAGE DESIGN --- */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  margin-bottom: 60px;
}

.hero-content .hero-tag {
  background-color: var(--accent-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--grey-dark);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Realistic Keychain Mockup in CSS */
.ganci-preview-card {
  position: relative;
  width: 200px;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ganci-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 5px solid #bdc3c7;
  background: transparent;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 0;
}

.ganci-chain {
  width: 8px;
  height: 45px;
  background: linear-gradient(#bdc3c7, #95a5a6);
  position: absolute;
  top: 38px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ganci-body {
  width: 140px;
  height: 200px;
  background-color: var(--white);
  border: 6px solid #e2e8e4;
  border-radius: var(--radius-sm);
  position: absolute;
  top: 75px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.ganci-preview-card:hover .ganci-body {
  transform: rotate(3deg) scale(1.03);
}

.ganci-photo-frame {
  width: 100%;
  height: 145px;
  background-color: var(--grey-bg);
  border-radius: 4px;
  overflow: hidden;
}

.ganci-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--grey-dark);
  font-size: 0.75rem;
}

.ganci-placeholder-img svg {
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  opacity: 0.7;
}

.ganci-tag-label {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  border-top: 1px solid var(--grey-light);
  padding-top: 6px;
}

/* Gallery Section */
.gallery-section {
  margin-bottom: 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(18, 51, 24, 0.04);
  transition: transform 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-card .card-image {
  height: 200px;
  background-color: var(--grey-bg);
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Mock product images with gradients */
.bg-couple {
  background: linear-gradient(135deg, #a8d3b9 0%, #3e8e52 100%);
}

.bg-couple::before {
  content: "👩‍❤️‍👨";
  font-size: 4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bg-pet {
  background: linear-gradient(135deg, #c8e6c9 0%, #2e7d32 100%);
}

.bg-pet::before {
  content: "🐶🐈";
  font-size: 4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bg-squad {
  background: linear-gradient(135deg, #a5d6a7 0%, #1b5e20 100%);
}

.bg-squad::before {
  content: "👥✨";
  font-size: 4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gallery-card .card-body {
  padding: 20px;
}

.gallery-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.gallery-card p {
  font-size: 0.9rem;
  color: var(--grey-dark);
}

/* Steps Section */
.steps-section {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-sm);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  position: relative;
  text-align: center;
}

.step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--primary-dark);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--grey-dark);
}

/* --- 2. ORDER STEPPER & FORM DESIGN --- */
.order-container {
  max-width: 650px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 60px;
}

/* Stepper Progress Bar */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 0 10px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--grey-light);
  color: var(--grey-dark);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.step-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey-dark);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-line {
  flex-grow: 1;
  height: 3px;
  background-color: var(--grey-light);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.step-item.active .step-circle {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.step-item.active .step-text {
  color: var(--primary-dark);
  font-weight: 700;
}

.step-item.completed .step-circle {
  background-color: var(--primary-light);
  color: var(--white);
}

.step-item.completed .step-text {
  color: var(--primary-light);
}

/* Order Box Layout */
.order-card-box {
  min-height: 400px;
  position: relative;
}

.order-step-pane {
  display: none;
}

.order-step-pane.active {
  display: block;
  animation: slideIn 0.35s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

.order-step-pane h2 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.pane-desc {
  color: var(--grey-dark);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pane-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  border-top: 1px solid var(--grey-light);
  padding-top: 20px;
}

.pane-actions .btn {
  flex: 1;
}

/* Dropzone Upload Style */
.upload-dropzone {
  border: 2px dashed var(--primary-accent);
  border-radius: var(--radius-md);
  background-color: var(--accent-bg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-dropzone:hover {
  background-color: var(--accent-light);
  border-color: var(--primary);
}

.upload-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.upload-icon svg {
  width: 32px;
  height: 32px;
}

.upload-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.upload-subtitle {
  font-size: 0.85rem;
  color: var(--grey-dark);
}

/* Interactive Photo Cropper Container */
.cropper-wrapper {
  background-color: #0f1812;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px auto;
}

.cropper-container {
  position: relative;
  width: 100%;
  height: 380px;
  /* Fixed height for image navigation */
  overflow: hidden;
  cursor: grab;
}

.cropper-container:active {
  cursor: grabbing;
}

#cropper-image,
#reupload-cropper-image {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Shading Overlay indicating standard size (16:23 ratio) */
.cropper-guide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: transparent;
  /* transparent inside the crop box */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cropper-crop-box {
  width: 200px;
  height: 287.5px;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
  /* Shade outside crop box */
  position: relative;
}

.acrylic-model-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 20px;
}

.acrylic-model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 2px solid var(--grey-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}

.acrylic-model-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-accent);
}

.acrylic-model-card.unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.acrylic-model-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}

.acrylic-model-card span {
  font-weight: 600;
  font-size: 0.85rem;
}

.acrylic-model-card small {
  color: var(--danger);
  font-weight: 700;
}

.acrylic-availability-settings {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.setting-check-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cropper-crop-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.5);
}

/* Range input styled for comfortable touch */
.cropper-controls {
  max-width: 360px;
  margin: 0 auto;
  padding: 10px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.control-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-dark);
}

.cropper-controls input[type="range"] {
  flex-grow: 1;
  height: 6px;
  -webkit-appearance: none;
  background: var(--grey-light);
  border-radius: var(--radius-full);
  outline: none;
}

.cropper-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.control-buttons {
  display: flex;
  justify-content: center;
}

/* Preview Thumbnail block */
.preview-thumbnail-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.preview-thumbnail-container p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-dark);
  margin-bottom: 8px;
}

.preview-thumbnail-ganci {
  position: relative;
  width: 120px;
  height: 200px;
  background-color: var(--white);
  border: 5px solid #e2e8e4;
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.ganci-ring-mini {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #bdc3c7;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-bg);
}

.preview-thumbnail-ganci img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Success display */
.success-screen {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* --- 3. STATUS TRACKER DESIGN --- */
.status-container {
  max-width: 600px;
  margin: 0 auto;
}

.status-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--grey-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

.badge-submitted {
  background-color: var(--grey-dark);
}

.badge-processing {
  background-color: var(--warning);
}

.badge-ready {
  background-color: var(--success);
}

.badge-completed {
  background-color: var(--primary-dark);
}

.badge-reupload {
  background-color: var(--danger);
}

.status-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 30px;
}

.status-orders-list {
  border-top: 1px solid var(--grey-light);
  padding-top: 20px;
  margin-top: 8px;
}

.status-orders-list h4 {
  margin: 0 0 12px;
}

.status-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-light);
}

.status-order-summary-photo {
  width: 64px;
  height: 88px;
  flex: 0 0 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--grey-light);
}

.status-order-summary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-order-summary-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.status-order-summary-info span,
.status-order-summary-info small {
  color: var(--grey-dark);
}

@media (max-width: 600px) {
  .status-order-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .status-order-summary .status-badge {
    margin-left: 80px;
  }
}

.info-item {
  margin-bottom: 16px;
}

.info-label {
  display: block;
  font-size: 0.8rem;
  color: var(--grey-dark);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
}

.status-ganci-display {
  position: relative;
  width: 140px;
  height: 220px;
  background-color: var(--white);
  border: 6px solid #e2e8e4;
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: var(--shadow-md);
  margin: 10px auto 0 auto;
  display: flex;
}

.status-ganci-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Timeline progress indicators */
.progress-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 16px 0;
  padding: 0 10px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--grey-light);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--grey-light);
  transition: all 0.3s ease;
}

.timeline-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--grey-dark);
  margin-top: 8px;
}

.timeline-bar {
  flex-grow: 1;
  height: 3px;
  background-color: var(--grey-light);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.timeline-step.completed .timeline-dot {
  background-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-step.completed .timeline-label {
  color: var(--primary-dark);
}

.timeline-bar.completed {
  background-color: var(--primary);
}

/* Reupload Area */
.reupload-alert-box {
  background-color: #ffebee;
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 30px;
}

.reupload-reason {
  background-color: var(--white);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin: 8px 0;
  font-style: italic;
  font-size: 0.95rem;
}

.reupload-crop-area {
  background-color: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

/* --- 4. ADMIN DASHBOARD DESIGN --- */
.admin-container {
  width: 100%;
}

.admin-login-card {
  max-width: 400px;
  margin: 60px auto;
}

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

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 51, 24, 0.05);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--grey-dark);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 4px;
}

.stat-submitted {
  border-left: 4px solid var(--grey-dark);
}

.stat-processing {
  border-left: 4px solid var(--warning);
}

.stat-ready {
  border-left: 4px solid var(--success);
}

/* Tabs Layout */
.admin-tabs {
  display: flex;
  border-bottom: 1.5px solid var(--grey-light);
  margin-bottom: 24px;
  gap: 8px;
}

.admin-tab-btn {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-dark);
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
}

.admin-tab-btn.active {
  color: var(--primary);
}

.admin-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2.5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.filter-bar input {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-light);
  outline: none;
  font-family: var(--font-family);
  flex-grow: 1;
  max-width: 400px;
}

.filter-bar select {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-light);
  outline: none;
  font-family: var(--font-family);
  background-color: var(--white);
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 51, 24, 0.05);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey-bg);
}

.admin-table th {
  background-color: var(--accent-bg);
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background-color: var(--accent-bg);
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.8rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Switch Toggle widget */
.setting-item-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--grey-bg);
  padding: 20px;
  border-radius: var(--radius-md);
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--grey-light);
  transition: .4s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch-toggle input:checked+.slider-round {
  background-color: var(--primary);
}

.switch-toggle input:checked+.slider-round:before {
  transform: translateX(22px);
}

/* Modal details */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-light);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--grey-dark);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.info-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--grey-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-group .info-content {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
}

.modal-photo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-photo-display {
  position: relative;
  width: 180px;
  height: 270px;
  background-color: var(--white);
  border: 8px solid #e2e8e4;
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: var(--shadow-md);
}

.modal-photo-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* --- FOOTER DESIGN --- */
.app-footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 30px 20px;
  font-size: 0.85rem;
  margin-top: 60px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-links a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.admin-trigger-link {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */

@media (max-width: 768px) {

  /* Common */
  .section-title {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 2.2rem !important;
  }

  /* Hero */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Steps */
  .steps-section {
    padding: 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Status details */
  .status-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Admin */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar input {
    max-width: 100%;
  }

  /* Modal */
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-photo-column {
    order: -1;
    /* Photo on top on mobile modal */
  }

  /* Header & Footer */
  .header-container,
  .footer-container {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
    text-align: center;
  }

  .app-header {
    height: auto;
  }
}
