/* ========================================
   Akfix Planner - Dark Theme (Cursor Style)
   ======================================== */

:root {
  /* Backgrounds */
  --bg-primary: #0d0d0d;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-hover: #222222;
  --bg-active: #2a2a2a;

  /* Text */
  --text-primary: #e8e8e8;
  --text-secondary: #9a9a9a;
  --text-muted: #666666;

  /* Borders */
  --border-default: #2a2a2a;
  --border-subtle: #1f1f1f;

  /* Accents */
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  --accent-yellow: #eab308;
  --accent-red: #ef4444;

  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* App container - flex layout to push footer to bottom */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========================================
   Completed Bar
   ======================================== */

.completed-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  overflow-x: visible;
}

.completed-bar__wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.completed-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.completed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.completed-item:hover {
  background: var(--bg-hover);
}

.completed-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.completed-item__name {
  font-size: 13px;
  color: var(--text-primary);
}

.completed-item__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border-default);
}

.completed-item__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 4px;
  background: var(--bg-hover);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.completed-item__link:hover {
  background: var(--bg-active);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.completed-item__link svg {
  width: 12px;
  height: 12px;
}

.completed-item__restore {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 6px;
  margin-left: auto;
  background: var(--bg-hover);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 0;
}

.completed-item:hover .completed-item__restore {
  opacity: 1;
}

.completed-item__restore:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  transform: scale(1.1);
}

.completed-item__restore svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
}

.nav__inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__dropdowns {
  display: flex;
  gap: 8px;
}

.dropdown {
  position: relative;
}

.dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown__trigger:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
}

.dropdown.active .dropdown__trigger {
  background: var(--bg-active);
  border-color: var(--accent-blue);
}

.dropdown__arrow {
  transition: transform 0.15s ease;
}

.dropdown.active .dropdown__arrow {
  transform: rotate(180deg);
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.15s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dropdown.active .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown__item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav__actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.nav__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav__btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-blue);
}

.nav__btn.active {
  background: var(--bg-active);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.nav__btn svg {
  flex-shrink: 0;
}

.dropdown__item.active {
  background: var(--bg-active);
  color: var(--accent-blue);
}

.nav__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-blue);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav__add-btn:hover {
  background: #2563eb;
  transform: scale(1.05);
}

/* ========================================
   Mobile Menu
   ======================================== */

/* Mobile Menu Button - hidden on desktop, visible on mobile */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-right: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-menu-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-blue);
}

/* Mobile Menu Sidebar - компактное */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 260px;
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-default);
  z-index: 10000;
  transition: left 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.mobile-menu__close:hover {
  color: var(--text-primary);
}

.mobile-menu__content {
  padding: 8px;
}

.mobile-menu__section {
  margin-bottom: 16px;
}

