body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #222;
  transition: 0.3s;
}
body.dark { background: #121212; color: #e9e9e9; }

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 25px;
}
body.dark .main-header { background: #1c1c1c; border-color: #333; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img { height: 28px; }

.main-nav a {
  color: inherit;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover { color: #007bff; }

.user-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.icon-link {
  position: relative;
  color: inherit;
  text-decoration: none;
}
.badge {
  position: absolute;
  top: -5px;
  right: -7px;
  background: #ff3b3b;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  padding: 2px 5px;
}
.login-btn {
  background: #007bff;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
}
.login-btn:hover { background: #005ecb; }

.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
body.dark .container { background: #1e1e1e; }

.notice {
  background: #e8f3ff;
  border-left: 4px solid #007bff;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.message {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
body.dark .message { background: #222; border-color: #333; }

.alert {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.alert.success { background: #e6ffe6; color: #1c6e1c; }
.alert.error { background: #ffe6e6; color: #a30000; }



/* MOBILE MENU */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #333;
  cursor: pointer;
}
.dark .menu-toggle {
  color: #eee;
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 15px 25px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
  }
  .header-nav.active {
    display: flex;
  }
  .dark .header-nav {
    background: #1f1f1f;
    border-color: #444;
  }
  .menu-toggle {
    display: block;
  }
}
