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

:root {
  --color-brand: #ADF802;
  --color-brand-light: #c5f935;
  --color-brand-dark: #81ba00;
  --color-accent: #0f172a;
  --color-accent-light: #f8fafc;
  --color-theme-bg: #ffffff;
  --color-theme-bg-dark: #f8fafc;
  --color-glow: rgba(173, 248, 2, 0.35);
}

body {
  background-color: var(--color-theme-bg) !important;
  color: #1e293b !important; /* Slate 800 */
  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; /* Beautiful dark slate */
}

/* Base tailwind utility overrides for Light Theme with Lemon Green 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: #557f00 !important; /* Dark green for readable text accents */
}
.text-brand {
  color: #6a9c00 !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; /* Slate 200 */
}

/* 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.8) !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(173, 248, 2, 0.6) !important;
  box-shadow: 0 20px 40px -15px rgba(173, 248, 2, 0.25) !important;
  transform: translateY(-2px);
}

.glass-nav {
  background-color: rgba(255, 255, 255, 0.8) !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;
}

/* Logo Graphic Styling */
img[alt="Coimbatore Logo Background"] {
  filter: brightness(0.7) drop-shadow(0 0 100px rgba(173, 248, 2, 0.5)) !important;
  opacity: 0.18 !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: #0f172a !important;
  box-shadow: 0 8px 25px rgba(173, 248, 2, 0.35) !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(173, 248, 2, 0.5) !important;
  transform: translateY(-2px);
}

/* Input Fields & Forms */
input, select, textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
input::placeholder, textarea::placeholder {
  color: #94a3b8 !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #ADF802 !important;
  box-shadow: 0 0 0 4px rgba(173, 248, 2, 0.25) !important;
}

/* Custom CTA Button & Menu in Dynamic Details */
#cta-button {
  background: #ADF802 !important;
  color: #0f172a !important;
  box-shadow: 0 8px 30px rgba(173, 248, 2, 0.3) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
#cta-button svg {
  stroke: #0f172a !important;
}
#cta-menu {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}
#cta-menu li {
  color: #0f172a !important;
}
#cta-menu li:hover {
  background-color: rgba(173, 248, 2, 0.2) !important;
}

/* Navbar active / hover overrides */
.hover\:text-purple-500:hover {
  color: #557f00 !important;
}
.text-purple-500 {
  color: #557f00 !important;
}
.bg-purple-950\/20 {
  background-color: rgba(173, 248, 2, 0.15) !important;
}
.border-purple-500\/20 {
  border-color: rgba(173, 248, 2, 0.25) !important;
}
.shadow-purple-500\/10 {
  box-shadow: 0 10px 15px -3px rgba(173, 248, 2, 0.15) !important;
}
.via-purple-500\/20 {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(173, 248, 2, 0.4), var(--tw-gradient-to) !important;
}

/* Card Category Badges Overrides */
.bg-purple-500\/80 {
  background-color: rgba(173, 248, 2, 0.9) !important;
  color: #0f172a !important;
}
.border-purple-400\/20 {
  border-color: rgba(173, 248, 2, 0.3) !important;
}

/* Glow lightning animations */
.animate-lightning::before {
  background-color: rgba(173, 248, 2, 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(173, 248, 2, 0.2) !important;
  color: #4c6e00 !important;
  border-color: rgba(173, 248, 2, 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: #e2e8f0 !important;
}

/* Focus Ring/Border Overrides */
.focus\:ring-purple-500:focus, .focus\:ring-2:focus {
  --tw-ring-color: #ADF802 !important;
  border-color: #ADF802 !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: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Accent texts like text-purple-400, text-purple-300 */
.text-purple-400, .text-purple-300 {
  color: #557f00 !important;
}

/* Inline purple background-color glows override */
div[style*="background-color: rgba(168, 85, 247"] {
  background-color: rgba(173, 248, 2, 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, #ADF802, #c5f935) !important;
  color: #0f172a !important;
  border-color: rgba(0,0,0,0.05) !important;
}

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

.bg-purple-500\/10 {
  background-color: rgba(173, 248, 2, 0.15) !important;
}

.border-purple-500\/30 {
  border-color: rgba(173, 248, 2, 0.3) !important;
}

/* Green variations for Quick Add Content */
.text-green-400 {
  color: #557f00 !important;
}

.bg-green-500\/10 {
  background-color: rgba(173, 248, 2, 0.15) !important;
}

.hover\:bg-green-500\/20:hover {
  background-color: rgba(173, 248, 2, 0.25) !important;
}

.border-green-500\/30 {
  border-color: rgba(173, 248, 2, 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: #0b0f19 !important; /* Deep dark Slate/Navy background to contrast with white & brand green */
  border: 1.5px solid #ADF802 !important; /* Brand Lemon-Green Border */
  box-shadow: 0 10px 30px rgba(173, 248, 2, 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: #ADF802 !important; /* Standout green UI color for the company name */
  font-weight: 800 !important;
  font-size: 0.875rem !important; /* text-sm equivalent */
  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: #cbd5e1 !important; /* Slate 300 (light gray) instead of dark text */
  font-size: 0.75rem !important; /* text-xs */
  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: #94a3b8 !important;
}
#ad-popup .hover\:text-white:hover {
  color: #ffffff !important;
}
