:root {
  --bg-color: #0b0c1a;
  --glass: rgba(255, 255, 255, 0.05);
  --card-glow: rgba(30, 144, 255, 0.25);
  --text: #f4f4f4;
  --muted: #999;
  --accent: #00bcd4;
  --primary: #1a73e8;
  --secondary: #26273b;
  --border: #2e2f40;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Centering Wrapper */
.center-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 2rem;
}

.container {
  width: 100%;
  max-width: 768px;
  text-align: center;
}

/* Typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle, #101524, #060612);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  animation: fadeIn 1.2s ease;
}

h1.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #fff;
  animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
  font-size: 2em;
  width: 24ch;
  margin: 60px auto 20px;
  text-align: center;
}

@keyframes typing {
  from { width: 0; }
  to { width: 24ch; }
}
@keyframes blink {
  50% { border-color: transparent; }
}

/* Buttons */
.btn {
  background-color: var(--primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(26,115,232,0.4);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background-color 0.3s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,115,232,0.6);
  background-color: #2563eb;
}

/* Glow Animation */
@keyframes glow {
  from { box-shadow: 0 0 8px rgba(10, 132, 255, 0.6); }
  to   { box-shadow: 0 0 20px rgba(10, 132, 255, 0.9); }
}
.glow {
  animation: glow 2s ease-in-out infinite alternate;
}

/* Fade-in Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 1s ease forwards;
}
.fade-in-delayed {
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards;
}

/* Inputs */
input[type="email"],
input[type="password"],
input[type="text"] {
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 12px 16px;
  color: var(--text);
  border-radius: var(--radius);
  margin-bottom: 16px;
  width: 80%;
  max-width: 400px;
}

/* File Upload Section */
#file-upload {
  display: none !important;
}
#file-name {
  min-width: 8rem;
  text-align: left;
  font-style: italic;
  color: var(--muted);
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  background-color: rgba(12, 12, 20, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav .logo {
  font-size: 1.7em;
  color: var(--accent);
  font-weight: bold;
  letter-spacing: 1px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}
nav ul li a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
nav ul li a:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.05);
}

.nav-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 188, 212, 0.2);
}
.nav-btn:hover {
  background: rgba(0, 188, 212, 0.3);
  transform: translateY(-1px);
  color: #fff;
}


/* Google Button */
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  color: white;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  font-weight: 600;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.google-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}
.google-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.google-icon svg {
  width: 100%;
  height: 100%;
}
.google-text {
  font-size: 1rem;
  color: #fff;
}

/* Loader */
.loader {
  width: 50px;
  height: 50px;
  margin: 40px auto;
  border: 5px solid var(--primary);
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
footer {
  text-align: center;
  background: rgba(10, 10, 20, 0.9);
  color: var(--muted);
  padding: 16px;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 8px;
  }

  .typewriter {
    font-size: 1.4em;
    width: 18ch;
  }

  form button,
  input {
    width: 90%;
  }

  .container {
    width: 95%;
  }
}

.admin-card {
  max-width: 800px;
  margin: 0 auto;
}

#user-list > div {
  backdrop-filter: blur(4px);
  background-color: rgba(30, 30, 40, 0.6);
}
