/**
 * MumbaiSkillZone - Phase 1 Enhancements Stylesheet
 * Integrates Additively with style.css and direct-selling.css
 * Brand Palette:
 * Primary Navy: #0A2B63, #0E5BB7
 * Secondary Amber/Orange: #F59E0B, #EA580C
 * Accent Forest Green: #15803D, #22C55E
 * Neutral Backgrounds: #F8FAFC, #FFFFFF
 */

/* ========================================================
   1. GLOBAL & UTILITY TOKENS
   ======================================================== */
.font-monospace-sm {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11.5px;
}
.badge-soft-primary { background-color: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-soft-success { background-color: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.badge-soft-warning { background-color: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.badge-soft-danger  { background-color: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.badge-soft-info    { background-color: #F0F9FF; color: #0369A1; border: 1px solid #BAE6FD; }
.badge-soft-purple  { background-color: #FAF5FF; color: #7E22CE; border: 1px solid #E9D5FF; }

.prototype-notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  color: #9A3412;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

/* ========================================================
   2. PUBLIC NAVIGATION ENHANCEMENTS
   ======================================================== */
.msz-navbar .dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(10, 43, 99, 0.12);
  border: 1px solid #E2E8F0;
  padding: 8px;
}
.msz-navbar .dropdown-item {
  padding: 8px 14px;
  font-size: 13.5px;
  border-radius: 8px;
  font-weight: 500;
  color: #334155;
  transition: all 0.18s ease;
}
.msz-navbar .dropdown-item:hover {
  background-color: #EFF6FF;
  color: #0E5BB7;
  padding-left: 18px;
}
.msz-navbar .dropdown-item.active {
  background-color: #0A2B63;
  color: #FFFFFF;
}

/* ========================================================
   3. MOBILE DRAWER SIDEBAR (MEMBER & ADMIN)
   ======================================================== */
.msz-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.msz-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

body.msz-drawer-open {
  overflow: hidden !important;
}

@media (max-width: 991.98px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px !important;
    max-width: 85vw;
    height: 100vh;
    z-index: 1045;
    background: #FFFFFF !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 40px 0 !important;
  }
  .dashboard-sidebar.admin-sidebar {
    background: #0A192F !important;
  }
  .dashboard-sidebar.open {
    transform: translateX(0);
  }
  .msz-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--msz-border);
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 2;
  }
  .dashboard-sidebar.admin-sidebar .msz-drawer-header {
    background: #0A192F;
    border-color: #1E293B;
  }
}

@media (min-width: 992px) {
  .msz-drawer-header {
    display: none !important;
  }
  .msz-drawer-backdrop {
    display: none !important;
  }
}

/* Sidebar Section Headers */
.sidebar-section-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94A3B8;
  padding: 16px 16px 6px 16px;
  margin: 0;
}
.admin-sidebar .sidebar-section-heading {
  color: #64748B;
}

.dashboard-sidebar .nav-link {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 10px;
  margin: 2px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334155;
  transition: all 0.2s ease;
}
.dashboard-sidebar .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}
.dashboard-sidebar .nav-link:hover {
  background: #F1F5F9;
  color: #0A2B63;
}
.dashboard-sidebar .nav-link.active {
  background: #EFF6FF;
  color: #0E5BB7;
  font-weight: 600;
}
.admin-sidebar .nav-link {
  color: #94A3B8;
}
.admin-sidebar .nav-link:hover {
  background: #1E293B;
  color: #FFFFFF;
}
.admin-sidebar .nav-link.active {
  background: linear-gradient(135deg, #0E5BB7 0%, #0A2B63 100%);
  color: #FFFFFF;
}

/* ========================================================
   4. TRUST SYSTEM UI CARDS & ID CARD STYLING
   ======================================================== */
.trust-id-card-wrapper {
  perspective: 1000px;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.trust-id-card {
  background: linear-gradient(145deg, #0A2B63 0%, #071E43 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(10, 43, 99, 0.25);
  border: 2px solid #F59E0B;
  box-sizing: border-box;
}
@media (max-width: 576px) {
  .trust-id-card {
    padding: 16px;
  }
}
.trust-id-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.trust-id-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.trust-id-photo {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  border: 3px solid #F59E0B;
  object-fit: cover;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.trust-qr-placeholder {
  width: 68px;
  height: 68px;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.trust-official-card {
  background: #FFFFFF;
  border: 1px solid var(--msz-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.25s ease;
  height: 100%;
  box-shadow: var(--msz-shadow-sm);
}
.trust-official-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--msz-shadow-md);
  border-color: #0E5BB7;
}
.trust-official-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px auto;
  border: 3px solid #EFF6FF;
  box-shadow: 0 4px 12px rgba(10, 43, 99, 0.08);
}

.trust-donor-card {
  background: #FFFFFF;
  border: 1px solid var(--msz-border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s ease;
  height: 100%;
}
.trust-donor-card:hover {
  box-shadow: var(--msz-shadow-sm);
  border-color: #10B981;
}

/* ========================================================
   5. MEMBERSHIP 6 PLANS CARDS
   ======================================================== */
.membership-tier-card {
  background: #FFFFFF;
  border: 1px solid var(--msz-border);
  border-radius: 18px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--msz-shadow-sm);
}
.membership-tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 43, 99, 0.12);
}
.membership-tier-card.featured {
  border: 2px solid #F59E0B;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
}
.membership-price-tag {
  font-size: 32px;
  font-weight: 800;
  color: #0A2B63;
  line-height: 1.1;
}
.membership-benefit-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex-grow: 1;
}
.membership-benefit-list li {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 11px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.membership-benefit-list li i {
  color: #16A34A;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ========================================================
   6. 5 COURSE LEVELS CARDS
   ======================================================== */
.course-level-pill {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.course-level-1 { background: #F1F5F9; color: #475569; }
.course-level-2 { background: #EFF6FF; color: #1D4ED8; }
.course-level-3 { background: #FEF3C7; color: #B45309; }
.course-level-4 { background: #FAF5FF; color: #7E22CE; }
.course-level-5 { background: #FEF2F2; color: #B91C1C; }

.msz-course-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--msz-border);
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--msz-shadow-sm);
}
.msz-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--msz-shadow-md);
  border-color: #0E5BB7;
}
.msz-course-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #F1F5F9;
  overflow: hidden;
}
.msz-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.msz-course-card:hover .msz-course-thumb img {
  transform: scale(1.05);
}

/* ========================================================
   7. AFFILIATE 8-STEP PROCESS TIMELINE
   ======================================================== */
.affiliate-step-card {
  background: #FFFFFF;
  border: 1px solid var(--msz-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  height: 100%;
  position: relative;
  transition: all 0.25s ease;
}
.affiliate-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--msz-shadow-md);
  border-color: #0E5BB7;
}
.affiliate-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A2B63 0%, #0E5BB7 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(10, 43, 99, 0.2);
}

