/* Custom Styles for Mansha Brokrage Test - ROI & Commission Master */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #0f172a;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #06b6d4;
  --danger-color: #ef4444;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
}

.navbar-brand-custom {
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism & Modern Cards */
.custom-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease-in-out;
}

.custom-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.card-header-clean {
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
  padding: 1.25rem 1.5rem;
}

/* Stat Cards */
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.25rem;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-icon.primary { background: #eff6ff; color: #2563eb; }
.stat-icon.success { background: #ecfdf5; color: #059669; }
.stat-icon.warning { background: #fffbeb; color: #d97706; }
.stat-icon.purple  { background: #faf5ff; color: #9333ea; }
.stat-icon.danger  { background: #fef2f2; color: #dc2626; }
.stat-icon.teal    { background: #f0fdfa; color: #0d9488; }

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #64748b;
}

.stat-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Form Styles */
.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-group-text {
  border-radius: 10px 0 0 10px;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-right: none;
  color: #64748b;
  font-weight: 600;
}

.input-group > .form-control {
  border-radius: 0 10px 10px 0;
}

/* Level Table */
.level-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
}

.level-badge-t1 { background-color: #fee2e2; color: #991b1b; }
.level-badge-t2 { background-color: #fef3c7; color: #92400e; }
.level-badge-t3 { background-color: #dbeafe; color: #1e40af; }
.level-badge-t4 { background-color: #e0e7ff; color: #3730a3; }
.level-badge-t5 { background-color: #f3e8ff; color: #6b21a8; }

.table-custom th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1.5px solid #e2e8f0;
}

.table-custom td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
}

.table-custom tbody tr:hover {
  background-color: #f8fafc;
}

/* Nav Pills */
.nav-pills-custom .nav-link {
  border-radius: 10px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  transition: all 0.2s ease;
}

.nav-pills-custom .nav-link.active {
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Timeline schedule */
.timeline-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: -20px;
  width: 2px;
  background-color: #e2e8f0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #2563eb;
  border: 3px solid #dbeafe;
}

/* Code block modal */
pre.code-json {
  background-color: #0f172a;
  color: #38bdf8;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  max-height: 420px;
  overflow-y: auto;
}

/* Buttons */
.btn-primary-custom {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
}

.btn-primary-custom:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.btn-pill {
  border-radius: 20px;
}

/* Pulse animation for live badge */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
}

.badge-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Sticky form on desktop */
@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: 1.5rem;
  }
}

