/* Color Palette & Custom Heritage Styling */
:root {
  --heritage-gold: #ffc107;
  --heritage-dark: #1b1b1b;
  --heritage-sand: #fbf9f5;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--heritage-sand);
  color: #333333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar-brand .brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.08);
  padding: 4px;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
}

/* Navbar Links & AI Guide CTA */
.nav-link-custom {
  color: #cbd5e1 !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link-custom:hover {
  color: #fbbf24 !important;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-custom.active {
  color: #ffffff !important;
  background: rgba(245, 158, 11, 0.15);
  font-weight: 600;
}

/* AI Guide Nav CTA Button */
.nav-cta-btn {
  background: transparent;
  color: #fbbf24 !important;
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  transition: all 0.25s ease;
  text-decoration: none;
}

.nav-cta-btn i {
  color: #fbbf24;
  transition: color 0.25s ease;
}

.nav-cta-btn:hover {
  background-color: #f59e0b !important;
  color: #0f172a !important;
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.nav-cta-btn:hover i {
  color: #0f172a !important;
}

.nav-cta-btn.active {
  background-color: #fbbf24 !important;
  color: #0f172a !important;
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
  font-weight: 700;
}

.nav-cta-btn.active i {
  color: #0f172a !important;
}


/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.85)), url('/images/hero.png');
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--heritage-gold);
}

/* Site Cards */
.site-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.site-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.card-img-wrapper {
  height: 220px;
}

.site-img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.site-card:hover .site-img {
  transform: scale(1.04);
}

.site-card .card-body {
  min-height: 220px;
}

.site-card .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  min-height: 4.5em;
}

.site-detail-img {
  max-height: 380px;
  object-fit: cover;
}

/* Quick Prompt Buttons */
.quick-btn {
  font-size: 0.75rem;
  border-radius: 16px;
}

/* ==========================================================================
   Interactive India Map & State Heritage Explorer Styles
   ========================================================================== */

.map-page-main {
  background: radial-gradient(circle at 10% 20%, #f7f5f0 0%, #ece8df 100%);
  min-height: calc(100vh - 140px);
}

.explorer-header {
  background: #ffffff;
  border-left: 5px solid var(--heritage-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.title-glow {
  letter-spacing: 0.5px;
}

/* Column Transitions for Fluid Map Resizing */
.map-transition-col {
  transition: width 0.42s cubic-bezier(0.16, 1, 0.3, 1), flex 0.42s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Map Viewport Card */
.map-viewport-card {
  background: radial-gradient(circle at 50% 50%, #171d26 0%, #0c1017 100%);
  border: 1px solid #283344;
  height: 760px;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32) !important;
}

@media (max-width: 991px) {
  .map-viewport-card {
    height: 560px;
    min-height: 560px;
  }
}

/* Astrolabe subtle radar backdrop effect */
.map-viewport-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  border-radius: 50%;
  border: 1px dashed rgba(251, 191, 36, 0.06);
  pointer-events: none;
}
.map-viewport-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.04);
  pointer-events: none;
}

.glass-badge {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.svg-map-wrapper {
  width: 100%;
  height: 100%;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

/* Vector SVG Map Styling */
.india-map-vector {
  width: 100%;
  height: 100%;
  max-height: 720px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
  transition: transform 0.28s ease-out;
}

.india-map-vector path {
  fill: #222b37;
  stroke: #3c4b5e;
  stroke-width: 0.8;
  cursor: pointer;
  transition: fill 0.24s ease, stroke 0.24s ease, stroke-width 0.24s ease, filter 0.24s ease;
}

/* States with registered monuments */
.india-map-vector path.has-monuments {
  fill: #2c3848;
  stroke: #d97706;
  stroke-width: 1.15;
}

/* Hover Effect */
.india-map-vector path:hover {
  fill: #ea580c !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.85)) !important;
}

/* Active Selected State */
.india-map-vector path.active-state {
  fill: #c2410c !important;
  stroke: #fef08a !important;
  stroke-width: 2.8 !important;
  filter: drop-shadow(0 0 22px rgba(250, 204, 21, 0.95)) !important;
}

/* Capital & City dots in SVG */
.india-map-vector circle {
  fill: #fbbf24;
  stroke: #0f172a;
  stroke-width: 0.75;
  pointer-events: none;
  opacity: 0.85;
}

/* Tooltip */
.state-hover-tooltip {
  position: fixed;
  z-index: 1060;
  pointer-events: none;
  transform: translate(0, 0);
  transition: opacity 0.15s ease;
}

.tooltip-inner-card {
  background: rgba(12, 16, 23, 0.94);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
}

/* Legend Dots */
.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot-active {
  background-color: #ea580c;
  box-shadow: 0 0 8px #fde047;
}
.dot-has-sites {
  background-color: #2c3848;
  border: 1.5px solid #d97706;
}
.dot-standard {
  background-color: #222b37;
  border: 1px solid #3c4b5e;
}

/* State Detail Drawer Card */
.state-drawer-card {
  background: #ffffff;
  height: 760px;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(234, 179, 8, 0.35);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

@media (max-width: 991px) {
  .state-drawer-card {
    height: 680px;
    min-height: 600px;
  }
}

/* Inner Content Flex Container */
#drawer-content-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.drawer-hero-wrapper {
  flex-shrink: 0;
  height: 160px;
  position: relative;
  overflow: hidden;
}

.drawer-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.drawer-hero-wrapper:hover .drawer-hero-img {
  transform: scale(1.04);
}

.drawer-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(10, 13, 18, 0.92) 100%);
}

.drawer-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.25s ease;
  z-index: 5;
}
.drawer-close-btn:hover {
  background: rgba(220, 38, 38, 0.95);
  transform: rotate(90deg);
}

