/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f2f5f9;
  color: #333;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: linear-gradient(to bottom, #000000, #4c3401);
  color: #fff;
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  padding-top: 20px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.sidebar-header h2 {
  font-size: 22px;
}

.close-btn {
  font-size: 28px;
  cursor: pointer;
  display: none;
  color: #fff;
}

/* Sidebar nav */
.sidebar nav ul {
  list-style: none;
  padding: 20px 0;
}

.sidebar nav ul li {
  margin: 10px 0;
}

.sidebar nav ul li a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 12px 20px;
  font-size: 16px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.sidebar nav ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #fff;
}

/* Topbar */
.topbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-icon {
  font-size: 26px;
  cursor: pointer;
  color: #2c3e50;
  display: none;
}

/* Main content area */
.main-content {
  margin-left: 0;
  padding: 20px;
  transition: margin-left 0.3s ease;
}

/* Toggle logic */
.menu-toggle {
  display: none;
}

.menu-toggle:checked ~ .sidebar {
  left: 0;
}

.menu-toggle:checked ~ .main-content {
  margin-left: 260px;
}

/* Responsive */
@media (min-width: 769px) {
  .sidebar {
    left: 0;
  }

  .main-content {
    margin-left: 260px;
  }

  .close-btn {
    display: none;
  }

  .menu-icon {
    display: none;
  }
}

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

  .close-btn {
    display: block;
    padding: 0 20px;
  }

  .sidebar {
    top: 0;
    left: -260px;
  }

  .menu-toggle:checked ~ .sidebar {
    left: 0;
  }

  .menu-toggle:checked ~ .main-content {
    margin-left: 0;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  background: #1e3c72;
  color: white;
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.site-footer {
  background: #1e1e1e;
  color: #bbb;
  padding: 16px 0;
  width: 100%;
  position: fixed;       /* Always fixed at bottom */
  bottom: 0;
  left: 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.8);
  display: flex;         /* Flex for center alignment */
  align-items: center;   /* Vertically center */
  justify-content: center; /* Horizontally center */
  z-index: 999;
}

.footer-container {
  font-size: 14px;
  color: #ccc;
  text-align: center;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
}


@media (max-width: 600px) {
  .footer-container {
    font-size: 13px;
    padding: 0 10px;
  }
}

/* Main content layout beside sidebar */
.main-content {
  margin-left: 150px; /* same as sidebar width */
  padding: 20px;
  transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .topbar {
    display:none;
  }
}
