@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Primary colors - Forest Green from the Gangtok logo */
  --color-brand: #3b7a35;
  --color-brand-light: #52a34c;
  --color-brand-dark: #224d1e;

  /* Secondary Accent - Himalayan Wave Blue from the logo bottom waves */
  --color-accent: #008eb3;
  --color-accent-light: #22d3ee;
  --color-accent-dark: #00607a;

  /* Highlight Accent - Golden Spire from the Stupa/Monastery */
  --color-gold: #dca817;
  --color-gold-light: #f2be22;
  --color-gold-dark: #b8820c;

  /* Backgrounds - Set to clean white to match the logo background seamlessly */
  --color-theme-bg: #ffffff;
  --color-theme-bg-dark: #f8fafc;

  --color-glow: rgba(59, 122, 53, 0.35);
}

body {
  background-color: var(--color-theme-bg) !important;
  color: #334155 !important; /* Slate 700 for maximum readability */
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #0f172a !important; /* Premium dark slate */
}

/* Base tailwind utility overrides for Light Theme with organic forest accents */
.text-white {
  color: #0f172a !important;
}
.text-gray-100 {
  color: #0f172a !important;
}
.text-gray-200 {
  color: #0f172a !important;
}
.text-gray-300 {
  color: #1e293b !important;
}
.text-gray-400 {
  color: #475569 !important;
}
.text-gray-500 {
  color: #64748b !important;
}
.text-gray-600 {
  color: #94a3b8 !important;
}

.text-brand-light {
  color: var(--color-brand-dark) !important;
}
.text-brand {
  color: var(--color-brand) !important;
}

.bg-brand {
  background-color: var(--color-brand) !important;
}
.bg-theme-bg {
  background-color: var(--color-theme-bg) !important;
}
.bg-theme-bg-dark {
  background-color: var(--color-theme-bg-dark) !important;
}
.bg-theme-bg-dark\/50 {
  background-color: rgba(248, 250, 252, 0.85) !important;
}

/* Transparent Background Overrides */
.bg-white\/5 {
  background-color: #f1f5f9 !important; /* Slate 100 */
}
.bg-white\/10 {
  background-color: #e2e8f0 !important; /* Slate 200 */
}
.bg-white\/20 {
  background-color: #cbd5e1 !important; /* Slate 300 */
}

/* Border Overrides */
.border-white\/5, .border-white\/10, .border-white\/20, .border-white\/30 {
  border-color: #e2e8f0 !important;
}

/* Features Grid background from section */
section[style*="background-color: rgba(6, 5, 21, 0.5)"] {
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Glassmorphism Overrides */
.glass-card {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(24px);
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
  transition: all 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(59, 122, 53, 0.5) !important;
  box-shadow: 0 20px 40px -15px rgba(59, 122, 53, 0.2) !important;
  transform: translateY(-2px);
}

.glass-nav {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(40px);
  border-radius: 1.25rem;
  box-shadow: 0 10px 35px -10px rgba(15, 23, 42, 0.06) !important;
}

/* Custom override to ensure the main navbar container gets the glass look */
nav div.max-w-7xl {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(24px) !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06) !important;
}

/* Buttons */
.primary-button {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  background-color: var(--color-brand) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(59, 122, 53, 0.25) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05) !important;
}

.primary-button:hover {
  background-color: var(--color-brand-light) !important;
  box-shadow: 0 10px 30px rgba(59, 122, 53, 0.45) !important;
  transform: translateY(-2px);
}

/* Input Fields & Forms */
input, select, textarea {
  background-color: #ffffff !important;
  color: #0b1f0c !important;
  border: 1px solid #cbdad0 !important;
}
input::placeholder, textarea::placeholder {
  color: #7d9a82 !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-brand) !important;
  box-shadow: 0 0 0 4px rgba(59, 122, 53, 0.25) !important;
}

/* Custom CTA Button & Menu in Dynamic Details (themed with deep blue wave color) */
#cta-button {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 30px rgba(0, 142, 179, 0.3) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
#cta-button svg {
  stroke: #ffffff !important;
}
#cta-menu {
  background: #ffffff !important;
  color: var(--color-accent) !important;
  border: 1px solid #cbdad0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}
#cta-menu li {
  color: #0b1f0c !important;
}
#cta-menu li:hover {
  background-color: rgba(0, 142, 179, 0.1) !important;
}

/* Navbar active / hover overrides - Golden highlights for active tabs */
.hover\:text-purple-500:hover {
  color: var(--color-gold) !important;
}
.text-purple-500 {
  color: var(--color-gold) !important;
}
.bg-purple-950\/20 {
  background-color: rgba(220, 168, 23, 0.15) !important;
}
.border-purple-500\/20 {
  border-color: rgba(220, 168, 23, 0.25) !important;
}
.shadow-purple-500\/10 {
  box-shadow: 0 10px 15px -3px rgba(220, 168, 23, 0.15) !important;
}
.via-purple-500\/20 {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(220, 168, 23, 0.4), var(--tw-gradient-to) !important;
}