/* Dedicated AI Direct Card */
.ai-prompt-box-wrapper {
  flex-shrink: 0;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.ai-direct-card {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 10px;
  padding: 10px 12px;
}

.ai-icon-circle {
  width: 34px;
  height: 34px;
  background: #fbbf24;
  color: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

/* Horizontal scroll row for quick prompt chips (eliminates vertical crowding) */
.prompt-chips-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 0 2px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.prompt-chips-container::-webkit-scrollbar {
  height: 3px;
}

.prompt-chips-container::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.3);
  border-radius: 4px;
}

.quick-prompt-chip {
  flex: 0 0 auto;
  font-size: 0.74rem;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  max-width: 320px;
  display: inline-flex;
  align-items: center;
}
.quick-prompt-chip:hover {
  background: #fef08a !important;
  border-color: #f59e0b !important;
  color: #0f172a !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.2);
}

/* Drawer Navigation Tabs */
.drawer-tabs-wrapper {
  flex-shrink: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 14px;
  position: relative;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav-pills .nav-link {
  font-size: 0.82rem;
  padding: 6px 14px;
  color: #64748b;
  background: transparent;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.nav-pills .nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.nav-pills .nav-link.active {
  background: var(--heritage-gold);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35);
}

/* Flexible Scroll Area: generous breathing room */
.drawer-body-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 1.4rem 4rem 1.4rem !important;
  background: #ffffff;
}
.drawer-body-scroll::-webkit-scrollbar {
  width: 6px;
}
.drawer-body-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(234, 179, 8, 0.45);
  border-radius: 4px;
}
.drawer-body-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(234, 179, 8, 0.75);
}
.drawer-body-scroll::-webkit-scrollbar-track {
  background: #f8fafc;
}

/* Info Cards for Culture & Hallmarks */
.drawer-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.drawer-info-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* Fast Facts Cards */
.drawer-fact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--heritage-gold);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}
.drawer-fact-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  border-left-color: var(--heritage-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.drawer-fact-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.drawer-fact-value {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
}

/* Helper Spacing */
.mb-3\.5 {
  margin-bottom: 1.25rem;
}

/* Drawer Footer */
.drawer-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  z-index: 10;
  padding: 10px 16px;
}

/* Gallery inside drawer */
.gallery-thumb-card {
  height: 80px;
  background-color: #0f172a;
  border: 1px solid #e2e8f0;
}
.gallery-thumb-img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-thumb-card:hover .gallery-thumb-img {
  transform: scale(1.12);
}

/* Site Cards in Drawer */
.monument-drawer-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.monument-drawer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(234, 179, 8, 0.5) !important;
}

.site-drawer-thumb {
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}

