:root {
  --primary: #00f2fe;
  --secondary: #4facfe;
  --bg-dark: #070b19;
  --bg-card: rgba(13, 19, 36, 0.6);
  --text-main: #ffffff;
  --text-muted: #8892b0;
  --glow: 0 0 20px rgba(0, 242, 254, 0.5);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  /* Tech space background */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 242, 254, 0.1), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(79, 172, 254, 0.1), transparent 25%);
  position: relative;
  overflow-x: hidden;
}

/* Add animated grid background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(3);
  opacity: 0.3;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header & Typography */
h1 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--glow);
  letter-spacing: 2px;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 50px;
  letter-spacing: 1px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

/* Cards & Glassmorphism */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: var(--glow);
}

/* Feature Lists */
ul {
  list-style: none;
}

ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary);
  text-shadow: 0 0 5px var(--primary);
}

.highlight-text {
  color: var(--primary);
  font-weight: bold;
}

/* Navigation & Buttons */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.nav-card {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 40px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.nav-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.nav-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(0, 242, 254, 0.2), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.nav-card:hover::after {
  left: 150%;
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"] {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

input[type="file"]::-webkit-file-upload-button {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 15px;
  transition: var(--transition);
}

input[type="file"]::-webkit-file-upload-button:hover {
  box-shadow: var(--glow);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-submit.loading {
  position: relative;
  color: transparent !important;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Notices & Alerts */
.notice {
  background: rgba(255, 59, 48, 0.1);
  border-left: 4px solid #ff3b30;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 0 8px 8px 0;
  color: #ff3b30;
  font-weight: bold;
}

.notice.cyan {
  background: rgba(0, 242, 254, 0.1);
  border-left-color: var(--primary);
  color: var(--primary);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(13, 19, 36, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary);
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 300px;
  max-width: 450px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: toast-in 0.5s forwards;
}

.toast.error {
  border-left-color: #ff3b30;
}

.toast.show {
  transform: translateX(0);
}

.toast-content {
  flex-grow: 1;
}

@keyframes toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

.toast.hide {
  animation: toast-out 0.5s forwards;
}

/* Live Seat Indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 242, 254, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* Admin Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

th {
  color: var(--primary);
  font-weight: bold;
  background: rgba(0, 0, 0, 0.2);
}

tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  color: #fff;
  border-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary);
}
