* {
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f8f9fa;
  color: #212529;
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

header {
  background: #0d6efd;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 120px;
  margin-left: 1rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.nav {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

main h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0d6efd;
}

form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  margin: 2rem 0;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  background: #0d6efd;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

button:hover {
  background: #0b5ed7;
}

footer {
  background: #343a40;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 5px solid #0d6efd;
}

#darkModeToggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #0d6efd;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1500;
}

#darkModeToggle:hover {
  background: #0b5ed7;
}

body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

body.dark-mode header,
body.dark-mode footer {
  background: #1f1f1f;
}

body.dark-mode .nav li a {
  color: #e0e0e0;
}

body.dark-mode .nav li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode form {
  background: #1f1f1f;
  color: #e0e0e0;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode textarea {
  background: #2c2c2c;
  color: #e0e0e0;
  border: 1px solid #555;
}

/* Sidebar for mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2000;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -220px;
    width: 200px;
    height: 100%;
    background: #0d6efd;
    padding-top: 4rem;
    transition: left 0.3s;
    z-index: 1500;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  }

  .nav.active {
    left: 0;
  }

  .nav li {
    margin: 0.5rem 0;
    text-align: center;
  }

  .nav li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }

  .nav li a:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}
