/* Custom styling for Vedic Astrology Web App - Cosmic Indigo & Gold Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.75);
  --border-gold: rgba(212, 175, 55, 0.3);
  --gold-glow: rgba(212, 175, 55, 0.15);
  --accent-gold: #d4af37;
  --accent-amber: #f59e0b;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(30, 27, 75, 0.5) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(88, 28, 135, 0.3) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(15, 23, 42, 0.8) 0px, transparent 50%);
  background-attachment: fixed;
  color: #e2e8f0;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism containers */
.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 1rem;
}

.glass-card-gold {
  background: rgba(20, 24, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 32px 0 rgba(212, 175, 55, 0.1);
  border-radius: 1rem;
}

/* Cosmic input fields */
.cosmic-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  color-scheme: dark;
  transition: all 0.3s ease;
}

.cosmic-input::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1);
  cursor: pointer;
}

.cosmic-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}

/* Tab button active state */
.tab-btn.active {
  background: linear-gradient(135deg, #d4af37 0%, #b48811 100%);
  color: #0b0f19;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Astrological Planet Color Badges */
.planet-Sun { background-color: rgba(255, 69, 0, 0.2); color: #ff6b4a; border: 1px solid rgba(255, 69, 0, 0.4); }
.planet-Moon { background-color: rgba(226, 232, 240, 0.2); color: #f1f5f9; border: 1px solid rgba(226, 232, 240, 0.4); }
.planet-Mars { background-color: rgba(220, 20, 60, 0.2); color: #ff5277; border: 1px solid rgba(220, 20, 60, 0.4); }
.planet-Mercury { background-color: rgba(34, 139, 34, 0.2); color: #4ade80; border: 1px solid rgba(34, 139, 34, 0.4); }
.planet-Jupiter { background-color: rgba(218, 165, 32, 0.2); color: #fbbf24; border: 1px solid rgba(218, 165, 32, 0.4); }
.planet-Venus { background-color: rgba(255, 105, 180, 0.2); color: #f472b6; border: 1px solid rgba(255, 105, 180, 0.4); }
.planet-Saturn { background-color: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }
.planet-Rahu { background-color: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.4); }
.planet-Ketu { background-color: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.planet-Ascendant { background-color: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

/* Table styles */
.astro-table th {
  background: rgba(30, 41, 59, 0.8);
  color: #f1f5f9;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
}
.astro-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
}
.astro-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* HTMX Loading Indicator */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: flex;
}
.htmx-request.htmx-indicator {
  display: flex;
}
