/* ============================================================
   ICEGATE e-SANCHIT PRO - FUTURISTIC LIGHT THEME
   Pure Luminous Glassmorphism & High-Tech HUD Aesthetics
   ============================================================ */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-elevated: rgba(255, 255, 255, 0.94);
  --bg-glass-card: rgba(255, 255, 255, 0.88);

  --border-subtle: rgba(226, 232, 240, 0.85);
  --border-glow-cyan: rgba(14, 165, 233, 0.4);
  --border-glow-indigo: rgba(99, 102, 241, 0.35);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --cyan-primary: #0284c7;
  --cyan-light: #0ea5e9;
  --cyan-glow: rgba(14, 165, 233, 0.25);

  --indigo-primary: #6366f1;
  --indigo-light: #818cf8;
  --indigo-glow: rgba(99, 102, 241, 0.25);

  --emerald-primary: #10b981;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;

  --amber-primary: #f59e0b;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;

  --danger-primary: #ef4444;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.07), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow-cyan: 0 0 25px -4px rgba(14, 165, 233, 0.35);
  --shadow-glow-indigo: 0 0 25px -4px rgba(99, 102, 241, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Cyber Grid & Ambient Glowing Orbs */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.08));
}

.orb-2 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), rgba(16, 185, 129, 0.08));
}

/* App Main Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px 60px;
}

/* Futuristic Top Navigation Bar */
.futuristic-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--bg-glass-elevated);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.brand-section {
  display: flex;
  align-items: center;
}

