/* ========= Grundlayout ========= */
:root {
  --theme: #4f46e5;
  --inactive: #94a3b8;
}

body {
  margin: 0;
  background: #f3f4f6;
  font-family: 'Montserrat', sans-serif;
}

#dsb-dashboard {
  max-width: 1280px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
}

/* ========= Main-Bereich ========= */
.dsb-main {
  display: flex;
  height: 80vh;
}

/* Linke Haupt-Sidebar */
.dsb-sidebar {
  width: 180px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.dsb-sidebar-logo {
  padding: 1rem;
  text-align: center;
}

.dsb-sidebar-logo img {
  height: 2rem;
}

.dsb-sidebar-logo .dsb-name {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.dsb-sidebar button {
  padding: 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: .95rem;
  color: var(--inactive);
  display: flex;
  align-items: center;
}

.dsb-sidebar button .dsb-icon {
  margin-right: 0.5rem;
}

.dsb-sidebar button.active {
  background: var(--theme);
  color: #fff;
}

.dsb-sidebar.minimized {
  width: 60px;
}

.dsb-sidebar.minimized button {
  text-align: center;
  padding: 1rem 0;
  justify-content: center;
}

.dsb-sidebar.minimized button .dsb-label {
  display: none;
}

#dsb-toggle-sidebar {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  text-align: right;
}

/* Content-Area */
.dsb-content-area {
  flex: 1;
  padding: 2rem;
  overflow: auto;
  background: #fff;
}

/* Separate-Ansicht-Link */
.dsb-separate-link {
  display: inline-block;
  font-size: .85rem;
  margin-bottom: 1rem;
  background: #eef2ff;
  padding: .25rem .5rem;
  border-radius: 4px;
  color: var(--theme);
  text-decoration: none;
}

.dsb-separate-link:hover {
  background: #e0e7ff;
}

/* Mobile View Adjustments */
@media (max-width: 768px) {
  .dsb-sidebar {
    width: 60px;
  }

  .dsb-sidebar button {
    text-align: center;
    padding: 1rem 0;
    justify-content: center;
  }

  .dsb-sidebar button .dsb-label {
    display: none;
  }

  .dsb-content-area {
    transform: scale(0.8);
    transform-origin: top left;
    width: 125%; /* Compensate for 20% scale reduction */
    height: 125%; /* Compensate for 20% scale reduction */
  }

  .dsb-content-area iframe,
  .dsb-content-area .dsb-separate-link {
    transform: scale(1); /* Prevent nested scaling */
  }
}