/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --border: #e4e7ec;
  --border-hover: #c8cdd6;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  --pri-high: #ef4444;
  --pri-high-bg: #fef2f2;
  --pri-med: #f97316;
  --pri-med-bg: #fff7ed;
  --pri-low: #22c55e;
  --pri-low-bg: #f0fdf4;

  --col-todo-hdr: #374151;
  --col-doing-hdr: #92400e;
  --col-done-hdr: #166534;

  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-bg: rgba(99, 102, 241, .08);
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .10), 0 2px 4px rgba(0, 0, 0, .06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .14);
  --transition: all .18s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  line-height: 1.5;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input,
textarea,
select {
  font-family: inherit;
  outline: none;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   JIRA GLOBAL TOPBAR (ATLASSIAN JIRA DESIGN SYSTEM)
   ============================================================ */
.jira-global-nav {
  height: 52px;
  min-height: 52px;
  background: #0747a6;
  color: #ffffff;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  position: relative;
  z-index: 2000;
  box-shadow: 0 1px 3px rgba(9, 30, 66, 0.25);
  overflow: visible !important;
  width: 100%;
}

.jira-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: visible !important;
}

.jira-app-switcher {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  line-height: 1;
}

.jira-app-switcher:hover {
  background: rgba(255, 255, 255, 0.15);
}

.jira-sidebar-toggle-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.jira-sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.jira-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 4px;
  flex-shrink: 0;
}

.jira-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.jira-top-menus {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  overflow: visible !important;
}

.jira-nav-dropdown-wrap {
  position: relative;
  overflow: visible !important;
}

.jira-nav-menu-btn {
  background: transparent;
  border: none;
  color: #deebff;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.jira-nav-menu-btn:hover,
.jira-nav-menu-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.jira-arrow {
  font-size: 10px;
  opacity: 0.8;
}

.jira-nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #ffffff;
  color: #172b4d;
  min-width: 240px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(9, 30, 66, 0.25);
  border: 1px solid #dfe1e6;
  padding: 6px 0;
  z-index: 2500;
  display: flex;
  flex-direction: column;
}

.jira-dropdown-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b778c;
  padding: 8px 14px 4px;
  letter-spacing: 0.5px;
}

.jira-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #172b4d;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.12s ease;
}

.jira-dropdown-item:hover {
  background: #ebecf0;
  color: #0052cc;
}

.jira-dropdown-item.active {
  background: #deebff;
  color: #0052cc;
  font-weight: 600;
}

.jira-dropdown-divider {
  height: 1px;
  background: #ebecf0;
  margin: 6px 0;
}

.jira-create-btn {
  background: #0052cc;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  transition: background 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.jira-create-btn:hover {
  background: #0065ff;
}

.jira-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  overflow: visible !important;
}

.jira-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.jira-search-wrap input {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 6px 12px 6px 30px;
  font-size: 13px;
  color: #ffffff;
  outline: none;
  width: 180px;
  transition: all 0.2s ease;
}

.jira-search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.jira-search-wrap input:focus {
  background: #ffffff;
  color: #172b4d;
  width: 240px;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.2);
}

.jira-search-wrap input:focus::placeholder {
  color: #7a869a;
}

.jira-search-icon {
  position: absolute;
  left: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.jira-search-wrap input:focus ~ .jira-search-icon,
.jira-search-wrap:focus-within .jira-search-icon {
  color: #6b778c;
}

.jira-env-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.15);
  padding: 3px;
  border-radius: 4px;
}

.jira-env-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  color: #deebff;
  text-decoration: none;
  transition: all 0.15s ease;
}

.jira-env-chip.active {
  background: #ffffff;
  color: #0747a6;
}

.jira-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s ease;
}

.jira-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.jira-user-menu-wrap {
  position: relative;
  overflow: visible !important;
}

.jira-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4c9aff;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.jira-avatar-btn:hover {
  transform: scale(1.05);
}

.jira-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  color: #172b4d;
  min-width: 250px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(9, 30, 66, 0.25);
  border: 1px solid #dfe1e6;
  padding: 6px 0;
  z-index: 2500;
  display: flex;
  flex-direction: column;
}

.jira-user-info-box {
  padding: 8px 14px;
}

.jira-user-name {
  font-weight: 600;
  font-size: 13px;
  color: #172b4d;
  display: block;
}

.jira-user-role {
  font-size: 11px;
  color: #6b778c;
  display: block;
}

/* ============================================================
   APP LAYOUT & LEFT SIDEBAR NAVIGATION (NO HORIZONTAL SCROLL)
   ============================================================ */
.app-layout {
  display: flex;
  width: 100vw;
  height: calc(100vh - 52px);
  overflow: hidden;
  background: var(--bg);
}

.app-sidebar {
  width: 220px;
  min-width: 220px;
  height: calc(100vh - 52px);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width 0.2s ease, min-width 0.2s ease;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.03);
}

.app-sidebar.collapsed {
  width: 56px;
  min-width: 56px;
}

.app-sidebar.collapsed .sidebar-project-text,
.app-sidebar.collapsed .sidebar-section-title,
.app-sidebar.collapsed .sidebar-nav .view-tab span:not(.nav-icon) {
  display: none !important;
}

.app-sidebar.collapsed .sidebar-nav .view-tab {
  justify-content: center;
  padding: 10px 0;
}

.sidebar-header {
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-project-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-project-icon {
  font-size: 22px;
  line-height: 1;
}

.sidebar-project-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-project-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-project-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.sidebar-brand-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-app-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.sidebar-version {
  font-size: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

.sidebar-new-ticket-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.sidebar-new-ticket-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.45);
}

