@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  --workspace-font-family: 'Inter', 'Segoe UI', sans-serif;
  --workspace-heading-font-family: 'Source Serif 4', Georgia, serif;
}

html, body, .mud-typography, .mud-input, .mud-button-root {
  font-family: var(--workspace-font-family) !important;
}

body { background: var(--mud-palette-background, #f1f5f9); }

h1, h2, h3, .mud-typography-h4, .mud-typography-h5, .mud-typography-h6,
.app-page-title, .workspace-section-title, .sidebar-brand-name {
  font-family: var(--workspace-heading-font-family) !important;
}

.drawer-style {
  background: var(--mud-palette-surface, #fff) !important;
  border-right: 1px solid var(--mud-palette-lines-default, #e5e7eb) !important;
  box-shadow: 1px 0 12px rgba(0, 77, 64, .035) !important;
}

.sidebar-shell { padding: 20px 14px 16px; }
.sidebar-brand { min-height: 48px; padding: 0 8px 18px; margin-bottom: 12px; }
.sidebar-brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--mud-palette-primary, #004d40); color: #fff;
  box-shadow: 0 5px 12px rgba(0, 77, 64, .16);
}
.sidebar-brand-name { color: var(--mud-palette-primary, #004d40); font-weight: 700; }
.sidebar-shell .mud-nav-link { min-height: 42px; padding: 8px 11px; color: var(--mud-palette-text-secondary); }
.sidebar-shell .mud-nav-link-text { font-size: .875rem; }
.sidebar-shell .mud-nav-link-icon { font-size: 1.25rem; }
.sidebar-shell .mud-nav-link.active {
  background: color-mix(in srgb, var(--mud-palette-primary, #004d40) 10%, #fff) !important;
  color: var(--mud-palette-primary, #004d40) !important;
  box-shadow: none !important;
}
.sidebar-role-select .mud-input-control { margin: 0 4px 2px; }
.sidebar-role-select .mud-input-outlined-border { border-radius: 10px; }
.sidebar-role-select .mud-input-label { font-size: .78rem; }

.page-shell { padding: 0 28px 28px; }
.page-header { background: var(--mud-palette-surface, #fff); }
.page-header-inner { min-height: 72px; padding: 10px 0; }
.global-search { width: min(420px, 38vw); }
.global-search .mud-input-outlined-border { border-radius: 10px; }
.topbar-icon { background: var(--mud-palette-surface, #fff); }
.app-page-title { letter-spacing: -.025em; }

.admin-kpi-card, .admin-section, .settings-block, .workspace-section-card,
.workspace-dashboard-hero, .workspace-kpi-card, .admin-form-surface {
  border-color: var(--mud-palette-lines-default, #e5e7eb) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .055) !important;
}

.mud-button-filled-primary { box-shadow: 0 4px 10px rgba(0, 77, 64, .14); }

@media (max-width: 900px) {
  .page-shell { padding: 0 12px 16px; }
  .page-header-inner { min-height: auto; }
}

@media (max-width: 600px) {
  .page-shell { padding: 0 8px 12px; }
  .app-page-heading { padding-top: 14px; gap: 12px; }
}
