:root {
  --zedoor-crimson: #087f75;
  --zedoor-crimson-dark: #066960;
  --zedoor-crimson-light: #11a394;
}

body[data-theme="light"] {
  --bg-body: #f3f7f6;
  --bg-sidebar: #102c39;
  --bg-card: #ffffff;
  --bg-table: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: rgba(8, 127, 117, .07);
  --table-hover: rgba(8, 127, 117, .07);
  --border-color: #e0e9e7;
  --border-light: #e8efed;
  --text-primary: #142d3b;
  --text-secondary: #617680;
  --text-muted: #74868e;
  --shadow: 0 8px 24px rgba(23, 54, 61, .055);
  --shadow-hover: 0 14px 30px rgba(23, 54, 61, .1);
  --workspace-soft: #f0f6f4;
  --workspace-success: #14744f;
  --workspace-warning: #936114;
  --workspace-danger: #b9434d;
  --workspace-info: #236a91;
  --studio-teal: #087f75;
  --studio-gold: #d29a3d;
  --studio-tint: rgba(8, 127, 117, .06);
  --bs-primary: #087f75;
  --bs-primary-rgb: 8, 127, 117;
  --bs-body-bg: #f3f7f6;
  --bs-body-color: #142d3b;
  --bs-border-color: #e0e9e7;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.content :is(h1, h2, h3, h4, h5, h6),
.content .card-header,
.content .modal-title {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
}

.content :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 720;
  letter-spacing: -.035em;
}

.content h1.h2 {
  font-size: clamp(1.65rem, 2.4vw, 2rem);
}

#sidebar {
  width: 244px;
  min-width: 244px;
  background: linear-gradient(180deg, #12313d 0%, #0c2530 100%) !important;
  border-right-color: rgba(190, 225, 222, .12);
}

#sidebar .brand {
  padding: 0 16px 18px;
  border-bottom-color: rgba(190, 225, 222, .14);
}

#sidebar .brand-copy .brand-name {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .1em;
}

#sidebar .brand-copy small {
  color: #a4bac0;
  font-size: .56rem;
  letter-spacing: .14em;
}

#sidebar .nav-section {
  color: #8ca4aa;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .15em;
}

#sidebar .nav-link {
  min-height: 40px;
  margin: 3px 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  color: #bdcdd0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
}

#sidebar .nav-link i,
#sidebar .nav-group summary i {
  color: #88aaa9;
}

#sidebar .nav-link:hover,
#sidebar .nav-group summary:hover {
  color: #f4fbfa;
  background: rgba(255, 255, 255, .07);
}

#sidebar .nav-link.active {
  color: #f6fffd;
  background: linear-gradient(100deg, rgba(33, 166, 149, .33), rgba(33, 166, 149, .12));
  box-shadow: inset 3px 0 #e7b45e;
}

#sidebar .nav-link.active i {
  color: #f0c675;
}

#sidebar .nav-group {
  margin: 3px 10px;
  border-radius: 10px;
}

#sidebar .nav-group[open] {
  border-color: rgba(190, 225, 222, .11);
  background: rgba(255, 255, 255, .025);
}

#sidebar .nav-group summary {
  min-height: 40px;
  padding: 8px 11px;
  color: #b2c3c7;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: none;
}

body[data-theme="light"] #sidebar {
  background: linear-gradient(180deg, #12313d 0%, #0c2530 100%) !important;
}

body[data-theme="light"] #sidebar :is(.brand-copy .brand-name, .nav-link, .nav-section, .dropdown-header, .dropdown-item, .nav-link i) {
  color: #bdcdd0;
}

body[data-theme="light"] #sidebar .nav-link.active,
body[data-theme="light"] #sidebar .nav-link:hover {
  color: #f6fffd;
}

.content {
  padding: clamp(20px, 2.6vw, 38px) clamp(17px, 2.7vw, 40px);
  background: var(--bg-body);
}

.content :is(.card, .card-page, .workspace-focus, .workspace-project-card, .workspace-disclosure, .workspace-filter-form, .workload-filter-form) {
  border: 1px solid var(--border-color);
  border-radius: 14px !important;
  box-shadow: var(--shadow);
}

.content .card {
  overflow: hidden;
}

.content .card:hover {
  border-color: color-mix(in srgb, var(--studio-teal) 35%, var(--border-color));
  box-shadow: var(--shadow-hover);
}

.content .card-header {
  background: var(--workspace-soft);
  border-color: var(--border-color);
  font-family: Inter, system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 700;
}

.content .btn {
  min-height: 38px;
  border-radius: 9px !important;
  font-size: .78rem;
  font-weight: 700;
}

.content .btn-primary,
.content .btn-success {
  color: #fff;
  background: #087f75;
  border-color: #087f75;
}

.content .btn-primary:hover,
.content .btn-success:hover {
  background: #066960;
  border-color: #066960;
}

.content .btn-info {
  color: #fff;
  background: #168f83;
  border-color: #168f83;
}

.content .btn-info:hover {
  color: #fff;
  background: #087f75;
  border-color: #087f75;
}

.content :is(.form-control, .form-select) {
  min-height: 40px;
  border-radius: 9px !important;
  font-size: .82rem;
}

.content .table {
  font-size: .82rem;
}

.content .table thead th {
  color: var(--text-secondary);
  background: var(--workspace-soft);
  border-color: var(--border-color);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.content .table tbody td {
  border-color: var(--border-light);
  vertical-align: middle;
}

.content .badge {
  padding: .36rem .58rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 750;
}

.content .mini-stat,
.content .workload-person-metric {
  border-radius: 11px;
}

.content .workspace-focus {
  border-top: 3px solid var(--studio-teal);
}

.content .studio-hero {
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.content .workspace-page-heading,
.content .workspace-day-header,
.content .staff-page-toolbar {
  align-items: flex-start;
}

.staff-directory-person,
.profile-heading-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .85rem;
}

.staff-directory-identity {
  min-width: 0;
}

.team-photo,
.team-photo-fallback {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  background: color-mix(in srgb, var(--studio-teal) 12%, var(--workspace-soft));
  color: var(--studio-teal);
  font-size: .78rem;
  font-weight: 800;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-color);
}

.team-photo-large,
.team-photo-fallback.team-photo-large {
  width: 70px;
  height: 70px;
  flex-basis: 70px;
  font-size: 1rem;
}

@media (max-width: 900px) {
  #sidebar {
    width: 255px;
    min-width: 255px;
  }
}

@media (max-width: 575px) {
  .content {
    padding: 14px 14px 88px !important;
  }

  .content .card-body {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content .card,
  .content .btn,
  #sidebar .nav-link {
    transition: none !important;
  }
}
