/* ==========================================================================
   Team Work Status Dashboard - Modern Internal Tool Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  
  /* Brand / Primary */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: #eff6ff;
  --primary-border: #bfdbfe;
  
  /* Working Status (Green) */
  --working-color: #10b981;
  --working-bg: #ecfdf5;
  --working-border: #a7f3d0;
  --working-text: #065f46;
  --working-action-border: #86efac;
  --working-action-hover: #f0fdf4;
  --working-action-text: #15803d;

  /* Completed Status (Blue) */
  --completed-color: #3b82f6;
  --completed-bg: #eff6ff;
  --completed-border: #bfdbfe;
  --completed-text: #1e40af;
  --completed-action-border: #93c5fd;
  --completed-action-hover: #f0f7ff;
  --completed-action-text: #1d4ed8;

  /* Danger / Warning */
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 10px 18px 24px;
  min-height: 100vh;
}

.app-container {
  max-width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   Header Section (Compact)
   ========================================================================== */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  margin-bottom: 8px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-icon-box svg {
  width: 18px;
  height: 18px;
}

.header-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.header-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.header-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

.last-updated-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.db-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

.db-status-pill.offline {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.db-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #22c55e;
}

.db-status-pill.offline .db-dot {
  background-color: #ef4444;
}

.last-updated-label {
  white-space: nowrap;
}

.last-updated-label strong {
  color: var(--text-primary);
  font-weight: 600;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--text-light);
}

.btn-icon.spinning svg {
  animation: spin 0.6s linear infinite;
}

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

/* ==========================================================================
   Buttons (Compact)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.15);
}

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

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

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

.btn-danger-outline {
  background-color: #ffffff;
  color: var(--danger);
  border-color: var(--danger-border);
}

.btn-danger-outline:hover {
  background-color: var(--danger-bg);
  border-color: var(--danger);
}

.btn-text-subtle {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  padding: 1px 4px;
}

.btn-text-subtle:hover {
  color: #1d4ed8;
}

/* Action Table Buttons */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-action-edit {
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.btn-action-edit:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.btn-action-status {
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.btn-action-status:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

/* ==========================================================================
   Banners & Notices (Compact)
   ========================================================================== */

.info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.info-banner-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-icon {
  color: #3b82f6;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.guidance-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fffbeb;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  font-size: 0.78rem;
}

.guidance-icon {
  font-size: 0.95rem;
}

/* ==========================================================================
   Search & Filter Bar (Compact)
   ========================================================================== */

.search-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
  min-width: 240px;
}

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

.search-box input {
  width: 100%;
  padding: 6px 30px 6px 32px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}

.clear-search-btn:hover {
  color: var(--text-secondary);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select {
  padding: 5px 10px;
  font-size: 0.78rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
}

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

.stats-summary {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.stat-working {
  background: var(--working-bg);
  border-color: var(--working-border);
  color: var(--working-text);
}

.stat-completed {
  background: var(--completed-bg);
  border-color: var(--completed-border);
  color: var(--completed-text);
}

/* ==========================================================================
   Table Sections & Styling (High Density)
   ========================================================================== */

.table-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  margin-bottom: 12px;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-color);
}

.working-section .section-header {
  background-color: #fcfdfd;
}

.completed-section .section-header {
  background-color: #fcfdff;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot-working {
  background-color: #10b981;
}

.dot-completed {
  background-color: #3b82f6;
}

.section-title {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.working-section .section-title {
  color: #065f46;
}

.completed-section .section-title {
  color: #1e40af;
}

.badge-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.working-count-badge {
  background: #d1fae5;
  color: #065f46;
}

.completed-count-badge {
  background: #dbeafe;
  color: #1e40af;
}

.section-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

.status-table th {
  background-color: #f8fafc;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-color);
  border-top: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.status-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: var(--text-primary);
  font-size: 0.78rem;
  line-height: 1.35;
}

.status-table tbody tr {
  transition: background-color 0.1s ease;
}

.status-table tbody tr:hover {
  background-color: #f8fafc;
}

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

/* Table Column Details */
.row-index {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.74rem;
}

.member-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
  white-space: nowrap;
}

.codebase-name {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.78rem;
  white-space: nowrap;
}

.task-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #1e293b;
  background-color: #f1f5f9;
  padding: 2px 5px;
  border-radius: 3px;
  display: inline-block;
  word-break: break-all;
}