.sidebar-nav {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-section-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 10px 4px 10px;
}

.app-sidebar .view-tab {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  border-bottom: none;
  margin: 0;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.app-sidebar .view-tab:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.app-sidebar .view-tab.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
}

.nav-icon {
  font-size: 15px;
  width: 20px;
  display: inline-flex;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-env-switch {
  display: flex;
  gap: 6px;
  background: var(--surface);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.env-chip {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.env-chip:hover {
  color: var(--text-primary);
}

.env-chip.active {
  background: var(--accent);
  color: #fff;
}

.app-main {
  flex: 1;
  min-width: 0;
  height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
  overflow-y: hidden;
  background: #fafbfc;
}

/* ============================================================
   JIRA SUBHEADER & VIEW TABS BAR
   ============================================================ */
.jira-subnav-header {
  background: #ffffff;
  border-bottom: 1px solid #dfe1e6;
  padding: 14px 20px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.jira-subnav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jira-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b778c;
}

.bc-part {
  color: #6b778c;
}

.bc-sep {
  color: #a5b2c6;
}

.bc-current {
  font-weight: 700;
  color: #172b4d;
  font-size: 15px;
}

.jira-subnav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jira-sprint-badge {
  font-size: 12px;
  font-weight: 600;
  background: #e3fcef;
  color: #006644;
  border: 1px solid #abf5d1;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}

/* Jira View Underline Tabs */
.jira-view-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.jira-view-tabs-bar::-webkit-scrollbar {
  display: none;
}

.jira-view-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #42526e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
  margin-bottom: -1px;
}

.jira-view-tab:hover {
  color: #0052cc;
  border-bottom-color: #b3d4ff;
}

.jira-view-tab.active {
  color: #0052cc;
  font-weight: 600;
  border-bottom-color: #0052cc;
}

/* ============================================================
   JIRA QUICK FILTERS ROW
   ============================================================ */
.jira-quick-filters-bar {
  background: #fafbfc;
  border-bottom: 1px solid #ebecf0;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.jira-quick-filters-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jira-quick-pill {
  background: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #42526e;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.jira-quick-pill:hover {
  background: #ebecf0;
  border-color: #c1c7d0;
  color: #172b4d;
}

.jira-quick-pill.active {
  background: #deebff;
  border-color: #0052cc;
  color: #0052cc;
  font-weight: 600;
}

.jira-assignee-avatar-chips {
  display: flex;
  align-items: center;
  gap: 4px;
}

.jira-avatar-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.15);
}

.jira-avatar-chip:hover {
  transform: translateY(-1px);
}

.jira-avatar-chip.active {
  border-color: #0052cc;
  box-shadow: 0 0 0 2px #b3d4ff;
}

.jira-quick-filters-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jira-filter-select {
  background: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #42526e;
  padding: 5px 8px;
  cursor: pointer;
  outline: none;
}

.jira-filter-select:hover {
  border-color: #c1c7d0;
}

.jira-filter-select:focus {
  border-color: #0052cc;
  box-shadow: 0 0 0 1px #0052cc;
}

.jira-clear-filters-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jira-active-filter-badge {
  font-size: 11px;
  font-weight: 600;
  color: #0052cc;
  background: #deebff;
  padding: 2px 7px;
  border-radius: 10px;
}

.jira-clear-link {
  background: transparent;
  border: none;
  color: #0052cc;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px;
}

.jira-clear-link:hover {
  color: #0747a6;
}

.app-views-viewport {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 4px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.topnav-link {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.topnav-link:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.topnav-link.active {
  background: var(--accent-bg);
  color: var(--accent);
}

.topnav-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 8px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
}

.header-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  padding: 2px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.header-search {
  flex: 1;
  max-width: 340px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
}

.header-search input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================================
   VIEW TAB BAR
   ============================================================ */
.view-tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  overflow-x: auto;
}

.view-tab {
  padding: 8px 16px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}

.view-tab:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}

.view-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text-primary);
}

.btn-danger {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 10px;
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* ============================================================
   DEMO BANNER
   ============================================================ */
.demo-banner {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 10px 24px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
}

.demo-banner a {
  color: #fff;
  text-decoration: underline;
  opacity: .85;
}

.demo-banner a:hover {
  opacity: 1;
}

/* ============================================================
   VIEWS CONTAINER
   ============================================================ */
.view-container {
  display: none;
}

.view-container.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Specific view-board styling to guarantee strictly bounded column heights & vertical scrolling */
#view-board.active {
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  padding: 10px 16px 14px 16px;
  box-sizing: border-box;
}

.board-toolbar {
  flex-shrink: 0;
  margin-bottom: 8px !important;
}

/* ============================================================
   BOARD VIEW (RESPONSIVE COLUMNS & VERTICAL SCROLL)
   ============================================================ */
.board-wrap {
  width: 100%;
  max-width: 100%;
  padding: 0;
  display: flex;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  align-items: stretch;
}

.column {
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.08);
  border: 1px solid #dfe1e6;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

/* 1-4 columns: stretch evenly to fit screen width */
.board-wrap.cols-fit .column {
  flex: 1 1 0;
  min-width: 240px;
  max-width: none;
}

/* >4 columns: keep comfortable width and allow horizontal scroll without squashing */
.board-wrap:not(.cols-fit) .column {
  flex: 0 0 310px;
  min-width: 280px;
  max-width: 360px;
}

.col-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid #ebecf0;
  flex-shrink: 0;
}

.col-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #5e6c84;
}

