/* ===== COVER MODAL ===== */

/* ===== TAB NAVIGATION ===== */
.tab-nav {
  display: flex;
  gap: 4px;
  margin: 20px 0 16px;
  border-bottom: 2px solid var(--border-default);
  padding-bottom: 0;
}
.tab-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.tab-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===== PROJECT SELECTOR ===== */
.project-selector {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.project-selector .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-selector-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}
.project-selector select {
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-input, var(--bg-card));
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}
.project-selector select:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== NIKO NIKO WIDGET ===== */
.niko-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}
.niko-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}
.niko-toggle:hover { transform: scale(1.08); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.niko-collapsed .niko-panel { display: none; }
.niko-expanded .niko-toggle { display: none; }
.niko-panel {
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  overflow: hidden;
}
.niko-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.niko-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.niko-close:hover { color: var(--accent-red); }

.niko-missed-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-warning, #fef3c7);
  color: var(--text-warning, #92400e);
  font-size: 11px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-default);
}

[data-theme="dark"] .niko-missed-banner {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.niko-missed-banner i { font-size: 12px; flex-shrink: 0; }

.niko-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 16px 8px;
}
.niko-mood-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  color: var(--text-secondary);
}
.niko-mood-btn:hover { background: var(--bg-card); border-color: var(--accent); transform: scale(1.12); }
.niko-mood-btn.niko-selected { border-color: var(--accent); background: var(--accent-dim); }
.niko-mood-btn.niko-mood-dim {
  opacity: 0.25;
  transform: scale(0.8);
  transition: all 0.25s ease;
}
.niko-mood-btn.niko-mood-pop {
  animation: nikoPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-color: var(--accent);
  background: var(--accent-dim);
}
@keyframes nikoPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(2.2); }
  65%  { transform: scale(0.85); }
  100% { transform: scale(1); }
}
.niko-note {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 0;
  padding: 8px 16px;
  border: none;
  border-top: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  font-family: inherit;
  resize: none;
  outline: none;
}
.niko-note::placeholder { color: var(--text-muted); }
.niko-save-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 8px 16px 0;
  padding: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.niko-save-btn:hover { opacity: 0.85; }
.niko-feedback {
  padding: 6px 16px 0;
  font-size: 12px;
}
.niko-done { color: var(--accent-green); }
.niko-recent { padding: 0 16px 12px; }
.niko-recent-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.niko-avatars { display: flex; gap: 4px; }
.niko-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  cursor: default;
  overflow: hidden;
}
.niko-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Niko Niko speech bubble */
.niko-bubble {
  position: relative;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 14px;
  margin: 12px 16px 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  animation: nikoBubbleIn 0.35s ease-out;
}
.niko-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--accent);
}
@keyframes nikoBubbleIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== ATTENTION LOAD REPORT ===== */
.attention-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.attention-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.attention-card:hover {
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-elevated);
}

.attention-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.attention-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.attention-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}
.attention-card-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}
.attention-card-bar {
  margin-top: 6px;
  height: 5px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  overflow: hidden;
}
.attention-card-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.attention-card-fill.attention-card-focused { background: #10B981; }
.attention-card-fill.attention-card-busy { background: #F59E0B; }
.attention-card-fill.attention-card-high_load { background: #F97316; }
.attention-card-fill.attention-card-overloaded { background: #EF4444; }
.attention-card-state {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.attention-card-state-focused { color: #10B981; }
.attention-card-state-busy { color: #F59E0B; }
.attention-card-state-high_load { color: #F97316; }
.attention-card-state-overloaded { color: #EF4444; }

.theme-toggle-btn [data-lucide] { width: 22px; height: 22px; }
.niko-mood-btn [data-lucide] { width: 22px; height: 22px; }
.niko-toggle [data-lucide] { width: 28px; height: 28px; }