.comment-text {
  color: var(--text-secondary);
  font-size: 0.77rem;
  line-height: 1.35;
  max-width: 340px;
}

.files-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.file-item {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  display: inline-block;
}

.file-bullet {
  color: #94a3b8;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.file-more-btn {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 1px;
  display: inline-block;
}

.file-more-btn:hover {
  background: #dbeafe;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill-working {
  background-color: var(--working-bg);
  border-color: var(--working-border);
  color: var(--working-text);
}

.status-pill-completed {
  background-color: var(--completed-bg);
  border-color: var(--completed-border);
  color: var(--completed-text);
}

.timestamp-text {
  font-size: 0.74rem;
  color: #475569;
  white-space: nowrap;
}

.action-buttons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.empty-state {
  padding: 18px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Utilities */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-dialog-sm {
  max-width: 440px;
}

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

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background-color: #f8fafc;
}

.modal-footer-simple {
  justify-content: flex-end;
}

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

/* Form Controls */
.form-row-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.files-count-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.form-label.required::after {
  content: " *";
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.font-code {
  font-family: var(--font-mono);
}

.form-helper {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  display: none;
}

.form-group.has-error .form-control {
  border-color: var(--danger);
}

.form-group.has-error .form-error {
  display: block;
}

/* File Tags Input */
.file-tag-input-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}

.file-tag-input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.file-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.file-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #334155;
}

.file-tag-remove {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 2px;
}

.file-tag-remove:hover {
  color: var(--danger);
}

.file-input-wrapper {
  display: flex;
  gap: 8px;
}

.file-text-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  padding: 4px;
}

/* Status Radio Group */
.status-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.15s ease;
}

.status-radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.status-radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--primary);
}

.status-radio-label input[type="radio"]:checked + .radio-custom::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.radio-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-primary);
  flex-wrap: wrap;
}

.radio-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-working-radio:has(input:checked) {
  border-color: var(--working-border);
  background-color: #f0fdf4;
}

.status-completed-radio:has(input:checked) {
  border-color: var(--completed-border);
  background-color: #eff6ff;
}

/* Status Quick Modal */
.status-update-info {
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.target-member {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.target-task {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #2563eb;
  margin-top: 2px;
}

.target-codebase {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.status-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.status-option-btn:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.status-option-btn.active {
  border-color: var(--primary);
  background-color: #eff6ff;
}

.status-option-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.status-option-text .option-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.status-option-text .option-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-option-btn .check-icon {
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.status-option-btn.active .check-icon {
  opacity: 1;
}

/* Files Preview List */
.files-preview-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 12px;
  background: #f8fafc;
}

.all-files-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.all-files-list li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #334155;
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Coordination & Team Sync Alert Styles
   ========================================================================== */

.coordination-notice {
  background-color: #fffbeb;
  border: 1px solid #fde047;
  border-left: 4px solid #eab308;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 2px 0 6px;
  font-size: 0.78rem;
  color: #78350f;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.coordination-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #92400e;
  margin-bottom: 3px;
}

.coordination-body {
  line-height: 1.35;
}

.coordination-body strong {
  color: #713f12;
}

/* Multi-dev working badge in table */
.multi-dev-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  padding: 1px 6px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

/* Sync Alert Modal Styling */
.modal-header-alert {
  background: #fefce8;
  border-bottom: 1px solid #fef08a;
}

.modal-title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-bell-icon {
  font-size: 1.2rem;
}

.sync-alert-banner {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.sync-alert-main-text {
  font-size: 0.86rem;
  color: #1e3a8a;
  font-weight: 600;
}

.sync-coworkers-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coworkers-header {
  font-size: 0.8rem;
  color: #92400e;
}

.sync-coworkers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sync-coworkers-list li {
  font-size: 0.78rem;
  color: #78350f;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #fef08a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-message-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sync-message-box textarea {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.35;
}

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

@media (max-width: 1024px) {
  body {
    padding: 16px;
  }
  
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .form-row-two-col,
  .status-radio-group {
    grid-template-columns: 1fr;
  }

  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
  }

  .filter-group {
    justify-content: space-between;
  }
}