.col-count {
  font-size: 11px;
  font-weight: 700;
  background: #dfe1e6;
  padding: 2px 7px;
  border-radius: 12px;
  color: #172b4d;
}

.col-quick-plus-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  color: #6b778c;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.col-quick-plus-btn:hover {
  background: #dfe1e6;
  color: #172b4d;
}

.column[data-col="todo"] .col-dot {
  background: #6b7280;
}

.column[data-col="doing"] .col-dot {
  background: #0052cc;
}

.column[data-col="done"] .col-dot {
  background: #36b37e;
}

.col-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.col-body::-webkit-scrollbar {
  width: 6px;
}

.col-body::-webkit-scrollbar-track {
  background: transparent;
}

.col-body::-webkit-scrollbar-thumb {
  background: #c1c7d0;
  border-radius: 3px;
}

.col-body::-webkit-scrollbar-thumb:hover {
  background: #a5b2c6;
}

.board-wrap::-webkit-scrollbar {
  height: 8px;
}

.board-wrap::-webkit-scrollbar-track {
  background: rgba(9, 30, 66, 0.04);
  border-radius: 4px;
}

.board-wrap::-webkit-scrollbar-thumb {
  background: #c1c7d0;
  border-radius: 4px;
}

.board-wrap::-webkit-scrollbar-thumb:hover {
  background: #a5b2c6;
}

.col-body.drag-over {
  background: #ebecf0;
  outline: 2px dashed #0052cc;
  outline-offset: -4px;
  border-radius: 0 0 6px 6px;
}

.col-footer-actions {
  padding: 8px 10px;
  border-top: 1px solid #ebecf0;
  background: #f4f5f7;
  flex-shrink: 0;
}

.col-add-ticket-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #42526e;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.col-add-ticket-btn:hover {
  background: rgba(9, 30, 66, 0.08);
  color: #172b4d;
}

/* ============================================================
   JIRA CARD STYLING
   ============================================================ */
.card {
  background: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.2);
  padding: 10px 12px;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
  user-select: none;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex-shrink: 0 !important;
  min-height: fit-content;
  height: auto;
  box-sizing: border-box;
}

.card:hover {
  background: #fafbfc;
  border-color: #c1c7d0;
  box-shadow: 0 3px 6px rgba(9, 30, 66, 0.25);
  transform: translateY(-1px);
}

.card.readonly {
  cursor: default;
}

.card.dragging {
  opacity: .4;
  transform: scale(.98);
  cursor: grabbing;
}

.card-priority-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.pri-high .card-priority-bar {
  background: var(--pri-high);
}

.pri-medium .card-priority-bar {
  background: var(--pri-med);
}

.pri-low .card-priority-bar {
  background: var(--pri-low);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s;
}

.card:hover .card-actions {
  opacity: 1;
}

.card-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
}

.card-btn.del:hover {
  background: var(--pri-high-bg);
  color: var(--danger);
}

/* Card meta row (epic) */
.card-epic {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.epic-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .02em;
}

/* Card desc */
.card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card labels */
.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.label-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .02em;
}

/* Card footer */
.card-footer {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.card-footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.card-footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.card-assignee {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
}

.assignee-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-priority-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: capitalize;
  letter-spacing: .02em;
}

.pri-high .card-priority-tag {
  background: var(--pri-high-bg);
  color: var(--pri-high);
}

.pri-medium .card-priority-tag {
  background: var(--pri-med-bg);
  color: var(--pri-med);
}

.pri-low .card-priority-tag {
  background: var(--pri-low-bg);
  color: var(--pri-low);
}

/* Due date badge */
.due-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 3px;
}

.due-ok {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.due-soon {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.due-over {
  background: var(--pri-high-bg);
  color: var(--pri-high);
  border: 1px solid #fecaca;
}

/* Story points badge */
.sp-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, .2);
  min-width: 22px;
  text-align: center;
}

/* Subtask progress */
.subtask-bar {
  margin-top: 8px;
}

.subtask-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.subtask-bar-track {
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}

.subtask-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width .3s ease;
}

.subtask-bar-fill.done {
  background: var(--success);
}

.card.hidden {
  display: none;
}

/* ============================================================
   DROP PLACEHOLDER
   ============================================================ */
.drop-placeholder {
  height: 68px;
  border: 2px dashed rgba(99, 102, 241, .45);
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, .08);
  flex-shrink: 0;
  pointer-events: none;
  transition: all 0.1s ease;
  margin: 4px 0;
}

/* ============================================================
   LIST VIEW
   ============================================================ */
.list-view {
  padding: 24px;
  flex: 1;
  overflow-x: auto;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.list-table th {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  text-align: left;
  white-space: nowrap;
}

.list-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.list-table tr:last-child td {
  border-bottom: none;
}

.list-table tr:hover td {
  background: var(--surface-2);
}

.list-table tr {
  cursor: pointer;
}

.list-title-cell {
  font-weight: 500;
  color: var(--text-primary);
  max-width: 280px;
}

.list-title-cell .epic-pill {
  margin-bottom: 3px;
  display: inline-block;
}

.col-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
}

.col-badge-todo {
  background: #f1f5f9;
  color: #475569;
}

.col-badge-doing {
  background: #fff7ed;
  color: #c2410c;
}

.col-badge-done {
  background: var(--pri-low-bg);
  color: #166534;
}

/* ============================================================
   BACKLOG VIEW
   ============================================================ */
.backlog-view {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.backlog-sprint-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.backlog-sprint-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
}

.backlog-sprint-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.backlog-sprint-name {
  font-size: 14px;
  font-weight: 600;
}

.sprint-active-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(99, 102, 241, .12);
  color: var(--accent);
}