.very-small {
  font-size: 0.72rem;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Animations */
.animate-fade-in {
  animation: fadeInDrawer 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDrawer {
  from {
    opacity: 0;
    transform: translateX(25px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Skeletons */
.skeleton-shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-hero { height: 180px; }
.skeleton-title { height: 28px; width: 60%; }
.skeleton-text { height: 16px; width: 40%; }
.skeleton-tab { height: 40px; }
.skeleton-para { height: 14px; }

/* Show More CTA Button Styling */
.show-more-cta {
  border: 2px solid #fbbf24;
  letter-spacing: 0.5px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.show-more-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(234, 179, 8, 0.35) !important;
  background-color: #f59e0b !important;
  color: #0f172a !important;
}
.show-more-cta:active {
  transform: translateY(-1px);
}

/* ==========================================================================
   Admin Management Console & Login Styling
   ========================================================================== */

/* Stat Metric Cards */
.stat-metric-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}
.stat-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

.stat-icon-badge {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Live Database Online Pulse Indicator */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Admin Table */
.admin-table thead {
  background-color: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.admin-table tbody tr {
  transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
  background-color: rgba(245, 158, 11, 0.035);
}

.monument-thumb-wrapper {
  background-color: #f1f5f9;
}

/* Admin Login Screen */
.admin-login-wrapper {
  background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
}

.admin-login-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.admin-login-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d97706, #fbbf24, #f59e0b);
}

.admin-lock-badge {
  width: 64px;
  height: 64px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Modal Form Polishing */
#monumentModal .form-control:focus,
#monumentModal .form-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.18);
}

.modal-img-preview-box {
  background-color: #f8fafc;
  border-style: dashed !important;
}

/* ==========================================================================
   Cultural Bazaar Marketplace Styling
   ========================================================================== */

.bazaar-hero {
  background: linear-gradient(135deg, #1b120c 0%, #29180b 50%, #150f0c 100%);
  border-bottom: 3px solid #d97706;
}

.bazaar-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.bazaar-product-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.bazaar-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.bazaar-card-img-wrap {
  height: 230px;
  background-color: #f1f5f9;
}

.bazaar-card-img {
  transition: transform 0.45s ease;
}

.bazaar-product-card:hover .bazaar-card-img {
  transform: scale(1.06);
}

.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bazaar-detail-img-box {
  background-color: #0f172a;
}

.bazaar-zoom-img {
  transition: transform 0.5s ease;
}

.bazaar-detail-img-box:hover .bazaar-zoom-img {
  transform: scale(1.04);
}

#productDetailTabs .nav-link {
  color: #64748b;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.2s ease;
}

#productDetailTabs .nav-link:hover {
  color: #0f172a;
  border-color: #cbd5e1;
}

#productDetailTabs .nav-link.active {
  background-color: #f59e0b !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-bazaar-action {
  transition: all 0.22s ease;
}

.btn-bazaar-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3) !important;
}

/* ==========================================================================
   Admin Sidebar & Layout Console Styling (High-Contrast & Refined)
   ========================================================================== */

.admin-layout-wrapper {
  background-color: #f1f5f9;
  min-height: calc(100vh - 72px);
}

.admin-sidebar-wrapper {
  background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  color: #f8fafc;
  width: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.admin-brand-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.admin-console-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.admin-profile-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  transition: background-color 0.2s ease;
}
.admin-profile-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.admin-avatar-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.admin-user-email {
  color: #ffffff !important;
  font-size: 0.88rem;
  line-height: 1.2;
}

.admin-sidebar-section-title {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}


.admin-nav-link {
  color: #e2e8f0 !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 16px;
  border-radius: 10px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
}

.admin-nav-icon {
  font-size: 1.15rem;
  color: #fbbf24;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.admin-nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.admin-nav-link:hover .admin-nav-icon {
  color: #f59e0b;
  transform: scale(1.1);
}

.admin-nav-link.active {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0f172a !important;
  font-weight: 800;
  border-color: #fbbf24 !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.admin-nav-link.active span {
  color: #0f172a !important;
}

.admin-nav-link.active .admin-nav-icon,
.admin-nav-link.active i {
  color: #0f172a !important;
}

.admin-quick-link {
  color: #cbd5e1 !important;
  font-weight: 500;
}
.admin-quick-link:hover {
  color: #ffffff !important;
}

.admin-logout-btn {
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.08);
  transition: all 0.2s ease;
}
.admin-logout-btn:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.admin-main-viewport {
  flex-grow: 1;
  overflow-x: hidden;
  background-color: #f8fafc;
}

@media (max-width: 991.98px) {
  .admin-sidebar-wrapper {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ==========================================================================
   Virasat Global Heritage Preloader
   ========================================================================== */
.virasat-page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #111827 0%, #06090e 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.5s ease, 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.virasat-page-loader.loader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(1.03) !important;
  pointer-events: none !important;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
}

.loader-logo-wrapper {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 15px rgba(245, 158, 11, 0.45));
  animation: loaderPulse 2.2s infinite ease-in-out;
}

.loader-pulse-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.35);
  animation: ringPulse 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.loader-brand-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.loader-subtitle {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  min-height: 20px;
  transition: color 0.3s ease;
}

.loader-progress-track {
  width: 250px;
  max-width: 80vw;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24);
  border-radius: 99px;
  transition: width 0.12s ease-out;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.85);
}

.loader-percentage-text {
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
}

@keyframes ringPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.15;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.8;
  }
}

@keyframes loaderPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}