/* ==========================================================================
   AASHIYANA PORTAL PHASE 2 — LUXURY RIGID GRAPHICS ENGINE
   ========================================================================== */

/* ─── DESIGN TOKENS & ROYAL BRAND SPECTRUM ──────────────────────────────── */
:root {
  /* Premium Dark Purple Base Palette */
  --purple-deep: #1A0B2E;       /* Deep obsidian luxury purple background */
  --purple-mid: #2D124D;        /* Rich interactive layer purple */
  --purple-light: #4A2475;      /* High-contrast brand purple */
  
  /* Metallic Gold Spectrums */
  --gold-deep: #8B6914;
  --gold-mid: #D4AF37;
  --gold-light: #F2D675;
  --gold-shine: linear-gradient(135deg, #C9A84C 0%, #F2D675 50%, #C9A84C 100%);
  
  /* Layout Controls & Shadows */
  --text-muted: #E2E8F0;
  --text-hint: #A0AEC0;
  --radius-sm: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);
  --border-gold: rgba(212, 175, 55, 0.25);
}

/* ─── GLOBAL NAVIGATION WRAPPER ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 92px;
  background: rgba(26, 11, 46, 0.96) !important; /* Luxury Purple */
  border-bottom: 1px solid var(--border-gold) !important;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 4%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  height: 52px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* ─── PC RIGHT-SIDE NAVIGATION GRID ─────────────────────────────────────── */
.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* Forces structural alignment to the far right on PC */
  margin-right: 20px;
}

.nav-link {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #E2E8F0 !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light) !important;
  background: rgba(212, 175, 55, 0.12) !important;
}

/* ─── INTERACTIVE RIGHT-SIDE DROPDOWNS ──────────────────────────────────── */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #E2E8F0 !important;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
}

.nav-dropdown-trigger:hover {
  color: var(--gold-light) !important;
  background: rgba(212, 175, 55, 0.12);
}

.custom-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0; /* Opens tightly to the right edge to match placement */
  left: auto;
  margin-top: 12px;
  width: 220px;
  background-color: var(--purple-mid);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  z-index: 1010;
  overflow: hidden;
  padding: 8px 0;
}

.custom-dropdown-panel.open {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 11px 20px;
  font-size: 13.5px;
  color: #E2E8F0 !important;
  text-decoration: none;
  transition: all var(--transition);
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.15) !important;
  color: var(--gold-light) !important;
  padding-left: 24px;
}

/* ─── AUTHENTICATION CONTROL CENTERS ────────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar-trigger {
  background: none;
  border: 2px solid var(--gold-mid);
  padding: 0; cursor: pointer;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
  transition: transform var(--transition);
}

.user-avatar-trigger:hover {
  transform: scale(1.05);
  border-color: var(--gold-light);
}

.user-avatar-trigger img {
  width: 100%; height: 100%; object-fit: cover;
}

.avatar-fallback {
  width: 100%; height: 100%;
  background: var(--gold-shine);
  color: var(--purple-deep);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.user-panel-width {
  right: 0; left: auto;
  width: 240px;
}

.user-meta-header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  margin-bottom: 6px;
}

.user-name-title { font-size: 14px; font-weight: 600; color: #FFFFFF; }
.user-role-badge {
  font-size: 11px; color: var(--gold-light);
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px;
}

.logout-btn {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  margin-top: 6px; color: #F87171 !important;
}
.logout-btn:hover {
  background: rgba(248, 113, 113, 0.1) !important;
  color: #EF4444 !important;
}

/* ─── PREMIUM LUXURY ACCENT UI CONTROLS ─────────────────────────────────── */
.btn-signin {
  padding: 10px 22px;
  font-size: 13.5px; font-weight: 500;
  color: #FFFFFF !important;
  background: transparent;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
}
.btn-signin:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-light); color: var(--gold-light) !important;
}

.btn-cta {
  background: linear-gradient(135deg, #8B6914, #C9A84C, #8B6914) !important;
  color: #FFFFFF !important;
  padding: 11px 24px;
  font-size: 13.5px; font-weight: 600;
  border-radius: var(--radius-sm);
  border: none !important;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
  transition: all var(--transition) !important;
  text-decoration: none; cursor: pointer;
}
.btn-cta:hover {
  background: var(--gold-light) !important;
  color: var(--purple-deep) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold) !important;
}

/* ─── NOTIFICATION HUD COMPONENT ────────────────────────────────────────── */
.notif-bell {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #F2D675;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition); font-size: 18px;
}
.notif-bell:hover { background: rgba(212, 175, 55, 0.22); }

.notif-bell .badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #C9001E; color: #fff;
  border-radius: 9px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--purple-deep);
}

.notif-panel {
  position: fixed; top: 92px; right: 4%; width: min(380px, calc(100vw - 32px));
  max-height: 70vh; overflow-y: auto;
  background: #FFFFFF; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(26, 11, 46, 0.3);
  border: 1px solid var(--border-gold);
  z-index: 1500; display: none; padding: 8px;
}
.notif-panel.open { display: block; }
.notif-panel::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #8B6914, #F2D675, #D4AF37, #F2D675, #8B6914);
}

/* ─── RESPONSIVE SCALABILITY LAYOUT ENGINES ─────────────────────────────── */
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 22px; height: 15px; background: transparent; border: none; cursor: pointer; padding: 0;
}
.nav-hamburger span {
  display: block; width: 100%; height: 2px; background-color: #FFFFFF; border-radius: 2px;
}

.mobile-menu {
  display: none; position: fixed; top: 92px; left: 0; right: 0;
  background-color: var(--purple-deep) !important;
  border-top: 1px solid var(--border-gold);
  border-bottom: 3px solid var(--gold-mid);
  padding: 1.5rem 0; flex-direction: column;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  z-index: 999; max-height: calc(100vh - 92px); overflow-y: auto;
}
.mobile-menu.open { display: flex; }

@media (min-width: 992px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
}

@media (max-width: 992px) {
  .navbar { height: 82px; padding: 0 2%; }
  .mobile-menu { top: 82px; max-height: calc(100vh - 82px); }
  .site-logo { height: 44px !important; }
  .notif-panel { top: 82px; right: 2%; }
}

@media (max-width: 576px) {
  .navbar { height: 72px; padding: 0 1rem; }
  .mobile-menu { top: 72px; max-height: calc(100vh - 72px); }
  .site-logo { height: 38px !important; }
  .btn-cta { padding: 8px 16px; font-size: 12px; }
  .notif-panel { top: 72px; right: 1rem; width: calc(100vw - 2rem); }
}
/* Custom Bootstrap Overlays */
.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: #d4af37 !important;
}
.dropdown-item {
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #d4af37 !important;
}

/* Morphing Navbar-Toggler Close State Styling */
#nav-hamburger.active .line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#nav-hamburger.active .line-2 {
    opacity: 0;
}
#nav-hamburger.active .line-3 {
    transform: rotate(-45deg) translate(4px, -4px);
}
/* ─── SYSTEM CORE BACKEND STATUS BADGES ─────────────────────────────────── */
.status-pill {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.s-pending    { background: #FDF6E3; color: #8B6914; }
.s-approved   { background: #e9f7ec; color: #1f8033; }
.s-needs_edit { background: #fff3e0; color: #b87a00; }
.s-rejected   { background: #fdecec; color: #c9001e; }
.s-removed    { background: #eaeaea; color: #555; }