.sprint-dates {
  font-size: 12px;
  color: var(--text-muted);
}

.backlog-sprint-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.backlog-list {
  display: flex;
  flex-direction: column;
}

.backlog-row {
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background .12s;
}

.backlog-row:last-child {
  border-bottom: none;
}

.backlog-row:hover {
  background: var(--surface-2);
}

.backlog-row-title {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.backlog-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.backlog-empty {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================================
   DASHBOARD VIEW
   ============================================================ */
.dashboard-view {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-card.accent {
  border-left: 4px solid var(--accent);
}

.stat-card.danger {
  border-left: 4px solid var(--danger);
}

.stat-card.warning {
  border-left: 4px solid var(--warning);
}

.stat-card.success {
  border-left: 4px solid var(--success);
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Monday.com Segmented Status Battery */
.monday-battery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.monday-battery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.monday-battery-bar-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

.monday-battery-bar {
  flex: 1;
  height: 28px;
  background: var(--surface-2);
  border-radius: 14px;
  display: flex;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  position: relative;
}

.monday-battery-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: width 0.4s ease, filter 0.2s ease;
  cursor: pointer;
  position: relative;
}

.monday-battery-segment:hover {
  filter: brightness(1.12);
}

.monday-battery-tip {
  width: 6px;
  height: 14px;
  background: var(--border);
  border-radius: 0 3px 3px 0;
  flex-shrink: 0;
}

.monday-battery-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monday-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.monday-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dash-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.dash-panel-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Priority breakdown bars */
.pri-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pri-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  width: 55px;
  flex-shrink: 0;
}

.pri-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pri-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width .4s ease;
}

.pri-bar-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* Overdue list */
.overdue-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.overdue-item:last-child {
  border-bottom: none;
}

.overdue-item:hover {
  color: var(--accent);
}

.overdue-title {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overdue-days {
  font-size: 11px;
  font-weight: 600;
  color: var(--danger);
  white-space: nowrap;
}

/* Epic stats */
.epic-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.epic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.epic-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epic-bar-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================================
   GANTT VIEW
   ============================================================ */
.gantt-view {
  padding: 24px;
  flex: 1;
  overflow-x: auto;
}

.gantt-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 700px;
}

.gantt-header {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.gantt-label-col {
  width: 240px;
  min-width: 240px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-secondary);
  background: var(--surface-2);
  border-right: 1px solid var(--border);
}

.gantt-timeline-header {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: var(--surface-2);
}

.gantt-day {
  flex: 1;
  min-width: 36px;
  text-align: center;
  padding: 10px 2px;
  font-size: 11px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  font-weight: 500;
}

.gantt-day.today {
  background: rgba(99, 102, 241, .08);
  color: var(--accent);
  font-weight: 700;
}

.gantt-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  transition: all 0.15s ease;
  position: relative;
}

.gantt-row:last-child {
  border-bottom: none;
}

.gantt-row:hover {
  background: var(--surface-2);
}

/* Tamamlanmış Görevler - Yeşil Satır Vurgusu */
.gantt-row.gantt-row-done {
  background: #f0fdf4 !important;
  border-left: 4px solid #10b981;
}

.gantt-row.gantt-row-done:hover {
  background: #dcfce7 !important;
}

.gantt-row.gantt-row-done .gantt-row-label {
  color: #065f46;
  font-weight: 600;
}

.gantt-row.gantt-row-done .gantt-col-pill {
  background: #d1fae5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
}

.gantt-row.gantt-row-done .gantt-bar {
  background: #10b981 !important;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.4);
}

/* Yapılacak Görevler - Belirgin Özel Arka Plan (Cool Slate / Nötr Gri) */
.gantt-row.gantt-row-todo {
  background: #f8fafc !important;
  border-left: 4px solid #94a3b8;
}

.gantt-row.gantt-row-todo:hover {
  background: #f1f5f9 !important;
}

.gantt-row.gantt-row-todo .gantt-row-label {
  color: #475569;
}

.gantt-row.gantt-row-todo .gantt-col-pill {
  background: #e2e8f0 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Yapılıyor Görevler - Canlı Mavi Sol Vurgu */
.gantt-row.gantt-row-doing {
  background: #ffffff !important;
  border-left: 4px solid #3b82f6;
}

.gantt-row.gantt-row-doing:hover {
  background: #eff6ff !important;
}

.gantt-row.gantt-row-doing .gantt-col-pill {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

/* Gantt status icon */
.gantt-status-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.gantt-row-label {
  width: 240px;
  min-width: 240px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.gantt-row-label:hover {
  color: var(--accent);
}

.gantt-row-timeline {
  flex: 1;
  position: relative;
  height: 44px;
}

.gantt-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 4px;
  cursor: pointer;
  transition: filter .15s;
}

.gantt-bar:hover {
  filter: brightness(1.1);
}

.gantt-no-date {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  align-items: center;
  height: 44px;
}

/* ============================================================
   SPRINT MANAGER (panel)
   ============================================================ */
.manager-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin: 24px;
}

.manager-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.manager-panel-title {
  font-size: 16px;
  font-weight: 700;
}

.manager-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manager-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.manager-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.manager-item-info {
  flex: 1;
  min-width: 0;
}

.manager-item-name {
  font-size: 13px;
  font-weight: 600;
}

.manager-item-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.manager-item-actions {
  display: flex;
  gap: 6px;
}

/* ============================================================
   MODAL (enhanced)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .45);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  overflow-y: auto;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  width: 100%;
  max-width: 600px;
  transform: translateY(16px) scale(.97);
  transition: transform .2s ease;
  margin: auto;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px 28px;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

/* Labels selector */
.labels-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.label-chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  user-select: none;
}

