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

body {
  font-family: Arial, sans-serif;
  background: #1e1e1e;
  color: #f0f0f0;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.top-nav {
  padding: 20px;
  background-color: #222;
  text-align: center;
  color: #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
}


.nav-bar ul {
  display: flex;
  justify-content: center;
  background-color: #444;
  list-style: none;
  flex-wrap: wrap;
}

.nav-bar ul li {
  margin: 10px 20px;
}

.nav-bar ul li a {
  color: #fff;
  text-decoration: none;
}

.nav-bar ul li a.cta-button {
  background-color: #e53935;
  color: #fff !important;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 5px;
  transition: background-color 0.3s;
  text-decoration: none;
}

.nav-bar ul li a.cta-button:hover {
  background-color: #d32f2f;
}

.nav-bar ul li a:hover {
  text-decoration: underline;
}

/* Dropdown Menu */
.nav-bar ul li.dropdown {
  position: relative;
}

.nav-bar ul li .dropbtn {
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

.nav-bar ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: #444;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 1;
}

.nav-bar ul li .dropdown-content a {
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.nav-bar ul li .dropdown-content a:hover {
  background-color: #555;
}

.nav-bar ul li:hover .dropdown-content {
  display: block;
}


.main-layout {
  display: flex;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  gap: 20px;
}

.sidebar {
  padding: 10px;
  background: #2a2a2a;
  border-radius: 8px;
  text-align: center;
  min-height: 100%;
}

.left-sidebar {
  width: 300px;
}

.right-sidebar {
  width: 300px;
}

.left-sidebar .menu-list {
  list-style: none;
  margin-top: 10px;
  padding-left: 0;
  text-align: left;
}

.left-sidebar .menu-list li {
  margin-bottom: 8px;
}

.left-sidebar .menu-list li a {
  color: #90caf9;
  text-decoration: none;
  font-size: 15px;
}

.left-sidebar .menu-list li a:hover {
  text-decoration: underline;
}

.right-sidebar .banner {
  background: #444;
  margin: 10px 0;
  padding: 20px;
  border-radius: 5px;
  font-size: 14px;
  color: #fff;
  text-align: center;
  border: 1px solid #666;
}

.content {
  flex: 1;
  min-width: 0;
}

.container {
  background: #2c2c2c;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

label {
  margin-top: 20px;
  display: block;
  font-weight: bold;
}

textarea {
  width: 100%;
  height: 120px;
  margin-top: 5px;
  padding: 10px;
  font-family: monospace;
  background: #111;
  color: #fff;
  border: 1px solid #444;
  border-radius: 5px;
  resize: vertical;
}

textarea[readonly] {
  background-color: #222;
  color: #0f0;
}

button {
  margin-top: 10px;
  padding: 12px;
  background-color: #2196F3;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

button:hover {
  background-color: #1976D2;
}

.go-top {
  background: #28a745;
}

.go-top:hover {
  background: #218838;
}

#messageBox {
  color: #ff5555;
  font-weight: bold;
  margin-top: 10px;
  white-space: pre-line;
}

footer {
  background: #111;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

footer a {
  color: #ffd700;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p:last-child {
  font-size: 13px;
  color: #aaa;
}


@media screen and (max-width: 992px) {
  .main-layout {
    flex-direction: column;
  }

  .sidebar, .content {
    width: 100% !important;
  }

  .right-sidebar, .left-sidebar {
    order: 2;
  }

  .content {
    order: 1;
  }
}

.section-box {
  background-color: #202020;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.section-header {
  background: linear-gradient(to right, #444, #333);
  padding: 10px;
  font-weight: bold;
  font-size: 16px;
  color: #ffd700;
  border-radius: 6px 6px 0 0;
  margin-bottom: 15px;
  text-align: center;
}

.left-sidebar .section-box {
  background-color: #252525;
}

.right-sidebar .section-box {
  background-color: #292929;
}

.content .section-box {
  background-color: #2e2e2e;
}