/* ============================================================
   PROMPTDEKH.IN — WORDPRESS-STYLE WEB INSTALLATION WIZARD
   High-DPI, Responsive Dark Glassmorphic Installer
   ============================================================ */

:root {
  --inst-bg: #0a0815;
  --inst-sidebar: #0f0c20;
  --inst-card: #141126;
  --inst-card-subtle: #191530;
  --inst-border: rgba(255, 255, 255, 0.09);
  --inst-border-hover: rgba(168, 85, 247, 0.45);
  --inst-text: #f1f5f9;
  --inst-muted: #94a3b8;
  --inst-subtle: #64748b;
  --inst-purple: #8b5cf6;
  --inst-purple-dark: #6d28d9;
  --inst-purple-light: #a855f7;
  --inst-pink: #ec4899;
  --inst-green: #10b981;
  --inst-green-glow: rgba(16, 185, 129, 0.2);
  --inst-red: #ef4444;
  --inst-yellow: #f59e0b;
  --inst-radius: 14px;
  --inst-radius-sm: 8px;
  --inst-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --inst-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--inst-font);
  background-color: var(--inst-bg);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(236, 72, 153, 0.08) 0%, transparent 45%);
  color: var(--inst-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.installer-wrapper {
  width: 100%;
  max-width: 1080px;
  background: var(--inst-card);
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(139, 92, 246, 0.1);
  display: grid;
  grid-template-columns: 290px 1fr;
  overflow: hidden;
  min-height: 620px;
}

/* ===== LEFT SIDEBAR: STEPS PROGRESS ===== */
.installer-sidebar {
  background: var(--inst-sidebar);
  border-right: 1px solid var(--inst-border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-brand {
  margin-bottom: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--inst-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--inst-purple-light);
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

.installer-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--inst-radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--inst-border);
  color: var(--inst-subtle);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--inst-muted);
  line-height: 1.25;
}

.step-sub {
  font-size: 11px;
  color: var(--inst-subtle);
  margin-top: 2px;
}

/* Step States */
.step-item.active {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.step-item.active .step-circle {
  background: linear-gradient(135deg, var(--inst-purple), var(--inst-purple-dark));
  color: #fff;
  border-color: var(--inst-purple-light);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
}

.step-item.active .step-title {
  color: #fff;
}

.step-item.completed .step-circle {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--inst-green);
  color: #34d399;
}

.step-item.completed .step-title {
  color: #cbd5e1;
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--inst-border);
  font-size: 11.5px;
  color: var(--inst-subtle);
}

.sidebar-footer span {
  display: block;
  margin-top: 3px;
}

/* ===== RIGHT MAIN CONTENT AREA ===== */
.installer-main {
  display: flex;
  flex-direction: column;
  background: var(--inst-card);
  position: relative;
}

.installer-header {
  padding: 26px 32px 18px;
  border-bottom: 1px solid var(--inst-border);
  position: relative;
}

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

.step-counter {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--inst-purple-light);
}

.main-title {
  font-family: var(--inst-heading);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.main-desc {
  font-size: 13.5px;
  color: var(--inst-muted);
  margin-top: 4px;
}

/* Live Progress Bar */
.progress-bar-wrap {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--inst-purple), var(--inst-pink));
  transition: width 0.35s ease;
}

.installer-body {
  padding: 30px 32px;
  flex: 1;
  overflow-y: auto;
}

.installer-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--inst-border);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--inst-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  line-height: 1.4;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--inst-purple), var(--inst-purple-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--inst-purple-light), var(--inst-purple));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--inst-border);
  color: var(--inst-text);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--inst-border-hover);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius-sm);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--inst-purple-light);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
  background: rgba(0, 0, 0, 0.4);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-help {
  display: block;
  font-size: 11.5px;
  color: var(--inst-subtle);
  margin-top: 5px;
  line-height: 1.4;
}

/* ===== REQUIREMENTS CHECK TABLE ===== */
.req-table-wrap {
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.req-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--inst-subtle);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--inst-border);
  font-weight: 700;
}

.req-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--inst-border);
  font-size: 13px;
  color: var(--inst-text);
  vertical-align: middle;
}

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

.req-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.req-status-pill.pass {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.req-status-pill.fail {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== ALERTS & CALLOUTS ===== */
.inst-alert {
  padding: 14px 18px;
  border-radius: var(--inst-radius-sm);
  margin-bottom: 22px;
  font-size: 13.5px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.inst-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.inst-alert.info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
}

.inst-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
}

.inst-alert.danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.inst-alert.warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fcd34d;
}

/* ===== HERO & WELCOME CARD ===== */
.welcome-hero {
  text-align: center;
  padding: 20px 10px 10px;
}

.welcome-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.welcome-title {
  font-family: var(--inst-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.welcome-desc {
  font-size: 14.5px;
  color: var(--inst-muted);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.feature-card {
  background: var(--inst-card-subtle);
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius-sm);
  padding: 16px;
}

.feature-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card p {
  font-size: 12px;
  color: var(--inst-muted);
  line-height: 1.4;
}

/* ===== DATABASE INSTALLATION PROGRESS ===== */
.db-install-box {
  background: var(--inst-card-subtle);
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.db-progress-bar-container {
  height: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid var(--inst-border);
}

.db-progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--inst-purple), var(--inst-pink));
  border-radius: 20px;
  transition: width 0.3s ease;
}

.db-log-terminal {
  background: #090712;
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius-sm);
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #34d399;
  text-align: left;
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.6;
}

/* ===== SUCCESS COMPLETE SCREEN ===== */
.complete-screen {
  text-align: center;
  padding: 20px 10px;
}

.success-badge-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--inst-green);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

.complete-title {
  font-family: var(--inst-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.complete-desc {
  font-size: 14px;
  color: var(--inst-muted);
  max-width: 520px;
  margin: 0 auto 24px;
}

.summary-card {
  background: var(--inst-card-subtle);
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius-sm);
  padding: 18px;
  max-width: 480px;
  margin: 0 auto 28px;
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--inst-subtle);
}

.summary-value {
  color: #fff;
  font-weight: 600;
}

/* ===== LOCKED / SECURITY SCREEN ===== */
.locked-screen {
  text-align: center;
  padding: 30px 10px;
}

.lock-badge-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid var(--inst-red);
  color: #f87171;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.35);
}

/* ===== PASSWORD STRENGTH METER ===== */
.password-meter-wrap {
  margin-top: 8px;
}

.password-meter-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}

.password-meter-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-meter-fill.weak {
  width: 30%;
  background: var(--inst-red);
}

.password-meter-fill.medium {
  width: 65%;
  background: var(--inst-yellow);
}

.password-meter-fill.strong {
  width: 100%;
  background: var(--inst-green);
}

.password-meter-text {
  font-size: 11.5px;
  color: var(--inst-subtle);
  display: flex;
  justify-content: space-between;
}

/* ===== SPINNER & LOADING ===== */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
}

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

.text-success { color: var(--inst-green) !important; }
.text-danger { color: var(--inst-red) !important; }
.text-warning { color: var(--inst-yellow) !important; }
.text-muted { color: var(--inst-muted) !important; }

/* Responsive */
@media (max-width: 900px) {
  .installer-wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .installer-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--inst-border);
    padding: 20px;
  }

  .installer-steps {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 8px;
  }

  .step-info {
    display: none;
  }

  .step-item {
    padding: 6px;
  }

  .sidebar-footer {
    display: none;
  }

  .installer-header,
  .installer-body,
  .installer-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