.label-chip.selected {
  border-color: rgba(0, 0, 0, .3);
}

/* Subtasks section */
.subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subtask-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtask-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.subtask-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
}

.subtask-text.done-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.subtask-del {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.subtask-del:hover {
  color: var(--danger);
  background: var(--pri-high-bg);
}

.add-subtask-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.add-subtask-input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-primary);
  transition: var(--transition);
}

.add-subtask-input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

/* Comments section */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-row {
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.comment-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.comment-body {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.add-comment-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.add-comment-input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-primary);
  transition: var(--transition);
  resize: none;
}

.add-comment-input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideIn .2s ease, fadeOut .3s ease 2.7s forwards;
  max-width: 300px;
}

.toast.warn {
  background: var(--warning);
  color: #1a1a1a;
}

.toast.error {
  background: var(--danger);
}

@keyframes slideIn {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ============================================================
   EMPTY / LOADING
   ============================================================ */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

.empty-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 40px auto;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   KBD HINT
   ============================================================ */
.kbd-hint {
  position: fixed;
  bottom: 24px;
  left: 24px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 5px;
  background: var(--border);
  color: var(--text-secondary);
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  border: 1px solid #c8cdd6;
  box-shadow: 0 1px 0 #c8cdd6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .dash-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-sidebar {
    width: 64px !important;
    min-width: 64px !important;
  }
  .app-sidebar .sidebar-app-name,
  .app-sidebar .sidebar-version,
  .app-sidebar .ws-name,
  .app-sidebar .ws-arrow,
  .app-sidebar .sidebar-section-title,
  .app-sidebar .sidebar-nav .view-tab span:not(.nav-icon),
  .app-sidebar .sidebar-new-ticket-btn span.label,
  .app-sidebar .user-profile-info,
  .app-sidebar .sidebar-env-switch {
    display: none !important;
  }
  .app-sidebar .sidebar-new-ticket-btn {
    padding: 10px 0;
    justify-content: center;
  }
  .app-sidebar .sidebar-nav .view-tab {
    justify-content: center;
    padding: 10px 0;
  }

  .board-wrap {
    flex-direction: column;
    padding: 16px;
  }

  .column {
    min-width: unset;
    max-width: unset;
  }

  .header {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

  .header-search {
    max-width: none;
    order: 10;
    flex-basis: 100%;
  }

  .header-filters {
    display: none;
  }

  .btn .label {
    display: none;
  }

  .gantt-wrap {
    min-width: 500px;
  }
}

/* ============================================================
   EFFORT TRACKING & PROGRESS
   ============================================================ */
.effort-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.effort-ok {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.effort-over {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  animation: pulse-border 2.5s infinite;
}

@keyframes pulse-border {
  0% { border-color: rgba(220, 38, 38, 0.2); }
  50% { border-color: rgba(220, 38, 38, 0.6); }
  100% { border-color: rgba(220, 38, 38, 0.2); }
}

.effort-progress-bar {
  margin-top: 8px;
  margin-left: 0;
  width: 100%;
}

.effort-progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.effort-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.effort-progress-fill.done {
  background: var(--success);
}

.effort-progress-fill.over {
  background: var(--danger);
}

/* ============================================================
   REPORTS VIEW DASHBOARD
   ============================================================ */
.reports-dashboard {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.reports-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

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

.reports-actions {
  display: flex;
  gap: 8px;
}

.reports-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  overflow-x: auto;
}

.reports-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  min-width: 600px;
}

.reports-table th {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
}

.reports-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.reports-table tr:hover td {
  background: var(--surface-2);
}

.reports-row-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .reports-row-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dev-tag {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  display: inline-block;
}

.deviation-positive {
  background: #dcfce7;
  color: #15803d;
}

.deviation-negative {
  background: #fee2e2;
  color: #b91c1c;
}

.deviation-zero {
  background: var(--surface-2);
  color: var(--text-secondary);
}

.status-done-badge {
  background: #dcfce7;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.status-planned-badge {
  background: #f3f4f6;
  color: #4b5563;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.print-only-header {
  display: none;
}

/* ============================================================
   PRINT AND PDF EXPORT STYLES
   ============================================================ */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  
  .topnav,
  .demo-banner,
  .header,
  .view-tabs,
  .no-print,
  .reports-header-row,
  .kbd-hint,
  .modal-overlay,
  .quick-add {
    display: none !important;
  }
  
  .view-container {
    display: none !important;
  }
  
  .view-container.active {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  
  .reports-dashboard {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .reports-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    margin-bottom: 24px !important;
    page-break-inside: avoid !important;
    padding: 15px !important;
    background: #fff !important;
  }
  
  .reports-row-grid {
    display: block !important;
  }
  
  .reports-table {
    min-width: unset !important;
    width: 100% !important;
  }
  
  .reports-table th {
    border-bottom: 2px solid #000 !important;
    color: #000 !important;
  }
  
  .reports-table td {
    border-bottom: 1px solid #ddd !important;
  }
  
  .print-only-header {
    display: block !important;
    margin-bottom: 24px !important;
  }
  
  .epic-pill {
    border: 1px solid #ccc !important;
    background: none !important;
    color: #000 !important;
  }
}

/* ============================================================
   COLLABORATIVE TEAM FEATURES & LOGIN UI
   ============================================================ */

/* User Profile Badge in Header */
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.user-profile-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  user-select: none;
}
.user-profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.user-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}
.btn-logout:hover {
  color: var(--danger);
  text-decoration: underline;
}