/* Card Category Badges Overrides - Leaf green background */
.bg-purple-500\/80 {
  background-color: rgba(59, 122, 53, 0.9) !important;
  color: #ffffff !important;
}
.border-purple-400\/20 {
  border-color: rgba(59, 122, 53, 0.3) !important;
}

/* Glow lightning animations */
.animate-lightning::before {
  background-color: rgba(59, 122, 53, 0.3) !important;
}

@keyframes lightning {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
}

/* Category Badge background custom override */
span.bg-brand\/20 {
  background-color: rgba(59, 122, 53, 0.2) !important;
  color: var(--color-brand-dark) !important;
  border-color: rgba(59, 122, 53, 0.3) !important;
}

/* Admin / General panel specific light theme fixes */
.bg-slate-900, .bg-gray-900, .bg-purple-950 {
  background-color: #ffffff !important;
}
.border-slate-800, .border-gray-800, .border-purple-900 {
  border-color: #cbdad0 !important;
}

/* Focus Ring/Border Overrides */
.focus\:ring-purple-500:focus, .focus\:ring-2:focus {
  --tw-ring-color: var(--color-brand) !important;
  border-color: var(--color-brand) !important;
}

/* Custom input styling overrides to override inline styles */
input[style*="background-color: #181622"], select[style*="background-color: #181622"], textarea[style*="background-color: #181622"] {
  background-color: #ffffff !important;
  border-color: #cbdad0 !important;
  color: #0b1f0c !important;
}

/* Accent texts like text-purple-400, text-purple-300 */
.text-purple-400, .text-purple-300 {
  color: var(--color-brand) !important;
}

/* Inline purple background-color glows override */
div[style*="background-color: rgba(168, 85, 247"] {
  background-color: rgba(59, 122, 53, 0.15) !important;
}

/* Unlock / Login / Submit admin button styles */
button[class*="bg-gradient-to-r from-[#7c3aed] to-[#a855f7]"],
button[class*="from-purple-600 to-purple-400"],
div[class*="from-purple-600 to-purple-400"] {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light)) !important;
  color: #ffffff !important;
  border-color: rgba(0,0,0,0.05) !important;
}

.shadow-purple-500\/20 {
  box-shadow: 0 10px 15px -3px rgba(59, 122, 53, 0.25) !important;
}

.bg-purple-500\/10 {
  background-color: rgba(59, 122, 53, 0.15) !important;
}

.border-purple-500\/30 {
  border-color: rgba(59, 122, 53, 0.3) !important;
}

/* Deep Blue variations for Quick Actions/Buttons (adapted from waves) */
.text-green-400 {
  color: var(--color-accent) !important;
}

.bg-green-500\/10 {
  background-color: rgba(0, 142, 179, 0.1) !important;
}

.hover\:bg-green-500\/20:hover {
  background-color: rgba(0, 142, 179, 0.2) !important;
}

.border-green-500\/30 {
  border-color: rgba(0, 142, 179, 0.3) !important;
}

/* Danger Glass Card & Modals */
.glass-card-danger {
  background-color: rgba(254, 242, 242, 0.9) !important; /* Soft rose red background */
  backdrop-filter: blur(24px);
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(220, 38, 38, 0.08), 0 1px 3px rgba(220, 38, 38, 0.03) !important;
  transition: all 0.3s ease;
}
.glass-card-danger:hover {
  border-color: rgba(220, 38, 38, 0.5) !important;
  box-shadow: 0 20px 40px -15px rgba(220, 38, 38, 0.2) !important;
  transform: translateY(-2px);
}

.text-real-white {
  color: #ffffff !important;
}

/* --- Advertisement Popup Styles --- */
#ad-popup {
  background-color: #0b140d !important; /* Deep dark Pine/Navy background */
  border: 1.5px solid var(--color-brand) !important; /* Brand Green Border */
  box-shadow: 0 10px 30px rgba(59, 122, 53, 0.3) !important;
  border-radius: 1rem !important; /* Smooth rounded corners */
}

/* Ensure the heading (Company Name) is fully visible, crisp, and brand-aligned */
#ad-popup h4 {
  color: var(--color-brand-light) !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.25rem !important;
}

/* Ensure description is clean and readable on dark bg */
#ad-popup p {
  color: #d1ded4 !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
}

/* Restore translucent backgrounds/borders for close button against dark bg */
#ad-popup .bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.08) !important;
}
#ad-popup .bg-white\/5:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}
#ad-popup .bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.15) !important;
}
#ad-popup .bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
}
#ad-popup .border-white\/10 {
  border-color: rgba(255, 255, 255, 0.15) !important;
}
#ad-popup .text-gray-400 {
  color: #7d9a82 !important;
}
#ad-popup .hover\:text-white:hover {
  color: #ffffff !important;
}