/* ========================================================
   8. AFFILIATE 3-LEVEL NETWORK (DISTINCT FROM MLM)
   ======================================================== */
.affiliate-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.tier-direct  { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.tier-level-1 { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.tier-level-2 { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.tier-level-3 { background: #FAF5FF; color: #7E22CE; border: 1px solid #E9D5FF; }

.affiliate-tree-card {
  background: #FFFFFF;
  border: 1px solid var(--msz-border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}
.affiliate-tree-card:hover {
  background: #F8FAFC;
  border-color: #0E5BB7;
}

/* ========================================================
   9. LEADERBOARD PODIUM & LIST
   ======================================================== */
.leaderboard-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin: 30px 0 40px 0;
  flex-wrap: wrap;
}
.podium-item {
  text-align: center;
  width: 200px;
  max-width: 100%;
}
.podium-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px 16px;
  border: 2px solid var(--msz-border);
  box-shadow: var(--msz-shadow-md);
  position: relative;
  transition: transform 0.25s ease;
}
.podium-card:hover {
  transform: translateY(-4px);
}
.podium-card.rank-1 {
  border-color: #F59E0B;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
  padding-top: 32px;
}
.podium-card.rank-2 {
  border-color: #94A3B8;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}
.podium-card.rank-3 {
  border-color: #CD7F32;
  background: linear-gradient(180deg, #FFF7ED 0%, #FFFFFF 100%);
}
.podium-badge-icon {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.rank-1 .podium-badge-icon { background: #F59E0B; }
.rank-2 .podium-badge-icon { background: #64748B; }
.rank-3 .podium-badge-icon { background: #CD7F32; }

.podium-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px auto;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========================================================
   10. METRIC STAT CARDS
   ======================================================== */
.msz-metric-box {
  background: #FFFFFF;
  border: 1px solid var(--msz-border);
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  transition: all 0.2s ease;
  box-shadow: var(--msz-shadow-sm);
}
.msz-metric-box:hover {
  box-shadow: var(--msz-shadow-md);
  border-color: #CBD5E1;
}
.msz-metric-label {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.msz-metric-value {
  font-size: 26px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

/* ========================================================
   11. COMMISSION RULES CONFIGURABLE WARNING BOX
   ======================================================== */
.commission-policy-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid #F59E0B;
  border-radius: 12px;
  padding: 16px 20px;
  color: #92400E;
  font-size: 13.5px;
}
.commission-tag-configurable {
  background: #FEF3C7;
  color: #92400E;
  border: 1px dashed #D97706;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ========================================================
   12. CLIENT THREE-DOT MENU & LEGAL CMS STYLES
   ======================================================== */
.msz-threedot-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #334155;
  transition: all 0.2s ease;
  cursor: pointer;
}
.msz-threedot-btn:hover,
.msz-threedot-btn:focus {
  background-color: #F1F5F9;
  color: #0A2B63;
}
.msz-threedot-btn::after {
  display: none !important;
}
.msz-threedot-menu {
  min-width: 260px;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 43, 99, 0.16);
  border: 1px solid #E2E8F0;
}
.msz-threedot-menu .dropdown-header {
  padding: 6px 12px 4px;
  letter-spacing: 0.5px;
}
.msz-threedot-menu .dropdown-item {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13.5px;
}
.msz-mobile-threedot-section {
  border: 1px solid #E2E8F0;
}
.btn-white {
  background-color: #FFFFFF;
  color: #1E293B;
}
.btn-white:hover {
  background-color: #F8FAFC;
  color: #0A2B63;
}

