/* Mela Samiti Standalone Bootstrap Installer Styles */
:root {
  --maroon: #781E28;
  --maroon-dark: #5A161E;
  --maroon-light: #9B2835;
  --gold: #D97706;
  --bg: #FAF8F4;
  --card-bg: #FFFFFF;
  --text: #242424;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success: #16A34A;
  --error: #DC2626;
  --warning: #F59E0B;
}

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

body {
  font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.installer-header {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: white;
  padding: 2.5rem 1rem 3.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.installer-header img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
  object-fit: cover;
  background-color: white;
}

.installer-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.installer-header p {
  font-size: 0.9rem;
  color: #FCD34D;
  font-weight: 500;
}

.container {
  max-width: 820px;
  width: 100%;
  margin: -1.75rem auto 3rem;
  padding: 0 1rem;
  flex: 1;
}

.wizard-card {
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Step Progress Indicator */
.stepper-nav {
  display: flex;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.stepper-nav::-webkit-scrollbar {
  display: none;
}

.step-item {
  flex: 1;
  min-width: 110px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: default;
  transition: all 0.2s;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E2E8F0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.step-item.active {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
  background: rgba(120, 30, 40, 0.03);
}
.step-item.active .step-num {
  background: var(--maroon);
  color: white;
}

.step-item.completed {
  color: var(--success);
}
.step-item.completed .step-num {
  background: var(--success);
  color: white;
}

/* Content Area */
.step-content {
  padding: 2rem;
  display: none;
}
.step-content.active {
  display: block;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #334155;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #CBD5E1;
  border-radius: 0.5rem;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background-color: white;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(120, 30, 40, 0.12);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .step-content { padding: 1.25rem; }
}

/* Button Styles */
.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #F1F5F9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--maroon);
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background: var(--maroon-dark);
}

.btn-secondary {
  background: #E2E8F0;
  color: #334155;
}
.btn-secondary:hover:not(:disabled) {
  background: #CBD5E1;
}

.btn-outline {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
}
.btn-outline:hover:not(:disabled) {
  background: #F8FAFC;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Check table */
.check-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.check-table th, .check-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  text-align: left;
}
.check-table th {
  background: #F8FAFC;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: #DCFCE7; color: #166534; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-warning { background: #FEF3C7; color: #92400E; }

/* Alert boxes */
.alert {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.alert-info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }

/* Progress log */
.terminal-box {
  background: #0F172A;
  color: #F8FAFC;
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  margin-top: 1rem;
}

.footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 1.5rem 1rem;
}