.brand-badge-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hologram Rotating Cube */
.hologram-cube {
  width: 36px;
  height: 36px;
  perspective: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-inner {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
  animation: rotateCube 8s linear infinite;
}

@keyframes rotateCube {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  50% { transform: rotateX(180deg) rotateY(180deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gradient-text {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 40%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-badge {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

/* Center HUD Pill */
.engine-hud {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.pulse-cyan {
  background: #0ea5e9;
  box-shadow: 0 0 8px #0ea5e9;
  animation: pulseLight 2s infinite ease-in-out;
}

.pulse-emerald {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLight 2s infinite ease-in-out 0.5s;
}

.pulse-indigo {
  background: #6366f1;
  box-shadow: 0 0 8px #6366f1;
  animation: pulseLight 2s infinite ease-in-out 1s;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hud-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.hud-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.hud-divider {
  width: 1px;
  height: 14px;
  background: #cbd5e1;
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  color: var(--cyan-primary);
  border-color: var(--border-glow-cyan);
  background: #f0f9ff;
}

.btn-futuristic-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-futuristic-outline:hover {
  border-color: var(--cyan-light);
  color: var(--cyan-primary);
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.15);
  transform: translateY(-1px);
}

/* Navigation Tabs */
.nav-tabs-container {
  margin-bottom: 24px;
}

.tabs-wrapper {
  display: flex;
  gap: 8px;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(241, 245, 249, 0.7);
}

.nav-tab.active {
  background: #ffffff;
  color: var(--cyan-primary);
  border: 1px solid #e0f2fe;
  box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.18);
}

.nav-tab.active svg {
  stroke: var(--cyan-primary);
}

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeInPane 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Stats Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow-cyan);
  box-shadow: var(--shadow-md);
}

.stat-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.stat-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper.cyan { background: #f0f9ff; color: #0284c7; }
.stat-icon-wrapper.indigo { background: #eef2ff; color: #6366f1; }
.stat-icon-wrapper.emerald { background: #ecfdf5; color: #10b981; }
.stat-icon-wrapper.amber { background: #fffbeb; color: #d97706; }

.stat-caption {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
  white-space: nowrap;
}

.stat-badge {
  position: static;
  align-self: flex-start;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-badge.cyan { background: #e0f2fe; color: #0369a1; }
.stat-badge.indigo { background: #e0e7ff; color: #4338ca; }
.stat-badge.emerald { background: #d1fae5; color: #047857; }
.stat-badge.amber { background: #fef3c7; color: #b45309; }

/* Workspace Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

/* Futuristic Glass Card */
.card-futuristic {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}

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

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title.center {
  justify-content: center;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.batch-slot-indicator .slot-pill {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 5px 12px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--cyan-primary);
  border: 1px solid #cbd5e1;
}

/* Drag & Drop Zone */
.dropzone {
  border: 2px dashed #cbd5e1;
  background: rgba(248, 250, 252, 0.7);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dropzone:hover, .dropzone.drag-active {
  border-color: var(--cyan-light);
  background: #f0f9ff;
  box-shadow: var(--shadow-glow-cyan);
}

/* Laser Scanner Animation */
.laser-scanner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0ea5e9, #6366f1, transparent);
  box-shadow: 0 0 12px #0ea5e9;
  display: none;
}

.dropzone.scanning .laser-scanner {
  display: block;
  animation: scanLaser 2s linear infinite;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.drop-icon-sphere {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #ffffff;
  border-radius: 50%;
  border: 1px solid #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15);
}

.drop-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.drop-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Primary Futuristic Buttons */
.btn-futuristic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-futuristic:hover {
  background: #f8fafc;
  border-color: var(--cyan-light);
  color: var(--cyan-primary);
}

.btn-futuristic-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-main);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #4338ca 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px -2px rgba(2, 132, 199, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-futuristic-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5);
}

.btn-futuristic-glow:active {
  transform: translateY(0);
}

.btn-futuristic-indigo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-futuristic-indigo:hover {
  box-shadow: var(--shadow-glow-indigo);
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

/* Staged Document Configuration List */
.staged-section {
  margin-top: 24px;
}

.section-subheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.btn-text-danger {
  background: transparent;
  border: none;
  color: var(--danger-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.staged-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.staged-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.staged-card:hover {
  border-color: #7dd3fc;
  box-shadow: 0 4px 14px -2px rgba(14, 165, 233, 0.12);
}

.staged-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.staged-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staged-file-icon {
  width: 32px;
  height: 32px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
}

.staged-file-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staged-file-size {
  font-size: 11px;
  color: var(--text-muted);
}

.size-pill-ok {
  color: #16a34a;
  background: #ecfdf5;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.size-pill-warning {
  color: #b45309;
  background: #fef3c7;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.btn-remove-file {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #ef4444;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-remove-file:hover {
  background: #ef4444;
  color: #ffffff;
}

.staged-inputs-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}

.input-label-sm {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.futuristic-select, .futuristic-input-sm {
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  font-family: var(--font-main);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.futuristic-select:focus, .futuristic-input-sm:focus {
  background: #ffffff;
  border-color: var(--cyan-light);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.generate-action-bar {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.action-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
}

.pulse-emerald-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* Empty Result Placeholder */
.empty-placeholder {
  text-align: center;
  padding: 60px 20px;
  background: rgba(248, 250, 252, 0.6);
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

.empty-icon-shield {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.empty-placeholder h4 {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-placeholder p {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

.status-badge-inactive {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: #f1f5f9;
  color: #64748b;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
}

.status-badge-active {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: #ecfeff;
  color: #0284c7;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #7dd3fc;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

/* DRN Hologram Banner */
.drn-hologram-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 20px -2px rgba(14, 165, 233, 0.15);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.hologram-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.drn-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drn-tag {
  font-size: 10px;
  font-weight: 700;
  color: #0369a1;
  letter-spacing: 0.8px;
}

.drn-chip {
  font-size: 9px;
  font-weight: 700;
  background: #10b981;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
}

.drn-digits {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 1px;
}

.drn-meta-row {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  border-top: 1px solid #bae6fd;
  padding-top: 8px;
}

.btn-copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: #ffffff;
  border: 1px solid #7dd3fc;
  color: #0284c7;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-chip:hover {
  background: #0284c7;
  color: #ffffff;
}

/* Result Documents List */
.result-docs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.result-docs-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-text-action {
  background: transparent;
  border: none;
  color: var(--indigo-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.result-docs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.irn-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.irn-card:hover {
  border-color: #a5b4fc;
  background: #fdfefe;
}

.irn-card-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.irn-code-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 6px;
}

.irn-meta-text {
  font-size: 11px;
  color: var(--text-muted);
}

.irn-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-sm {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-sm:hover {
  background: #e2e8f0;
  color: var(--cyan-primary);
}

.result-action-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

/* History & Tables */
.history-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  min-width: 280px;
}

.table-responsive {
  overflow-x: auto;
}

.futuristic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.futuristic-table th {
  background: #f1f5f9;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
}

.futuristic-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: middle;
}

.futuristic-table tr:hover td {
  background: #f8fafc;
}

/* Verification Terminal */
.verify-card {
  max-width: 800px;
  margin: 0 auto;
}

.verify-search-bar {
  display: flex;
  gap: 12px;
  margin: 20px 0 30px;
}

.input-with-icon {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
}

.verify-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  font-size: 14px;
  font-family: var(--font-mono);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.verify-input:focus {
  border-color: var(--cyan-light);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.verify-result-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  animation: fadeInPane 0.3s ease;
}

/* Technical Guide Section */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.guide-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.guide-box-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-indicator.blue { background: #0284c7; }
.dot-indicator.green { background: #10b981; }

.guide-box p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.highlight-callout {
  margin-top: 14px;
  padding: 12px;
  background: #f0f9ff;
  border-left: 3px solid #0284c7;
  border-radius: 4px;
  font-size: 12px;
  color: #0369a1;
  line-height: 1.5;
}

.spec-list {
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.code-preview-section {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #1e293b;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.code-block {
  padding: 16px;
  margin: 0;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.modal-card.modal-lg {
  max-width: 900px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.futuristic-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-main);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.futuristic-input:focus {
  background: #ffffff;
  border-color: var(--cyan-light);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.checkbox-group {
  margin-top: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 16px 0 8px;
}

.terminal-textarea {
  width: 100%;
  background: #0f172a;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  outline: none;
  resize: vertical;
}

/* Toast Notifications */
.futuristic-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.futuristic-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* VPS Session Bar & Live OTP Cards */
.vps-session-bar {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
}

.vps-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vps-bar-title {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
}

.vps-bar-desc {
  font-size: 11px;
  color: #4b5563;
  margin-top: 2px;
}

.vps-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* OTP Alert Card */
.otp-hud-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.2);
  animation: pulseOtp 2s infinite ease-in-out;
}

@keyframes pulseOtp {
  0%, 100% { border-color: #f59e0b; }
  50% { border-color: #d97706; }
}

.otp-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.otp-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.otp-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.otp-input-field {
  padding: 8px 14px;
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  font-weight: 700;
  border: 1px solid #d97706;
  border-radius: 8px;
  background: #ffffff;
  color: #78350f;
  outline: none;
  width: 140px;
  text-align: center;
}

.otp-input-field:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* ============================================================
   LIVE VPS SYSTEM LOGS & TERMINAL SUBSYSTEM
   ============================================================ */

/* Navbar Log Counter Badge */
.log-badge-counter {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 7px;
  border-radius: 9999px;
  border: 1px solid #bae6fd;
  transition: all 0.2s ease;
}

.nav-tab.active .log-badge-counter {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Dashboard Live Feed Widget (on Upload Tab) */
.live-stream-widget {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04);
}

.stream-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.live-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: #ecfeff;
  color: #0891b2;
  border: 1px solid #a5f3fc;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.mini-log-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.mini-log-placeholder {
  color: #94a3b8;
  font-style: italic;
  font-size: 11px;
}

.mini-log-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  transition: background 0.15s ease;
}

.mini-log-row:hover {
  background: #f1f5f9;
}

.mini-log-row.info { border-left-color: #0284c7; }
.mini-log-row.success { border-left-color: #10b981; }
.mini-log-row.warn { border-left-color: #f59e0b; background: #fffbeb; }
.mini-log-row.error { border-left-color: #ef4444; background: #fef2f2; }

.mini-log-time {
  color: #64748b;
  font-size: 10.5px;
  white-space: nowrap;
}

.mini-log-text {
  color: #334155;
  word-break: break-word;
}

/* Full Terminal Console Container (TAB 5) */
.log-terminal-container {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35), 0 0 30px rgba(2, 132, 199, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 210px);
  min-height: 580px;
}

/* Terminal Toolbar */
.terminal-toolbar {
  background: #0f172a;
  padding: 14px 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.terminal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.terminal-traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.traffic-light.red { background: #ef4444; }
.traffic-light.yellow { background: #f59e0b; }
.traffic-light.green { background: #10b981; }

.terminal-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.2px;
}

.terminal-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Filter Pills */
.log-filter-group {
  display: flex;
  background: #1e293b;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #334155;
}

.log-filter-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.log-filter-btn:hover {
  color: #ffffff;
}

.log-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

.terminal-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auto-scroll-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
  font-family: var(--font-mono);
  cursor: pointer;
  user-select: none;
}

.auto-scroll-toggle input {
  accent-color: #0284c7;
  cursor: pointer;
}

.btn-terminal-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-terminal-action:hover {
  background: #334155;
  color: #ffffff;
}

.btn-terminal-action.danger:hover {
  background: #991b1b;
  border-color: #ef4444;
  color: #fee2e2;
}

/* Terminal Screen / Viewport */
.terminal-screen {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  background: #090d16;
  color: #e2e8f0;
}

.terminal-screen::-webkit-scrollbar {
  width: 8px;
}

.terminal-screen::-webkit-scrollbar-track {
  background: #090d16;
}

.terminal-screen::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

.terminal-screen::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Log Rows in Terminal */
.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
  word-break: break-word;
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.03);
}

.log-timestamp {
  color: #64748b;
  font-size: 11px;
  user-select: none;
  flex-shrink: 0;
}

.log-level-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.log-level-badge.info {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.log-level-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.log-level-badge.warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.log-level-badge.error {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.log-msg {
  color: #f1f5f9;
  flex: 1;
}

.log-msg.info { color: #f1f5f9; }
.log-msg.success { color: #86efac; }
.log-msg.warn { color: #fde047; }
.log-msg.error { color: #fca5a5; }

/* Terminal Statusbar */
.terminal-statusbar {
  background: #0c1220;
  border-top: 1px solid #1e293b;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}

.statusbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator-dot.online {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Mini Log Strip in VPS Screen Modal */
.modal-log-strip {
  margin-top: 14px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-mono);
}

.modal-log-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.modal-log-strip-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.modal-log-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.modal-log-tag.info { background: #0284c7; color: #ffffff; }
.modal-log-tag.success { background: #10b981; color: #ffffff; }
.modal-log-tag.warn { background: #f59e0b; color: #ffffff; }
.modal-log-tag.error { background: #ef4444; color: #ffffff; }

.modal-log-strip-body {
  font-size: 11.5px;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .futuristic-navbar {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .staged-inputs-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   CELEBRATORY SUCCESS MODAL & HIGH-DEF LIST VIEW STYLES
   ======================================================== */

.success-modal-card {
  max-width: 860px;
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
}

.success-modal-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
  border-bottom: 1px solid #bbf7d0;
}

.success-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #dcfce7;
  border: 1px solid #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.success-modal-tag {
  font-size: 10px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.success-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0;
  letter-spacing: -0.3px;
}

.success-modal-subtitle {
  font-size: 12px;
  color: #475569;
  margin: 0;
}

.modal-drn-hero {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #0284c7;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.modal-drn-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-drn-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #64748b;
  text-transform: uppercase;
}

.modal-drn-value {
  font-size: 24px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 1px;
}

.modal-drn-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #64748b;
}

.modal-section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-docs-mapped-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.modal-doc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.modal-doc-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.modal-doc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-doc-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modal-doc-badge-num {
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.modal-doc-filename {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-doc-size {
  font-size: 11px;
  color: #64748b;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.modal-doc-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  background: #ecfdf5;
  color: #16a34a;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.modal-doc-irn-strip {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-doc-irn-digits {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #0369a1;
  letter-spacing: 0.5px;
}

.modal-doc-subtext {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 8px;
}

/* ========================================================
   RIGHT-HAND "BATCH GENERATION OUTPUT" CLEAN LIST VIEW STYLING
   (Only File Name, IRN Number, DRN Number - No extra clutter)
   ======================================================== */

.result-docs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.clean-output-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.clean-output-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.clean-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.clean-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.clean-item-index {
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}

.clean-pdf-icon {
  flex-shrink: 0;
}

.clean-filename-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.clean-verified-tag {
  font-size: 10px;
  font-weight: 800;
  background: #ecfdf5;
  color: #16a34a;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.clean-numbers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 640px) {
  .clean-numbers-grid {
    grid-template-columns: 1fr;
  }
}

.clean-number-box {
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.clean-number-box.irn-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.clean-number-box.drn-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.clean-number-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.clean-number-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.irn-box .clean-number-label {
  color: #0284c7;
}

.drn-box .clean-number-label {
  color: #475569;
}

.clean-number-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.irn-box .clean-number-val {
  color: #0369a1;
}

.drn-box .clean-number-val {
  color: #1e293b;
}

.btn-clean-copy {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-clean-copy:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}


