@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap');

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

body {
  font-family: 'Roboto Mono', monospace;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#app {
  max-width: 700px;
  margin: 20px auto;
  padding: 30px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #00e0ff;
  text-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #ff4081;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #e0e0e0;
  margin-bottom: 0.75rem;
}

p, label, input, select, textarea {
  font-size: 1rem;
  font-weight: 400;
}

.auth-container, .form-container, .dashboard-container {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.auth-container.active, .form-container.active, .dashboard-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.auth-box {
  text-align: center;
}

.auth-buttons button {
  background: linear-gradient(45deg, #00e0ff, #ff4081);
  border: none;
  color: #fff;
  padding: 12px 24px;
  margin: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}

.auth-buttons button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.7);
}

.form-container input, .form-container select, .form-container textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-container input:focus, .form-container select:focus, .form-container textarea:focus {
  border-color: #00e0ff;
  box-shadow: 0 0 8px rgba(0, 224, 255, 0.5);
  outline: none;
}

button[type="submit"] {
  background: linear-gradient(45deg, #00e0ff, #ff4081);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}

button[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.7);
}

#logout-btn {
  background: linear-gradient(45deg, #ff4081, #f44336);
}

#logout-btn:hover {
  box-shadow: 0 0 15px rgba(244, 67, 54, 0.7);
}

.theme-toggle button {
  background: none;
  border: 1px solid #00e0ff;
  color: #00e0ff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.theme-toggle button:hover {
  background: rgba(0, 224, 255, 0.2);
}

.dashboard-box {
  display: grid;
  gap: 1.5rem;
}

#profile, #upcoming-sessions, #courses, #request-session {
  background: rgba(30, 41, 59, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}

#profile:hover, #upcoming-sessions:hover, #courses:hover, #request-session:hover {
  transform: translateY(-5px);
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid #00e0ff;
  box-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
}

.verified-badge {
  display: inline-block;
  background: #ffd700;
  color: #1b263b;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: 0.5rem;
}

#sessions-list, #courses-list {
  list-style: none;
  padding: 0;
}

#sessions-list li, #courses-list li {
  background: rgba(255, 255, 255, 0.05);
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

#sessions-list li::before, #courses-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #00e0ff;
  margin-right: 0.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

a, .switch-link {
  color: #00e0ff;
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

a:hover, .switch-link:hover {
  color: #ffd700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.error {
  border: 1px solid #f44336;
}

.error-message {
  color: #f44336;
  font-size: 0.8rem;
  margin-top: 5px;
}

@media (max-width: 600px) {
  #app {
    max-width: 100%;
    margin: 10px;
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  button {
    width: 100%;
    padding: 12px;
  }

  .form-container input, .form-container select, .form-container textarea {
    font-size: 0.9rem;
  }
}

/* Light Theme */
body.light-theme {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  color: #1b263b;
}

body.light-theme #app {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme h1 {
  color: #0288d1;
  text-shadow: none;
}

body.light-theme h2 {
  color: #0288d1;
}

body.light-theme button {
  background: linear-gradient(45deg, #0288d1, #0277bd);
}

body.light-theme button:hover {
  box-shadow: 0 0 15px rgba(2, 136, 209, 0.7);
}

body.light-theme .form-container input, body.light-theme .form-container select, body.light-theme .form-container textarea {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1b263b;
}