/* Fullscreen Auth Overlay */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: authFadeIn 0.25s ease;
}
.auth-overlay.open {
  display: flex;
}
.auth-card {
  background: var(--surface);
  width: 100%;
  max-width: 400px;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: authScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
}
.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
  user-select: none;
}
.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.auth-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 16px;
}
.auth-tab {
  background: none;
  border: none;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.auth-tab.active {
  color: var(--accent);
}
.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.auth-form {
  display: none;
}
.auth-form.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-submit-btn {
  width: 100%;
  padding: 10px;
  font-weight: 600;
  font-size: 13px;
  margin-top: 6px;
}
.auth-error {
  color: var(--danger);
  font-size: 11px;
  font-weight: 500;
  min-height: 16px;
}
.auth-footer-note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}
.auth-footer-note code {
  background: var(--surface-2);
  padding: 1px 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
}

/* Enhanced Comment Rows */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}
.comment-row {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface-2);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.comment-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.comment-author {
  font-weight: 600;
  color: var(--text-primary);
}
.comment-time {
  color: var(--text-muted);
}
.comment-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes authScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============================================================
   VERSION 2 STYLES
   ============================================================ */

/* Notifications Bell & Dropdown */
.notification-container {
  position: relative;
  display: inline-flex;
  overflow: visible !important;
}
.btn-notification {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}
.btn-notification:hover {
  background: var(--surface-2);
}
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--surface);
  line-height: 1;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  margin-top: 0;
  background: #ffffff;
  color: #172b4d;
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(9, 30, 66, 0.25);
  width: 320px;
  display: none;
  flex-direction: column;
  z-index: 2500;
  overflow: hidden;
  animation: authFadeIn 0.18s ease;
}
.notif-dropdown.open {
  display: flex;
}
.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
  background: var(--surface-2);
}
.notif-header .btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.notif-header .btn-link:hover {
  text-decoration: underline;
}
.notif-list {
  max-height: 280px;
  overflow-y: auto;
}
.notif-empty {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: var(--surface-2);
}
.notif-item.unread {
  background: rgba(99, 102, 241, 0.04);
  border-left: 3px solid var(--accent);
}
.notif-item-text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-primary);
}
.notif-item-time {
  font-size: 10px;
  color: var(--text-muted);
  align-self: flex-end;
}

/* My Tasks Dashboard & Boards */
.my-tasks-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 0 20px 0;
  width: 100%;
}
.my-tasks-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
}
.summary-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.summary-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.summary-stats {
  font-size: 13px;
  color: var(--text-secondary);
}
.summary-stats .text-success {
  color: var(--success);
  font-weight: 600;
}
.summary-stats .text-warning {
  color: var(--warning);
  font-weight: 600;
}
.summary-right {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.progress-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  align-self: flex-end;
}
.progress-bar-track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 4px;
  transition: width 0.4s ease;
}
.my-tasks-board-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.my-tasks-column {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.my-tasks-column .col-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
}
.my-tasks-column .col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

@media (max-width: 900px) {
  .my-tasks-board-wrap {
    grid-template-columns: 1fr;
  }
  .my-tasks-summary-card {
    flex-direction: column;
    align-items: stretch;
  }
  .summary-right {
    width: 100%;
  }
}

/* Card key badge and backlog serial styles */
.card-key-badge {
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}
.backlog-key {
  color: var(--accent);
  font-weight: 700;
  margin-right: 4px;
}

/* Backlog Drag and Drop Styles */
.backlog-row.backlog-dragging {
  opacity: 0.4;
}
.backlog-list {
  transition: background-color 0.2s ease, border 0.2s ease;
  min-height: 50px;
}
.backlog-list.drag-over {
  background-color: var(--surface-2);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
}

/* Custom Confirm Modal Box */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.confirm-overlay.open {
  opacity: 1;
}
.confirm-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.confirm-box.open {
  transform: scale(1);
}
.confirm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.confirm-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.confirm-close {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
}
.confirm-close:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.confirm-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.confirm-actions .btn {
  font-size: 12px;
  padding: 6px 14px;
}

/* ============================================================
   WORKSPACE SWITCHER & MULTI-TENANT UI
   ============================================================ */
.workspace-switcher-container {
  position: relative;
  display: flex;
  align-items: center;
}

.workspace-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.workspace-switcher-btn:hover {
  background: var(--surface-hover, rgba(255, 255, 255, 0.1));
  border-color: var(--accent);
}

.ws-icon {
  font-size: 14px;
}

.ws-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.workspace-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  background: var(--surface, #0f172a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-lg, 0 10px 25px -5px rgba(0, 0, 0, 0.3));
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ws-dropdown-header {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2, rgba(255, 255, 255, 0.02));
}

.ws-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-md, 6px);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.ws-item:hover {
  background: var(--surface-hover, rgba(99, 102, 241, 0.1));
  color: var(--text-primary);
}

.ws-item.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.ws-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.ws-item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-item-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

.ws-dropdown-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface-2, rgba(255, 255, 255, 0.02));
  display: flex;
  justify-content: flex-end;
}

/* Modal lg & Admin Panels */
.modal-lg {
  max-width: 680px;
  width: 95%;
}

.ws-mode-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding: 12px;
  background: var(--surface-2, rgba(255, 255, 255, 0.03));
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border);
}

.ws-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.ws-radio-option input {
  margin-top: 4px;
}

.ws-radio-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.ws-radio-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  margin-bottom: 8px;
  transition: var(--transition);
}

.admin-user-row:hover {
  border-color: var(--accent);
}

