/* === TOPBAR === */
.topbar {
  height: 200px;
  padding: 10px;
  border-radius: 20px;
  background-color: #111; /* dark background for modern look */
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

/* Title Styling */
.topbar-center {
  color: #f0f0f0; /* soft white title */
  text-shadow: 1px 1px 3px #000;
}

/* Left and Right sections */
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar img {
  width: 100px;
  height: 100px;
  border-radius: 25px;
  margin: 0;
}

/* === NAVIGATION === */
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  padding: 8px 12px;
  background-color: #1f1f1f;
  color: #dddddd;
  text-align: right;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
}

nav ul li a:hover {
  background-color: #333;
}

body:not(.dark) nav ul li a:hover {
  color: #9a5de1;
  box-shadow: 0 0 10px rgba(154, 93, 225, 0.4);
}

body.dark nav ul li a:hover {
  color: #8affc1;
  box-shadow: 0 0 10px rgba(138, 255, 193, 0.6);
}

topbar h3 {
  padding-left: 10px;
}

.switch {
  display: flex;
  height: 34px;
  position: relative;
  width: 60px;
}

.switch input {
  display: none;
}

.slider {
  background-color: #444;
  border-radius: 34px;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
}

.slider:before {
  background-color: #f0f0f0;
  bottom: 4px;
  content: "☀️";
  height: 26px;
  left: 4px;
  position: absolute;
  text-align: center;
  transition: 0.4s;
  width: 26px;
  font-size: 16px;
  line-height: 26px;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #666;
}

input:checked + .slider:before {
  transform: translateX(26px);
  content: "🌙";
  background-color: #999;
}

/* === GENERAL === */
html, .topbar {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  margin: 0 auto;
}
