:root {
  --primary-dark: #1a1a2e;
  --secondary-dark: #16213e;
  --accent-gold: #ffd700;
  --accent-gold-light: #ffe866;
  --text-light: #ffffff;
  --text-muted: #adb5bd;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 60px;
  color: var(--text-light);
  background: linear-gradient(to bottom, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  background-color: var(--primary-dark);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-background-size: cover; /* iOS fix */
}

/* Starry background */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.star {
  position: absolute;
  background-color: white;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: twinkle var(--twinkle-duration, 3s) infinite ease-in-out;
  pointer-events: none;
}

#stars-small .star {
  width: 4px;
  height: 4px;
  --twinkle-duration: 4s;
}

#stars-medium .star {
  width: 6px;
  height: 6px;
  --twinkle-duration: 5s;
}

#stars-large .star {
  width: 8px;
  height: 8px;
  --twinkle-duration: 6s;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Generate stars programmatically in JavaScript instead of using box-shadow */

@keyframes float-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100vh);
  }
}

/* Fixed footer styling */
footer {
  background-color: var(--secondary-dark);
  color: var(--text-muted);
  padding: 1.2rem 0;
  width: 100%;
  margin-top: auto;
  bottom: 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.star.large {
  width: 3px;
  height: 3px;
}

/* Navigation styling */
.navbar {
  background-color: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-weight: 700;
  color: var(--accent-gold) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-light) !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-gold) !important;
}

/* Form styling */
.form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  color: var(--text-light);
}

/* Make date picker calendar icon white */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.form-label {
  font-weight: 500;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.card {
  background-color: rgba(22, 33, 62, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.card-header {
  background-color: rgba(26, 26, 46, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
  font-weight: 600;
}

/* Button styling */
.btn-primary, .btn-warning {
  background-color: var(--accent-gold);
  border: none;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 20px 40px;
  font-size: 1.2rem;
}

.btn-primary:hover, .btn-warning:hover {
  background-color: var(--accent-gold-light);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  color: var(--primary-dark);
}

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  }
}

/* Progress steps */
.progress-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Main content spacing */
.main-content {
  margin-bottom: 5rem;
}

.progress-container::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 33.33%;
  color: var(--text-muted);
  font-weight: 500;
}

.progress-step::before {
  content: '';
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  z-index: 1;
  transition: all 0.3s ease;
}

.progress-step.active::before {
  background-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.progress-step.active {
  color: var(--accent-gold);
}

.progress-step.completed::before {
  background-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.progress-step.completed {
  color: var(--accent-gold);
}

/* Horoscope display styling */
.horoscope-card {
  background: rgba(22, 33, 62, 0.7);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.horoscope-text {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text-light);
}

.horoscope-sign {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.horoscope-sign i {
  margin-right: 10px;
}

/* Footer styling */
.footer-container {
  background-color: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-light);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 0;
  position: fixed !important;
  bottom: 0;
  z-index: 1000;
  font-size: 0.9rem;
}

.footer-container a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-container a:hover {
  color: var(--accent-gold);
}

/* Loading overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 46, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
}

.spinner-container {
  text-align: center;
}

.spinner-border {
  width: 4rem;
  height: 4rem;
  color: var(--accent-gold) !important;
}