header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.sidebar {
  width: 260px;
  height: calc(100vh - 70px);
  background-color: #ffffff;
  border-right: 1px solid #dddddd;
  padding: 15px;
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
  position: fixed;
  top: 70px;
  left: 0;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.sidebar h4 {
  font-size: 15px;
  margin: 15px 0 8px 0;
  color: #333;
  font-weight: 500;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #ED8323;
}

.sidebar a, .sidebar button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #333333;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.sidebar a:hover,
.sidebar button:hover {
  background-color: #f1f1f1;
  color: #333;
  font-weight: 400;
}

.submenu {
  display: none;
  padding-left: 16px;
}

.submenu a {
  font-size: 14px;
  font-weight: 400;
  padding: 8px 15px;
  color: #444;
  margin: 0;
  border-radius: 0;
  background-color: #fff;
  border-left: 3px solid transparent;
}

.submenu a:hover {
  background-color: #f1f1f1;
  border-left: 3px solid #ED8323;
}

.active + .submenu {
  display: block;
}

.sidebar hr {
  margin: 15px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

.div-content {
  margin-left: 260px;
  flex-grow: 1;
  padding: 30px;
  box-sizing: border-box;
  margin-top: 70px;
}

.div-content iframe {
  width: 100%;
  height: calc(100vh - 70px);
  border: none;
  background-color: white;
}

@media (max-width: 768px) {
  .sidebar {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #dddddd;
    transform: translateX(-100%);
  }

  .sidebar:not(.active) {
    display: none;
  }

  .sidebar.active {
    display: block;
    transform: translateX(0);
  }

  .div-content {
    margin-left: 0;
    padding-top: 10px;
  }

  .div-content iframe {
    height: calc(100vh - 120px);
    min-height: 400px;
    overflow: auto;
  }

  header {
    padding: 10px;
  }
}