.admin-user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.admin-user-tag.admin {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.admin-user-tag.superadmin {
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
}

.admin-user-tag.user {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

/* ============================================================
   SLIDE-OVER SIDE DRAWER FOR CARD DETAIL (#cardModal)
   ============================================================ */
#cardModal.modal-overlay {
  padding: 0 !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  overflow: hidden !important;
}

#cardModal .modal {
  margin: 0 !important;
  width: 100% !important;
  max-width: 640px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border-left: 1px solid var(--border);
  box-shadow: -14px 0 45px rgba(0, 0, 0, 0.35);
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(100%) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
  background: var(--surface);
}

#cardModal.modal-overlay.open .modal {
  transform: translateX(0) !important;
}

#cardModal .modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cardModal .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

#cardModal .modal-footer {
  padding: 16px 28px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  #cardModal .modal {
    max-width: 100% !important;
  }
}

/* ============================================================
   MENU-DRIVEN FULL PAGE VIEWS: EPICS, SPRINTS, LABELS, TEAM
   ============================================================ */
.manager-view-wrap {
  padding: 24px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.manager-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.manager-view-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.manager-view-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.manager-quick-add {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.manager-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

/* Epics Grid */
.epics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.epic-manage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.epic-manage-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.epic-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.epic-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.epic-color-bar {
  width: 12px;
  height: 38px;
  border-radius: 4px;
  flex-shrink: 0;
}

.epic-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.epic-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.epic-progress-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.epic-tasks-container {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.epic-tasks-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.epic-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.epic-task-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 12px;
  cursor: pointer;
  transition: background .12s ease;
}

.epic-task-row:hover {
  background: var(--surface-hover);
}

.epic-task-key {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 11px;
}

.epic-task-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

/* Sprints View */
.sprints-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sprint-filters-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sprint-filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s ease;
}

.sprint-filter-pill.active,
.sprint-filter-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.active-sprint-hero {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1px solid rgba(79, 70, 229, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.active-sprint-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sprints-table-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-height: 560px;
  overflow-y: auto;
}

.sprints-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sprints-table th {
  background: var(--surface-2);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
}

.sprints-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.sprints-table tr:hover td {
  background: var(--surface-hover);
}

/* Labels Grid */
.labels-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.label-manage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
}

.label-manage-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.label-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.label-color-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.label-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.label-card-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Team Grid */
.team-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.team-member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.team-member-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.team-member-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-avatar-lg {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.team-member-info {
  flex: 1;
  min-width: 0;
}

.team-member-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.team-member-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.team-stats-breakdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  font-size: 12px;
}

/* ============================================================
   USER-FRIENDLY TICKET CREATION & TIMELINE ENHANCEMENTS
   ============================================================ */

/* Column Ticket Creation Buttons */
.col-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 10px;
}

.col-add-ticket-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.col-add-ticket-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.col-quick-plus-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 4px;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 6px;
}

.col-quick-plus-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

/* Backlog Active Sprint Highlight */
.backlog-sprint-active-card {
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, transparent 100%);
  position: relative;
}

.backlog-sprint-active-card .backlog-sprint-header {
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.sprint-active-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: activeSprintPulse 2s infinite ease-in-out;
}

@keyframes activeSprintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.backlog-past-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

/* Gantt Controls & Timeline */
.gantt-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.gantt-range-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gantt-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.gantt-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}

.gantt-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.gantt-today-badge {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 10;
}

/* List View Controls */
.list-view-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.list-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.list-filter-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.list-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.list-filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   QUICK FILTERS & TEAM MEMBER / PROJECT BAR
   ============================================================ */
.quick-filters-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
  font-size: 12px;
}

.filter-chip-section {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.filter-chip-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.filter-chip .chip-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.filter-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.filter-chip .chip-count {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.filter-chip:not(.active) .chip-count {
  background: var(--surface);
  color: var(--text-muted);
}

.filter-reset-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.active-filter-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-clear-filters:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

/* ============================================================
   CARD SUB-TABS & ACTIVITY TIMELINE
   ============================================================ */
.card-subtab-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-subtab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.card-subtab-btn.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-left: 14px;
  margin-top: 8px;
}

.card-activity-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.card-activity-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  transition: var(--transition);
}

.card-activity-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: var(--bg-hover, var(--surface));
}

.card-activity-dot {
  position: absolute;
  left: -13px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-primary);
}

.card-activity-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.card-activity-body {
  flex: 1;
  min-width: 0;
}