/* AI Fetch Dropdown Custom Styles */
.fetch-dropdown-btn {
  background-color: var(--color-brand) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--color-brand-dark) !important;
  box-shadow: 0 4px 12px rgba(59, 122, 53, 0.2) !important;
}

.fetch-dropdown-btn:hover:not(:disabled) {
  background-color: var(--color-brand-light) !important;
  box-shadow: 0 6px 16px rgba(59, 122, 53, 0.35) !important;
}

.fetch-dropdown-menu {
  background-color: var(--color-brand) !important;
  border: 1.5px solid var(--color-brand-dark) !important;
  box-shadow: 0 10px 30px rgba(59, 122, 53, 0.3) !important;
}

.fetch-dropdown-item {
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.fetch-dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.15) !important;
}

.fetch-dropdown-item svg {
  stroke: #ffffff !important;
}

/* =========================================================================
   BULLETPROOF INLINE-STYLE OVERRIDES
   Intercepts elements with hardcoded inline green styles and binds them
   securely to the dynamic CSS variables configured above.
========================================================================= */

/* Overwrite elements with inline background-color: #2b823f */
*[style*="background-color: #2b823f"],
*[style*="background-color:#2b823f"],
*[style*="background: #2b823f"],
*[style*="background:#2b823f"] {
  background-color: var(--color-brand) !important;
  background: var(--color-brand) !important;
  color: #ffffff !important; /* Force high-contrast, premium white text */
}

/* Overwrite text colors with inline color: #2b823f */
*[style*="color: #2b823f"],
*[style*="color:#2b823f"] {
  color: var(--color-brand) !important;
}

/* Overwrite borders with inline border-color: #2b823f */
*[style*="border-color: #2b823f"],
*[style*="border-color:#2b823f"] {
  border-color: var(--color-brand) !important;
}

/* Overwrite SVG strokes with inline stroke: #2b823f */
*[style*="stroke: #2b823f"],
*[style*="stroke:#2b823f"],
svg[stroke="#2b823f"] {
  stroke: var(--color-brand) !important;
}

/* Ensure child icons inside overwritten green buttons are white */
*[style*="background-color: #2b823f"] svg,
*[style*="background-color: #2b823f"] i,
*[style*="background-color: #2b823f"] .lucide,
*[style*="background-color:#2b823f"] svg,
*[style*="background-color:#2b823f"] i,
*[style*="background-color:#2b823f"] .lucide {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* Overwrite inline brand gradients in profile/admin controls */
*[style*="background: linear-gradient(135deg, #2b823f"],
*[style*="background:linear-gradient(135deg,#2b823f"],
*[style*="background: linear-gradient(135deg, #2b823f, #4eb767)"] {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light)) !important;
}

/* Overwrite inline rgba green background highlights */
div[style*="background-color: rgba(43, 130, 63"],
span[style*="background-color: rgba(43, 130, 63"],
*[style*="background-color: rgba(43, 130, 63, 0.15)"],
*[style*="background-color: rgba(43, 130, 63, 0.3)"] {
  background-color: rgba(59, 122, 53, 0.15) !important;
  border-color: rgba(59, 122, 53, 0.3) !important;
}

/* Golden status badges / highlights */
.text-yellow-400,
.text-yellow-500,
*[style*="color: #f2be22"],
*[style*="color: #dca817"] {
  color: var(--color-gold) !important;
}

.bg-yellow-500\/10,
.bg-yellow-500\/20,
*[style*="background-color: rgba(245, 158, 11"],
*[style*="background-color: rgba(234, 179, 8"] {
  background-color: rgba(220, 168, 23, 0.12) !important;
  border-color: rgba(220, 168, 23, 0.25) !important;
  color: var(--color-gold-dark) !important;
}

*[class*="border-yellow-400"],
*[class*="border-yellow-500"] {
  border-color: rgba(220, 168, 23, 0.3) !important;
}

/* Tailwind generated custom class overrides for #2b823f */
.from-\[\#2b823f\] {
  --tw-gradient-from: var(--color-brand) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 122, 53, 0)) !important;
}
.text-\[\#2b823f\] {
  color: var(--color-brand) !important;
}
.border-\[\#2b823f\]\/40 {
  border-color: rgba(59, 122, 53, 0.4) !important;
}
.via-\[\#2b823f\]\/50 {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(59, 122, 53, 0.5), var(--tw-gradient-to) !important;
}

/* Explicit high-contrast fix for price/ticket badges on cards */
div.absolute.bottom-3.left-3.backdrop-blur-md.rounded-full {
  background-color: var(--color-brand) !important;
  color: #ffffff !important;
  border: 1px solid rgba(59, 122, 53, 0.4) !important;
  box-shadow: 0 0 8px rgba(59, 122, 53, 0.3) !important;
}
