/* --- Layout Shell --- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  min-height: calc(100vh - 64px - 4rem);
  align-items: start;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 2rem;
  border-right: 1px solid var(--border-color);
  height: 100%;
}

.dashboard-content {
  min-width: 0;
}

/* --- Sidebar Profile & Role --- */
.user-profile {
  margin-bottom: 1rem;
}

.user-profile small {
  display: block;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.user-profile strong {
  display: block;
  word-break: break-all;
  font-size: 0.95rem;
}

.role-badge {
  font-size: 0.7rem;
  background-color: var(--logo-primary);
  color: var(--background-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.nav-section-title {
  margin: 1rem 0 0.5rem;
  font-size: 0.75rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
}

/* --- Base Primitives (Buttons & Badges) --- */
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headers);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px; /* Reduced size */
  padding: 0.5em 1em; /* Reduced padding */
  color: white;
  border: none;
  letter-spacing: 0.05em;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.action-btn i {
  margin-right: 6px;
  width: 16px;
  text-align: center;
}

.action-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
  transform: scale(0.96);
}

/* Indicator Style (Matches button size/shape but NO interaction) */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5em 1em; /* Matches action-btn */
  border-radius: 8px; /* Matches action-btn */
  min-width: 90px;
  cursor: default;
  pointer-events: none; /* Disables hover/click detection */
}

/* --- Variant Palettes --- */
.btn-primary {
  background: linear-gradient(to right, var(--main-secondary), #b86bb3);
  color: #fff;
}

.btn-success {
  background: linear-gradient(to right, #27ae60, #2ecc71);
  color: #fff;
}

.btn-danger {
  background: linear-gradient(to right, #c0392b, #e74c3c);
  color: #fff;
}

.btn-nav {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  color: var(--text-color);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
}

.btn-nav:hover {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
  filter: none;
}

.btn-nav.active {
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
  border-left: 4px solid var(--logo-primary);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
}

/* Dark Mode Adjustments */
html.dark .btn-nav:hover,
html.dark .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Global Context Styling --- */
.security-context {
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 2rem;
  background-color: rgba(0, 0, 0, 0.02);
}

html.dark .security-context {
  background-color: rgba(255, 255, 255, 0.05);
}

.security-context dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  margin: 0;
}

.security-context dt {
  font-weight: bold;
  opacity: 0.7;
}