.card-activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.card-activity-user {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-activity-time {
  font-size: 11px;
  color: var(--text-muted);
}

.card-activity-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.card-activity-details {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

/* ============================================================
   DAILY EFFORT / WORKLOG STYLES
   ============================================================ */
.worklog-overview-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.worklog-add-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.worklog-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  transition: var(--transition);
}

.worklog-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: var(--bg-hover, var(--surface));
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   MULTI-ENVIRONMENT AUTH OVERLAY & DEMO PERSONA STYLES
   ============================================================ */
.auth-mode-btn {
  background: transparent;
  color: var(--text-secondary);
}
.auth-mode-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.auth-mode-btn.active {
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-sm);
}
.btn-demo-quick-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-demo-quick-chip:hover {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.demo-persona-card {
  transition: all 0.2s ease;
}
.demo-persona-card:hover {
  border-color: var(--accent);
}
.btn-demo-dropdown-chip {
  background: #ffffff;
  border: 1px solid var(--border);
  color: #172b4d;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-demo-dropdown-chip:hover {
  background: #ebecf0;
  border-color: #0747a6;
  color: #0747a6;
}
.jira-demo-pill {
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ============================================================
   WORKSPACES MANAGEMENT VIEW & CARDS
   ============================================================ */
.workspaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.workspace-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.workspace-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.workspace-card.active-workspace {
  border: 2px solid #0052cc;
  background: linear-gradient(to bottom, var(--surface), rgba(0, 82, 204, 0.02));
}

.ws-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ws-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.ws-card-icon {
  font-size: 24px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.ws-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  min-height: 36px;
}

.ws-card-members-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.ws-avatar-stack {
  display: flex;
  align-items: center;
}

.ws-avatar-stack-item {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.ws-avatar-stack-item:first-child {
  margin-left: 0;
}

.ws-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Member Assignment Modal Rows */
.ws-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.ws-member-item:hover {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.ws-member-item.selected {
  border-color: #0052cc;
  background: rgba(0, 82, 204, 0.04);
}

/* ============================================================
   @MENTION SUGGESTIONS POPUP & MENTION TAGS
   ============================================================ */
.mention-suggestions {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  width: 280px;
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mention-item:last-child {
  border-bottom: none;
}

.mention-item:hover,
.mention-item.active {
  background: rgba(0, 82, 204, 0.08);
  color: #0052cc;
}

.mention-item-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.mention-item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.mention-item-handle {
  font-size: 11px;
  color: var(--text-muted);
}

/* In comment list */
.mention-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 82, 204, 0.12);
  color: #0052cc;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin: 0 2px;
  font-size: 0.95em;
  border: 1px solid rgba(0, 82, 204, 0.2);
}

/* ============================================================
   DYNAMIC WORKSPACE COLUMNS & WIP LIMIT STYLES
   ============================================================ */
.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 6px;
}

.board-col-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.col-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.col-menu-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  color: #6b778c;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.15s ease;
}

.col-menu-btn:hover {
  background: #dfe1e6;
  color: #172b4d;
}

.col-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: none;
  flex-direction: column;
  min-width: 150px;
  padding: 4px 0;
  margin-top: 4px;
}

.col-dropdown-menu.show {
  display: flex;
}

.col-dropdown-item {
  padding: 7px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #172b4d;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.12s ease;
}

.col-dropdown-item:hover {
  background: rgba(0, 82, 204, 0.08);
  color: #0052cc;
}

.col-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* WIP Limit Badges */
.col-wip-badge {
  font-size: 11px;
  font-weight: 700;
  background: #dfe1e6;
  padding: 2px 7px;
  border-radius: 12px;
  color: #172b4d;
}

.col-wip-badge.wip-exceeded {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.4);
  animation: pulse-wip 2s infinite ease-in-out;
}

@keyframes pulse-wip {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0); }
}

/* Dependencies Badges on Cards */
.badge-blocked {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-unblocked {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-blocks {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.gantt-col-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gantt-dep-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ============================================================
   SPRINT COMPLETION & RETROSPECTIVE REPORT STYLES
   ============================================================ */
.sprint-complete-hero {
  padding: 10px 0;
}
.sc-stat-badge {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sc-stat-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.retro-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.retro-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.retro-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.retro-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.retro-kpi-sub {
  font-size: 11px;
  color: var(--text-secondary);
}
.retro-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.retro-table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.retro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.retro-table th {
  background: var(--surface-2, rgba(0,0,0,0.02));
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.retro-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.retro-table tr:last-child td {
  border-bottom: none;
}
.retro-table tr:hover td {
  background: var(--surface-2, rgba(0,0,0,0.02));
}
.perf-filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
}
.perf-details-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.15s ease;
}
.perf-details-toggle:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary);
}
.perf-tickets-drawer {
  background: var(--surface-2, rgba(0,0,0,0.02));
  padding: 12px 14px;
  border-radius: 6px;
  margin-top: 4px;
  font-size: 12px;
  border-left: 3px solid var(--primary);
}
.ticket-key-badge {
  font-family: monospace;
  letter-spacing: 0.02em;
}

/* ── Jira Issue Types ── */
.jira-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  margin-right: 4px;
}
.issue-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.2;
}
.issue-type-task { background: rgba(2, 132, 199, 0.12); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.3); }
.issue-type-bug { background: rgba(220, 38, 38, 0.12); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.3); }
.issue-type-story { background: rgba(5, 150, 105, 0.12); color: #059669; border: 1px solid rgba(5, 150, 105, 0.3); }
.issue-type-incident { background: rgba(185, 28, 28, 0.16); color: #b91c1c; border: 1px solid rgba(185, 28, 28, 0.35); }
.issue-type-improvement { background: rgba(124, 58, 237, 0.12); color: #7c3aed; border: 1px solid rgba(124, 58, 237, 0.3); }

/* ── Custom Fields (Monday & Jira) ── */
.card-cf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  margin-bottom: 4px;
}
.card-cf-badge {
  font-size: 10.5px;
  background: rgba(99, 102, 241, 0.09);
  color: var(--text-secondary);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.card-cf-badge strong {
  color: var(--accent);
  font-weight: 600;
}

/* ── SLA Badges & Countdown Timers (Jira Service Management) ── */
.sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.3;
}
.sla-on-track {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.28);
}
.sla-at-risk {
  background: rgba(217, 119, 6, 0.15);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.35);
  animation: slaPulse 2s infinite ease-in-out;
}
.sla-breached {
  background: rgba(220, 38, 38, 0.18);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.4);
  font-weight: 700;
  animation: slaPulse 1.2s infinite ease-in-out;
}
.sla-met {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.3);
}
.sla-missed {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.3);
  text-decoration: line-through;
}

@keyframes slaPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}