.mobile-menu__section-title {
  margin: 0 0 6px 0;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-menu__item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-menu__item:hover {
  background: var(--bg-hover);
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.mobile-menu__item.active {
  background: var(--bg-active);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 500;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   Content Area
   ======================================== */

.content {
  flex: 1;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header__add {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-header__add:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.page-header__add svg {
  color: var(--text-secondary);
}

/* Direction Filters */
.direction-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.direction-filter {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.direction-filter:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.direction-filter.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

/* Priority Sections */
.priority-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.priority-section__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-default);
}

.priority-section__title--high {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.priority-section__title--medium {
  color: var(--accent-yellow);
  border-color: var(--accent-yellow);
}

.priority-section__title--low {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.empty-text {
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px 0;
}

/* Priority Select */
.priority-select {
  padding: 6px 10px;
  background: var(--bg-active);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.priority-select:hover {
  border-color: var(--text-muted);
}

.priority-select--high {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.priority-select--medium {
  color: var(--accent-yellow);
  border-color: var(--accent-yellow);
}

.priority-select--low {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.project-card__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================
   Project Cards
   ======================================== */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.project-card:hover {
  border-color: var(--text-muted);
}



.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.project-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-card__toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px;
}

.project-card__toggle:hover {
  background: var(--bg-hover);
  color: var(--accent-blue);
}

.project-card.expanded .project-card__toggle {
  transform: rotate(90deg);
}

.project-card__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.project-card__left {
  cursor: pointer;
}

.project-card__left:hover .project-card__toggle {
  color: var(--accent-blue);
}

/* Stage Badges */
.project-card__stages {
  display: flex;
  gap: 4px;
}

.project-card__header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Quick Links */
.project-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Desktop version - show in header on desktop, hide on mobile */
.project-links--desktop {
  display: flex;
}

/* Mobile version - hide on desktop, show in body on mobile */
.project-links--mobile {
  display: none;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--bg-active);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.project-link:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.project-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.project-link span {
  white-space: nowrap;
}

.project-link--edit {
  border-style: dashed;
  opacity: 0.7;
}

.project-link--edit:hover {
  opacity: 1;
  border-style: solid;
}

.stage-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-active);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stage-badge:hover {
  border-color: var(--accent-blue);
  color: var(--text-secondary);
}

.stage-badge svg {
  display: block;
}

.stage-badge--done {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.stage-divider {
  width: 1px;
  height: 20px;
  background: var(--border-default);
  margin: 0 4px;
}

/* Actions in body */
.project-card__actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.project-card__actions-right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.project-card__actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.project-card:hover .project-card__actions {
  opacity: 1;
}

.project-card__action {
  padding: 6px 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.project-card__action:hover {
  background: var(--bg-active);
  color: var(--text-primary);
}

.project-card__action--complete {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

.project-card__action--complete:hover {
  background: #16a34a;
}

.project-card__action--activate {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

.project-card__action--activate:hover {
  background: #2563eb;
}

.project-card__action--backlog {
  background: transparent;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.project-card__action--backlog:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border-color: var(--text-secondary);
}

.project-card__action--delete {
  padding: 6px 8px;
  background: transparent;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.project-card__action--delete:hover {
  background: var(--bg-hover);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.project-card__action--delete svg {
  display: block;
}

/* Expanded Content */
.project-card__body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border-subtle);
}

.project-card.expanded .project-card__body {
  display: block;
}

.project-card__description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-top: 16px;
  min-height: 20px;
  outline: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px;
  margin: 12px 0;
  transition: border-color 0.15s ease;
}

.project-card__description:focus {
  border-color: var(--border-default);
  background: var(--bg-active);
}

.project-card__description:empty::before {
  content: 'Добавить описание...';
  color: var(--text-muted);
}

.project-card__impact {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.project-card__impact-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Contenteditable fields */
[contenteditable="true"] {
  outline: none;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

[contenteditable="true"]:focus {
  border-color: var(--border-default);
  background: var(--bg-active);
}

[contenteditable="true"]:empty::before {
  color: var(--text-muted);
  font-style: italic;
}

.project-card__title[contenteditable="true"] {
  padding: 4px 8px;
  margin: -4px -8px;
}

.project-card__title[contenteditable="true"]:empty::before {
  content: 'Название проекта...';
}

/* ========================================
   Tasks
   ======================================== */

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

.tasks-column {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 12px;
}

.tasks-column--add {
  background: transparent;
  border: 2px dashed var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.tasks-column__add-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tasks-column__add-new:hover {
  color: var(--text-primary);
}

.tasks-column__add-new svg {
  width: 24px;
  height: 24px;
}

.tasks-column__add-new span {
  font-size: 13px;
}

.tasks-column__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tasks-column__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tasks-column__delete {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s ease;
}

.tasks-column:hover .tasks-column__delete {
  opacity: 1;
}

.tasks-column__delete:hover {
  background: var(--bg-hover);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.tasks-column__assignee {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 4px;
  cursor: text;
}

.tasks-column__assignee:hover,
.tasks-column__assignee:focus {
  background: var(--bg-hover);
}

.tasks-column__add {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px dashed var(--border-default);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tasks-column__add:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  color: var(--text-secondary);
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  transition: background 0.15s ease;
}

.task-item__drag-handle {
  color: var(--text-muted);
  cursor: grab;
  font-size: 12px;
  line-height: 18px;
  user-select: none;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.task-item:hover .task-item__drag-handle {
  opacity: 1;
}

.task-item__drag-handle:active {
  cursor: grabbing;
}

.task-item:hover {
  background: var(--bg-hover);
}

.task-item--ghost {
  opacity: 0.4;
  background: var(--accent-blue);
}

.task-item--drag {
  background: var(--bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: grabbing;
}

.task-item--done {
  opacity: 0.5;
}

.task-item--done .task-item__text {
  text-decoration: line-through;
}

.task-item__checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent-green);
  cursor: pointer;
}

.task-item__text {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
  padding: 0;
  cursor: text;
}

.task-item__delete {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s ease;
}

.task-item:hover .task-item__delete {
  opacity: 1;
}

.task-item__delete:hover {
  color: var(--accent-red);
}

/* Task Input */
.task-input {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--bg-card);
  border-radius: 4px;
}

.task-input__field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
}

.task-input__field::placeholder {
  color: var(--text-muted);
}

/* ========================================
   Team Cards
   ======================================== */

.team-section {
  margin-top: 32px;
}

.team-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.team-section__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.team-section__add {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px dashed var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.team-section__add:hover {
  background: var(--bg-hover);
  border-style: solid;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  transition: border-color 0.15s ease;
}

.team-card:hover {
  border-color: var(--text-muted);
}

.team-card__delete {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s ease;
}

.team-card:hover .team-card__delete {
  opacity: 1;
}

.team-card__delete:hover {
  color: var(--accent-red);
}

.team-card__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 4px;
  cursor: text;
  display: block;
  width: calc(100% - 24px);
}

.team-card__name:hover,
.team-card__name:focus {
  background: var(--bg-hover);
}

.team-card__role {
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  outline: none;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 4px;
  cursor: text;
  display: block;
  margin-top: 4px;
}

.team-card__role:hover,
.team-card__role:focus {
  background: var(--bg-hover);
}

.team-card__topics {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.team-card__topics-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topic-tag--normal {
  background: var(--bg-active);
  color: var(--text-secondary);
}

.topic-tag--priority {
  background: rgba(234, 179, 8, 0.15);
  color: var(--accent-yellow);
}

.topic-tag--urgent {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.topic-tag__delete {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
}

.topic-tag__delete:hover {
  opacity: 1;
}

.topic-add {
  padding: 4px 8px;
  background: none;
  border: 1px dashed var(--border-default);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topic-add:hover {
  background: var(--bg-hover);
  border-style: solid;
}

.topic-input {
  display: inline-flex;
  gap: 4px;
  padding: 4px 8px;
  background: var(--bg-hover);
  border-radius: 4px;
}

.topic-input__field {
  background: none;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--text-primary);
  width: 120px;
}

/* ========================================
   Modal
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(-10px);
  transition: transform 0.2s ease;
}

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

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.modal__close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal__body {
  padding: 20px;
}

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

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

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

.form-select {
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
}

.modal__btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal__btn--primary {
  background: var(--accent-blue);
  border: none;
  color: white;
}

.modal__btn--primary:hover {
  background: #2563eb;
}

.modal__btn--secondary {
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.modal__btn--secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal__btn--danger {
  background: var(--accent-red);
  border: none;
  color: white;
}

.modal__btn--danger:hover {
  background: #dc2626;
}

.modal__btn--success {
  background: var(--accent-blue);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal__btn--success:hover {
  background: #2563eb;
  transform: scale(1.02);
}

/* ========================================
   Notes Page
   ======================================== */

.notes-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.notes-header__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.notes-header__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.note-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.note-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.note-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.note-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  margin-right: 12px;
}

.note-card__actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.note-card:hover .note-card__actions {
  opacity: 1;
}

.note-card__btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border: none;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.note-card__btn:hover {
  background: var(--bg-active);
  color: var(--text-primary);
}

.note-card__btn--delete:hover {
  background: var(--accent-red);
  color: white;
}

.note-card__content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.note-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.note-card__date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.note-card__tag {
  padding: 4px 8px;
  background: var(--bg-active);
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notes-empty {
  text-align: center;
  padding: 80px 20px;
}

.notes-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.3;
}

.notes-empty__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.notes-empty__text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
  .completed-bar {
    padding: 10px 16px;
  }

  .nav {
    padding: 12px 16px;
  }

  .content {
    padding: 20px 16px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-title {
    font-size: 20px;
  }
}

/* Mobile devices (768px) */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  /* Completed Bar - компактный на мобилке */
  .completed-bar {
    padding: 4px 8px;
    overflow-x: visible;
  }
  
  .completed-bar__inner {
    flex-wrap: wrap;
    min-width: auto;
    gap: 4px;
  }

  .completed-item {
    padding: 3px 8px;
    gap: 4px;
    font-size: 11px;
  }

  .completed-item__name {
    font-size: 11px;
  }

  .completed-item__links {
    gap: 2px;
    margin-left: 4px;
    padding-left: 4px;
  }

  .completed-item__link {
    width: 18px;
    height: 18px;
  }
  
  .completed-item__restore {
    opacity: 1;
    width: 20px;
    height: 20px;
    padding: 3px;
  }

  /* Navigation - компактная на мобилке */
  .nav {
    padding: 6px 8px;
    overflow: visible;
  }

  .nav__inner {
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
  }

  /* Show mobile menu button, hide dropdowns */
  .mobile-menu-btn {
    display: flex;
    width: 32px;
    height: 32px;
    padding: 4px;
  }

  .nav__dropdowns {
    display: none;
  }

  .dropdown {
    position: relative;
    overflow: visible !important;
  }
  
  .dropdown__trigger {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .dropdown__menu {
    min-width: 140px;
    max-width: calc(100vw - 24px);
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
    background: var(--bg-card) !important;
    border: 2px solid var(--accent-blue) !important;
    position: absolute !important;
  }
  
  .dropdown.active .dropdown__menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
  }
  
  .dropdown__item {
    padding: 8px 12px;
    font-size: 13px;
  }

  .nav__add-btn {
    width: 32px;
    height: 32px;
  }

  /* Content - компактный на мобилке */
  .content {
    padding: 8px;
  }

  .page-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .page-header__add {
    width: 100%;
    justify-content: center;
  }

  /* Direction Filters - компактные */
  .direction-filters {
    margin-bottom: 8px;
  }

  .direction-filter {
    padding: 4px 10px;
    font-size: 11px;
  }

  /* Priority Sections - компактные */
  .priority-sections {
    gap: 16px;
  }

  .priority-section__title {
    font-size: 13px;
    margin-bottom: 8px;
  }

  /* Project Cards - компактные на мобилке */
  .projects-list {
    gap: 8px;
  }

  .project-card__header {
    padding: 8px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .project-card__left {
    gap: 6px;
    flex: 1;
  }

  .project-card__title {
    font-size: 13px;
  }

  .project-card__header-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Quick Links - Switch desktop to mobile version */
  .project-links--desktop {
    display: none !important;
  }
  
  .project-links--mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .project-links--mobile .project-link {
    flex: 1;
    min-width: calc(50% - 4px);
    justify-content: center;
  }

  /* Stages - Separate row */
  .project-card__stages {
    width: 100%;
    flex-wrap: wrap;
    order: 2;
  }

  .stage-badge {
    width: 28px;
    height: 28px;
  }

  .stage-divider {
    height: 16px;
  }

  /* Project Card Body */
  .project-card__body {
    padding: 0 12px 12px;
  }

  .project-card__actions-row {
    flex-direction: column;
    gap: 10px;
  }

  .project-card__actions {
    width: 100%;
    opacity: 1;
    flex-wrap: wrap;
  }

  .project-card__action {
    flex: 1;
    text-align: center;
    min-width: fit-content;
  }

  .project-card__actions-right {
    width: 100%;
  }

  /* Tasks */
  .tasks-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tasks-column {
    padding: 10px;
  }

  .tasks-column__assignee {
    font-size: 12px;
  }

  .task-item {
    padding: 6px;
  }

  .task-item__text {
    font-size: 12px;
  }

  /* Team */
  .team-section {
    margin-top: 24px;
  }

  .team-section__title {
    font-size: 18px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .team-card {
    padding: 12px;
  }

  .team-card__name {
    font-size: 14px;
  }

  /* Modal */
  .modal {
    max-width: calc(100% - 24px);
    margin: 12px;
  }

  .modal__header,
  .modal__body,
  .modal__footer {
    padding: 16px;
  }

  .modal__title {
    font-size: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal__footer {
    flex-direction: column;
  }

  .modal__btn {
    width: 100%;
  }

  /* Sync Indicator */
  .sync-indicator {
    bottom: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Footer */
  .footer__inner {
    font-size: 10px;
    gap: 6px;
  }
}

/* Small mobile devices (480px) */
@media (max-width: 480px) {
  body {
    font-size: 12px;
  }

  /* Completed Bar */
  .completed-bar {
    padding: 6px 8px;
  }
  
  .completed-bar__inner {
    gap: 6px;
  }

  .completed-item {
    padding: 4px 8px;
    gap: 4px;
  }

  .completed-item__name {
    font-size: 11px;
  }

  .completed-item__links {
    display: none;
  }

  /* Navigation */
  .nav {
    padding: 8px;
    overflow: visible;
  }
  
  .nav__inner {
    overflow: visible;
  }
  
  .nav__dropdowns {
    overflow: visible;
  }

  .dropdown {
    overflow: visible !important;
  }
  
  .dropdown__trigger {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .dropdown__menu {
    z-index: 9999 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8) !important;
    background: var(--bg-card) !important;
    border: 2px solid var(--accent-blue) !important;
  }
  
  .dropdown.active .dropdown__menu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }

  .nav__add-btn {
    width: 28px;
    height: 28px;
  }

  /* Content */
  .content {
    padding: 12px 8px;
  }

  .page-title {
    font-size: 16px;
  }

  .page-header {
    margin-bottom: 12px;
  }

  .page-header__add {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Direction Filters */
  .direction-filter {
    padding: 4px 10px;
    font-size: 11px;
  }

  /* Priority Sections */
  .priority-sections {
    gap: 20px;
  }

  .priority-section__title {
    font-size: 13px;
    margin-bottom: 10px;
  }

  /* Project Cards */
  .project-card__header {
    padding: 10px;
  }

  .project-card__title {
    font-size: 13px;
  }

  .project-card__toggle {
    width: 18px;
    height: 18px;
  }

  .stage-badge {
    width: 24px;
    height: 24px;
  }

  .stage-badge svg {
    width: 12px;
    height: 12px;
  }

  /* Project Links already hidden on 768px, no need for rules here */

  /* Project Card Body */
  .project-card__body {
    padding: 0 10px 10px;
  }

  .project-card__description {
    font-size: 12px;
    padding: 6px;
  }

  .project-card__impact {
    font-size: 12px;
    padding: 8px;
  }

  .project-card__action {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* Tasks */
  .tasks-column {
    padding: 8px;
  }

  .tasks-column__header {
    margin-bottom: 8px;
  }

  .tasks-column__assignee {
    font-size: 11px;
  }

  .task-item {
    padding: 5px;
    gap: 6px;
  }

  .task-item__text {
    font-size: 11px;
  }

  .task-item__checkbox {
    width: 14px;
    height: 14px;
  }

  .task-input {
    padding: 6px;
  }

  .task-input__field {
    font-size: 12px;
  }

  /* Team */
  .team-section {
    margin-top: 20px;
  }

  .team-section__title {
    font-size: 16px;
  }

  .team-section__add {
    padding: 5px 10px;
    font-size: 12px;
  }

  .team-card {
    padding: 10px;
  }

  .team-card__name {
    font-size: 13px;
  }

  .team-card__role {
    font-size: 11px;
  }

  .team-card__topics {
    margin-top: 10px;
    padding-top: 10px;
  }

  .topic-tag {
    padding: 3px 6px;
    font-size: 11px;
  }

  /* Modal */
  .modal {
    max-width: calc(100% - 16px);
    margin: 8px;
    max-height: calc(100vh - 16px);
  }

  .modal__header,
  .modal__body,
  .modal__footer {
    padding: 12px;
  }

  .modal__title {
    font-size: 14px;
  }

  .modal__close {
    width: 28px;
    height: 28px;
  }

  .form-label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .form-input,
  .form-textarea,
  .form-select {
    padding: 8px 10px;
    font-size: 13px;
  }

  .form-textarea {
    min-height: 60px;
  }

  .modal__btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Sync Indicator */
  .sync-indicator {
    bottom: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .sync-indicator__dot {
    width: 6px;
    height: 6px;
  }

  /* Footer */
  .footer__inner {
    font-size: 9px;
    gap: 4px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  .modal {
    max-height: 95vh;
  }

  .completed-bar {
    padding: 6px 12px;
  }

  .nav {
    padding: 8px 12px;
  }

  .content {
    padding: 12px;
  }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.fade-in {
  animation: fadeIn 0.15s ease;
}

/* ========================================
   Sync Indicator
   ======================================== */

.sync-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 10000;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sync-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}

.sync-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

.sync-indicator.success .sync-indicator__dot {
  background: #22c55e;
  animation: none;
}

.sync-indicator.error .sync-indicator__dot {
  background: #ef4444;
  animation: none;
}

.sync-indicator__text {
  font-weight: 500;
  white-space: nowrap;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  padding: 24px 0 20px 0;
  flex-shrink: 0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--accent-blue);
}

.footer__separator {
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
}

.footer__copyright {
  color: var(--text-muted);
  opacity: 0.7;
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========================================
   Real-time Sync Indicators
   ======================================== */

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 12px;
}

.sync-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.sync-status__dot.connected {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.sync-status__dot.disconnected {
  background: var(--accent-red);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.sync-status__text {
  font-weight: 500;
}

.sync-status__users {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--border-default);
  color: var(--text-muted);
}

.sync-status__users svg {
  opacity: 0.7;
}

#onlineUsersCount {
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Sync Toast Notification */
.sync-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 10000;
  pointer-events: none;
}

.sync-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.sync-toast--info {
  border-left: 3px solid var(--accent-blue);
}

.sync-toast--success {
  border-left: 3px solid var(--accent-green);
}

.sync-toast--warning {
  border-left: 3px solid var(--accent-yellow);
}

.sync-toast--error {
  border-left: 3px solid var(--accent-red);
}

/* Sync Indicator (for saving) */
.sync-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.sync-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}

.sync-indicator.success {
  border-color: var(--accent-green);
}

.sync-indicator.error {
  border-color: var(--accent-red);
}

.sync-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: sync-pulse 1s infinite;
}

.sync-indicator.success .sync-indicator__dot {
  background: var(--accent-green);
  animation: none;
}

.sync-indicator.error .sync-indicator__dot {
  background: var(--accent-red);
  animation: none;
}

@keyframes sync-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}