:root {
  --bg-primary: #0a0d1c;
  --bg-secondary: rgba(13, 18, 36, 0.7);
  --accent-primary: #64ffda;
  --accent-secondary: #00b4d8;
  --aurora-green: rgba(163, 255, 187, 0.15);
  --aurora-blue: rgba(100, 217, 255, 0.15);
  --aurora-purple: rgba(167, 100, 255, 0.15);
  --text-primary: #e0e0e0;
  --text-secondary: #94a1b2;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Enhanced Stars Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(1px 1px at 2% 2%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
    radial-gradient(2px 2px at 15% 15%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
    radial-gradient(1px 1px at 30% 5%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 40% 25%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
    radial-gradient(1px 1px at 55% 10%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
    radial-gradient(2px 2px at 65% 45%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 75% 15%, rgba(255, 255, 255, 0.6) 1px, transparent 0),
    radial-gradient(1px 1px at 85% 35%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 95% 25%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
    radial-gradient(1px 1px at 20% 50%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 35% 75%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
    radial-gradient(1px 1px at 50% 95%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
    radial-gradient(2px 2px at 70% 65%, rgba(255, 255, 255, 0.6) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 90% 85%, rgba(255, 255, 255, 0.9) 1px, transparent 0);
  background-size: 300px 300px;
  opacity: 0.4;
  z-index: -2;
  animation: twinkle 8s infinite alternate;
}

/* Enhanced Aurora Effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(180deg,
      transparent 0%,
      var(--aurora-green) 20%,
      transparent 40%),
    linear-gradient(210deg,
      transparent 10%,
      var(--aurora-purple) 30%,
      transparent 50%),
    linear-gradient(150deg,
      transparent 30%,
      var(--aurora-blue) 50%,
      transparent 70%);
  filter: blur(70px);
  opacity: 0.6;
  z-index: -1;
  animation: aurora-flow 25s ease infinite;
  transform-origin: center;
}

@keyframes aurora-flow {
  0% {
    transform: translateY(0) translateX(0);
    filter: blur(70px) brightness(1);
  }
  25% {
    transform: translateY(-15%) translateX(5%);
    filter: blur(70px) brightness(1.2);
  }
  50% {
    transform: translateY(-5%) translateX(-5%);
    filter: blur(70px) brightness(0.8);
  }
  75% {
    transform: translateY(-20%) translateX(3%);
    filter: blur(70px) brightness(1.1);
  }
  100% {
    transform: translateY(0) translateX(0);
    filter: blur(70px) brightness(1);
  }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

/* Twinkle variations for different star groups */
@keyframes twinkle-1 {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes twinkle-2 {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes twinkle-3 {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px); /* Adjust for fixed footer */
  padding: 2rem 0 calc(2rem + 60px); /* Add padding for footer */
}

.container {
  flex: 1 0 auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  color: #0a0d1c;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
  color: white;
}

.btn-danger {
  background: #dc3545;
  border: none;
}

.btn-danger:hover {
  background: #bd2130;
  transform: translateY(-1px);
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
  color: white;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.header-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table {
  color: var(--text-primary);
  margin-bottom: 0;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.thead-dark th {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: none;
}

.table td, .table th {
  border-top: 1px solid var(--border-color);
  vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--text-secondary) !important;
}

code {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-primary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

code:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Updated Footer Styles */
.footer {
  background: none;
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 13, 28, 0);
  backdrop-filter: blur(8px);
  z-index: -1;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.footer:hover::before {
  background: rgba(10, 13, 28, 0.2);
  backdrop-filter: blur(12px);
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 0.2rem 0;
}

.footer a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background: var(--accent-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.footer a:hover {
  color: var(--accent-primary);
  transform: translateY(-1px);
  text-shadow: 0 4px 8px rgba(100, 255, 218, 0.3);
}

.footer a:hover::after {
  width: 100%;
  opacity: 1;
}

.footer-links {
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.footer:hover .footer-links {
  transform: translateY(-2px);
}

.footer-copyright {
  opacity: 0.8;
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.footer:hover .footer-copyright {
  opacity: 1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .header-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .table-responsive {
    margin: 0 -1.5rem;
    width: calc(100% + 3rem);
  }
} 