
/* ===== Dynamic Sidebar Styles ===== */

.main-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  height: calc(100vh - 100px);
  margin-top: 60px;
  margin-bottom: 40px;
}

.sidebar {
  background-color: #f3f3f3;
  background-image: url('');
  background-size: cover;
  background-position: center;
  font-family: Arial, sans-serif;
  padding: 20px 10px;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  width: 220px;
  height: 100%;
  z-index: 999;
}

.sidebar a {
  display: block;
  padding: 12px 18px;
  margin: 4px 0;
  background: #ffffff;
  border-radius: 14px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
}

.sidebar a:hover {
  background: #b092c8;
}

.main-content {
  margin-left: 240px;
  padding: 40px;
  height: calc(100vh - 100px);
  overflow-y: auto;
}

@media (max-width: 768px) {
  .main-wrapper {
    flex-direction: column;
    margin-top: 80px;
    height: auto;
  }

  .sidebar {
    width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
    flex-direction: row !important;
    overflow-x: auto;
    justify-content: space-around;
    position: static !important;
    top: auto !important;
  }

  .sidebar a {
    flex: 1;
    text-align: center;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 20px;
  }
}
