/* ====== GLOBAL STYLES ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Roboto", Arial, sans-serif;
}

body {
  background-color: #f4f6f7;
  color: #1f2937;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====== HEADER ====== */
.site-header {
  background: #2b6e6e;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.site-header h1 {
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

/* ====== DARK MODE TOGGLE ====== */
.toggle-wrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

#darkModeToggle {
  width: 50px;
  height: 26px;
  background: #ccc;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 🌟 Glow effect on hover */
#darkModeToggle:hover {
  box-shadow: 0 0 6px 2px rgba(20, 184, 166, 0.6);
}

#darkModeToggle .dot {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
}

/* When dark mode is active */
body.dark #darkModeToggle {
  background: #2b6e6e;
}

body.dark #darkModeToggle .dot {
  transform: translateX(24px);
  background: #fff;
}

/* ====== NAVBAR ====== */
.navbar {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.navbar a {
  color: #e0f2f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: #ffd700; /* gold highlight */
}

/* ====== LOGIN / REGISTER CARD ====== */
.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card h2 {
  margin-bottom: 1rem;
  color: #2b6e6e;
}

.form-group {
  text-align: left;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

button {
  background: #2b6e6e;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
  background: #1f5252;
  box-shadow: 0 0 8px rgba(43, 110, 110, 0.4);
}

.redirect {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.redirect a {
  color: #2b6e6e;
  text-decoration: none;
  font-weight: 500;
}

.redirect a:hover {
  text-decoration: underline;
}

/* ====== HOME PAGE ====== */
.home-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.home-content {
  max-width: 600px;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-content h2 {
  color: #2b6e6e;
  margin-bottom: 1rem;
}

.home-content p {
  margin-bottom: 1rem;
}

/* ====== ABOUT PAGE ====== */
.about-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.about-card {
  background: #0d1b2a;
  color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 600px;
  margin: 3rem auto;
  border: 1px solid #2dd4bf;
}

.about-card h2 {
  color: #2dd4bf;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-card p {
  color: #f5f5f5;  /* bright white for readability */
  line-height: 1.7;
  font-size: 1rem;
}


.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #2b6e6e;
}

/* ====== FOOTER ====== */
.site-footer {
  background: #2b6e6e;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ====== DARK MODE STYLES (UPDATED) ====== */
body.dark {
  background-color: #0f172a;
  color: #f1f5f9;
}

/* Keep header and footer teal */
body.dark .site-header,
body.dark .site-footer {
  background: #2b6e6e;
  color: #fff;
}

/* Navbar links */
body.dark .navbar a {
  color: #cbd5e1;
}

body.dark .navbar a.active,
body.dark .navbar a:hover {
  color: #ffd700;
}

/* Cards */
body.dark .login-card,
body.dark .home-content,
body.dark .about-card {
  background: #1e293b;
  color: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border-top: 4px solid #2b6e6e;
}

/* Inputs */
body.dark input {
  background: #334155;
  color: #f1f5f9;
  border: 1px solid #64748b;
}

/* Buttons */
body.dark button {
  background: #2b6e6e;
  color: #fff;
}

body.dark button:hover {
  background: #1f5252;
  box-shadow: 0 0 8px rgba(43, 110, 110, 0.6);
}

/* Links */
body.dark .redirect a {
  color: #2dd4bf;
}

/* Profile pic accent */
body.dark .profile-pic {
  border-color: #2dd4bf;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
  .login-card,
  .home-content,
  .about-card {
    padding: 1.5rem;
  }

  .navbar {
    flex-direction: column;
    gap: 0.75rem;
  }

  #darkModeToggle {
    width: 46px;
    height: 24px;
  }
}
