/* AquaX Admin Framework - Core & Theme Styling */
:root {
  --bg-primary: #0f1117;
  --bg-secondary: #181a20;
  --bg-tertiary: #21242d;
  --card-bg: #1e212b;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --green: #23a559;
  --red: #ed4245;
  --yellow: #f59e0b;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --text-main: #f2f3f5;
  --text-muted: #949ba4;
  --sidebar-width: 260px;
}

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

::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

details.bj-workflow-folder > summary::-webkit-details-marker {
  display: none;
}

details.bj-workflow-folder > summary {
  list-style: none;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main Layout Wrapper */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

/* Content Viewport */
.viewport {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs .separator {
  font-size: 10px;
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--accent);
  font-weight: 700;
}

/* Page Header Title Row */
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.page-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.worker-badge-slug {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .viewport {
    padding: 16px;
  }

  .page-title-row {
    flex-direction: column;
    gap: 12px;
  }
}
