/* ═══════════════════════════════════════
   Tabby – Shared Styles (sevdesk-angelehnt)
   ═══════════════════════════════════════ */

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

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  display: flex;
  height: 100vh;
  overflow: hidden;
  color: #1a1a2e;
}

/* ── Sidebar (weiß, sevdesk-Stil) ── */
.sidebar {
  width: 248px;
  min-width: 248px;
  background: #ffffff;
  border-right: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  padding: 20px 12px 16px;
  height: 100vh;
  overflow: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  margin-bottom: 18px;
}

.logo-icon {
  width: 34px;
  height: 36px;
  background: #0F8C7F;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  color: #0F8C7F;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

/* ── Suchfeld ── */
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f4f5f7;
  border: 1px solid #eceef1;
  border-radius: 10px;
  padding: 9px 12px;
  margin: 0 2px 16px;
  color: #9aa0ab;
  font-size: 13px;
  cursor: text;
  transition: border-color 0.12s, background 0.12s;
}
.sidebar-search:hover { background: #eef0f3; }
.sidebar-search svg {
  width: 15px; height: 15px;
  stroke: #9aa0ab; fill: none; stroke-width: 2; flex-shrink: 0;
}
.sidebar-search .kbd {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #b6bcc6;
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 6px;
  padding: 1px 6px;
}

.nav-label {
  color: #9aa0ab;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 12px 6px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #4b5563;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background 0.12s, color 0.12s;
}
.nav-item:hover { background: #f4f5f7; }
.nav-item.active { background: #e6f4f2; color: #0F8C7F; }
.nav-item .icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .icon svg { width: 18px; height: 18px; fill: #6b7280; transition: fill 0.12s; }
.nav-item.active .icon svg { fill: #0F8C7F; }

.nav-badge {
  margin-left: auto;
  background: #ed4242;
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.sidebar-divider {
  height: 1px;
  background: #eceef1;
  margin: 8px 8px;
}

.sidebar-grow { flex: 1; }

.user-card {
  background: transparent;
  border-top: 1px solid #eceef1;
  border-radius: 0;
  padding: 12px 6px 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: #0F8C7F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-name { color: #1f2430; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.user-role { color: #9aa0ab; font-size: 10.5px; }

/* ── Shared main / page layout ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

/* ── Page header bar ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 20px;
  background: white;
  border-bottom: 1px solid #eef0f4;
  flex-shrink: 0;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
}

/* ── Scrollable content ── */
.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  background: #ffffff;
}

/* ── Buttons ── */
.btn-primary {
  background: #1f2430;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 9px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.btn-primary:hover { background: #11141c; }

.btn-outline {
  background: white;
  color: #555;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-outline:hover { background: #f9fafb; }

/* ── Status badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-gray   { background: #f3f4f6; color: #6b7280; }
.badge-orange { background: #fff7ed; color: #c2410c; }

/* ── Dot indicators ── */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green  { background: #22c55e; }
.dot-red    { background: #ed4242; }
.dot-gray   { background: #d1d5db; }
.dot-orange { background: #f59e0b; }

/* ── Pill tabs ── */
.pill-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pill-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #e5e7eb;
  color: #555;
  transition: all 0.12s;
  font-family: 'Inter', sans-serif;
}
.pill-tab.active {
  background: #1a1a2e;
  color: white;
}
.pill-tab:hover:not(.active) { background: #d1d5db; }
