/* Scrum Board Styles */
/* SCRUM BOARD STYLES                          */
/* ============================================ */

.board-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  min-height: calc(100vh - 120px);
}

.board-column {
  flex: 0 0 280px;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
}

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

.board-column-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.board-column-count {
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.board-column-indicator {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

.board-column[data-stage="assigned"] .board-column-indicator { background: #64748b; }
.board-column[data-stage="in_progress"] .board-column-indicator { background: #3b82f6; }
.board-column[data-stage="dev"] .board-column-indicator { background: #4a90d9; }
.board-column[data-stage="testing"] .board-column-indicator { background: #f59e0b; }
.board-column[data-stage="qa_cleared"] .board-column-indicator { background: #10b981; }
.board-column[data-stage="pr_raised"] .board-column-indicator { background: #ec4899; }
.board-column[data-stage="deployed"] .board-column-indicator { background: #059669; }

.board-column-cards {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100px;
}

.board-column-cards.drag-over {
  background: var(--accent-bg);
  border-radius: 12px;
}

.board-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  cursor: grab;
  transition: all 0.2s ease;
  position: relative;
}

.board-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(196, 244, 0, 0.15);
  transform: translateY(-2px);
}

.board-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
  transform: rotate(3deg);
}

.board-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.board-card-id {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.board-card-priority {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.board-card-priority.p0 { background: var(--error-bg); color: var(--error); }
.board-card-priority.p1 { background: rgba(234, 88, 12, 0.1); color: #ea580c; }
.board-card-priority.p2 { background: var(--warning-bg); color: var(--warning); }
.board-card-priority.p3 { background: var(--success-bg); color: var(--success); }

.board-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.board-card-tag {
  font-size: 10px;
  padding: 3px 8px;
  background: var(--bg-input);
  color: var(--text-secondary);
  border-radius: 6px;
  font-weight: 500;
}

.board-card-tag.type-bug { background: var(--error-bg); color: var(--error); }
.board-card-tag.type-feature { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.board-card-tag.type-enhancement { background: rgba(37, 99, 235, 0.1); color: #2563eb; }

.board-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.board-card-assignee {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 600;
}

.board-card-assignee-name {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.board-card-unassigned {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.board-card-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.board-card-score svg {
  width: 12px;
  height: 12px;
}

/* Empty column state */
.board-column-empty {
  text-align: center;
  padding: 16px 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.board-column-empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Board Stats */
.board-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.board-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.board-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.board-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .board-column {
    flex: 0 0 260px;
    min-width: 260px;
  }
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 101;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .sidebar-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
  }

  .container {
    padding: 80px 20px 40px;
  }
}

/* Main layout */
.main-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

/* Card styles */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  animation: fadeSlideUp 0.5s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }

.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--gradient-subtle);
}

.card-header h2 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h2::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.card-body {
  padding: 16px;
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
}

.form-group:last-of-type {
  margin-bottom: 24px;
}

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

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

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

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

/* Button */
.btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn:disabled .spinner {
  display: block;
}

.btn:disabled .btn-text {
  opacity: 0.7;
}

/* Messages */
.message {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 10px;
  animation: fadeSlideDown 0.3s ease-out;
}

.message.show {
  display: flex;
}

.message.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.message-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Tickets table */
.tickets-section {
  min-height: 400px;
}

.ticket-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: auto;
}

.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
  animation: fadeSlideUp 0.4s ease-out backwards;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ticket-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.ticket-item.is-junk {
  opacity: 0.6;
  border-color: var(--error);
}

/* Collapsed ticket header - always visible */
.ticket-collapsed {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.2s ease;
}

.ticket-collapsed:hover {
  background: rgba(196, 244, 0, 0.06);
}

.ticket-collapsed-main {
  flex: 1;
  min-width: 0;
}

.ticket-collapsed-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-collapsed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-expand-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ticket-item.expanded .ticket-expand-icon {
  transform: rotate(180deg);
}

/* Expanded ticket content - hidden by default */
.ticket-expanded {
  display: none;
  padding: 0 20px 20px 20px;
  border-top: 1px solid var(--border-color);
}

.ticket-item.expanded .ticket-expanded {
  display: block;
}

.ticket-expanded-inner {
  padding-top: 16px;
}

.ticket-summary-section {
  margin-bottom: 16px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.ticket-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.ticket-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

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

.ticket-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 4px 8px;
  border-radius: 6px;
}

.ticket-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 200px;
}

.ticket-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* AI Analysis Section */
.ticket-ai-analysis {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.ai-analysis-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-analysis-header svg {
  width: 14px;
  height: 14px;
}

.ai-analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .ai-analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ai-metric {
  text-align: center;
}

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

.ai-metric-value {
  font-size: 14px;
  font-weight: 600;
}

.ai-reasoning {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.ai-reasoning-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

/* Priority Band Colors */
.priority-band {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.priority-band.p0 { background: rgba(239, 68, 68, 0.2); color: var(--priority-p0); }
.priority-band.p1 { background: rgba(249, 115, 22, 0.2); color: var(--priority-p1); }
.priority-band.p2 { background: rgba(245, 158, 11, 0.2); color: var(--priority-p2); }
.priority-band.p3 { background: rgba(34, 197, 94, 0.2); color: var(--priority-p3); }

/* Ticket Type Colors */
.ticket-type {
  font-weight: 600;
}

.ticket-type.bug { color: var(--type-bug); }
.ticket-type.feature { color: var(--type-feature); }
.ticket-type.enhancement { color: var(--type-enhancement); }
.ticket-type.chore { color: var(--type-chore); }

/* Priority Score */
.priority-score {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.priority-score.high { color: var(--priority-p0); }
.priority-score.medium-high { color: var(--priority-p1); }
.priority-score.medium { color: var(--priority-p2); }
.priority-score.low { color: var(--priority-p3); }

/* Junk indicator */
.junk-indicator {
  color: var(--error);
  font-weight: 600;
}

.ticket-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-module {
  background: rgba(196, 244, 0, 0.2);
  color: var(--accent);
}

.badge-severity {
  background: rgba(255,255,255,0.05);
}

.badge-severity.low { color: var(--severity-low); background: rgba(34, 197, 94, 0.12); }
.badge-severity.medium { color: var(--severity-medium); background: rgba(245, 158, 11, 0.12); }
.badge-severity.high { color: var(--severity-high); background: rgba(249, 115, 22, 0.12); }
.badge-severity.critical { color: var(--severity-critical); background: rgba(239, 68, 68, 0.12); }

.badge-type {
  background: rgba(255,255,255,0.05);
}

.badge-type.bug { color: var(--type-bug); background: rgba(239, 68, 68, 0.12); }
.badge-type.feature { color: var(--type-feature); background: rgba(139, 92, 246, 0.12); }
.badge-type.enhancement { color: var(--type-enhancement); background: rgba(59, 130, 246, 0.12); }
.badge-type.chore { color: var(--type-chore); background: rgba(107, 114, 128, 0.12); }

.badge-priority {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.badge-priority.p0 { color: var(--priority-p0); background: rgba(239, 68, 68, 0.12); }
.badge-priority.p1 { color: var(--priority-p1); background: rgba(249, 115, 22, 0.12); }
.badge-priority.p2 { color: var(--priority-p2); background: rgba(245, 158, 11, 0.12); }
.badge-priority.p3 { color: var(--priority-p3); background: rgba(34, 197, 94, 0.12); }

.badge-junk {
  color: var(--error);
  background: var(--error-bg);
}

/* Time Category Badges */
.badge-time {
  font-weight: 600;
  padding: 4px 10px;
}
.badge-time.now {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse-urgent 1.5s ease-in-out infinite;
}
.badge-time.today {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
}
.badge-time.eod {
  color: #fff;
  background: linear-gradient(135deg, #eab308, #ca8a04);
}
.badge-time.this-week {
  color: var(--accent);
  background: var(--accent-bg);
}
.badge-time.backlog {
  color: var(--text-muted);
  background: var(--bg-input);
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

/* Overall Score Badge */
.badge-score {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  min-width: 32px;
  text-align: center;
}
.badge-score.critical {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.badge-score.high {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
}
.badge-score.medium {
  color: #92400e;
  background: rgba(245, 158, 11, 0.2);
}
.badge-score.low {
  color: var(--text-muted);
  background: var(--bg-input);
}

/* Effort Badge */
.badge-effort {
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
}

/* Business Impact in AI Analysis */
.business-impact.critical { color: var(--error); }
.business-impact.high { color: var(--severity-high); }
.business-impact.medium { color: var(--severity-medium); }
.business-impact.low { color: var(--success); }

/* Time Category in AI Analysis */
.time-category.now { color: var(--error); font-weight: 700; }
.time-category.today { color: var(--severity-high); font-weight: 600; }
.time-category.eod { color: var(--severity-medium); }
.time-category.this-week { color: var(--accent); }
.time-category.backlog { color: var(--text-muted); }

/* Overall Score in AI Analysis */
.overall-score.critical { color: var(--error); font-weight: 700; }
.overall-score.high { color: var(--severity-high); font-weight: 600; }
.overall-score.medium { color: var(--severity-medium); }
.overall-score.low { color: var(--text-muted); }

/* Highlight important metrics */
.ai-metric-highlight {
  background: var(--gradient-subtle);
  border-radius: 8px;
  padding: 12px !important;
}

.badge-status {
  background: var(--success-bg);
  color: var(--success);
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--severity-medium);
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.phase-indicators {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
}

.phase-dot.completed {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.phase-dot.pending {
  background: var(--warning);
  animation: pulse 1.5s ease-in-out infinite;
}

.phase-dot.skipped {
  background: var(--text-muted);
}

/* Search and Filters */
.filters-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  animation: fadeSlideDown 0.3s ease-out;
}

.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.clear-filters-btn {
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.clear-filters-btn:hover {
  background: var(--bg-input);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.clear-filters-btn svg {
  width: 14px;
  height: 14px;
}

.filters-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  padding: 10px 36px 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s ease;
  min-width: 130px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.filter-select.active {
  border-color: var(--accent);
  background-color: rgba(196, 244, 0, 0.15);
}

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

.quick-filter-chip {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.quick-filter-chip:hover {
  background: var(--bg-input);
  border-color: var(--text-muted);
}

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

.quick-filter-chip.urgent-chip.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #ef4444;
  animation: pulse-urgent 1.5s ease-in-out infinite;
}

.quick-filter-chip svg {
  width: 12px;
  height: 12px;
}

.filter-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.filter-results-count {
  font-size: 13px;
  color: var(--text-secondary);
}

.filter-results-count strong {
  color: var(--text-primary);
  font-weight: 600;
}

.active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.active-filter-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(196, 244, 0, 0.2);
  border: 1px solid rgba(196, 244, 0, 0.35);
  border-radius: 6px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.active-filter-tag button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.active-filter-tag button:hover {
  opacity: 1;
}

.active-filter-tag button svg {
  width: 12px;
  height: 12px;
}

.no-results {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
}

.no-results svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.no-results p {
  font-size: 13px;
}

@media (max-width: 768px) {
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select {
    width: 100%;
  }

  .quick-filters {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
  }

  .search-row {
    flex-direction: column;
  }
}

/* Engineering Prompt Section */
.ticket-prompt-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(196, 244, 0, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

/* GitHub Integration Section */
.ticket-github-section {
  background: linear-gradient(135deg, rgba(36, 41, 46, 0.9) 0%, rgba(45, 51, 59, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.github-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.github-section-header svg {
  width: 16px;
  height: 16px;
}

.github-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.github-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.github-info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.github-branch-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  background: rgba(196, 244, 0, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.github-repo-name {
  font-size: 13px;
  color: var(--text-primary);
}

.pr-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #238636;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pr-link:hover {
  background: #2ea043;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(35, 134, 54, 0.4);
}

.pr-link svg {
  width: 16px;
  height: 16px;
}

.pr-link .external-icon {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

/* Create Branch Action Section */
.ticket-action-section {
  margin-bottom: 14px;
}

.btn-create-branch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #c4f400 0%, #9bc700 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-create-branch:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 244, 0, 0.45);
}

.btn-create-branch:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-create-branch svg {
  width: 18px;
  height: 18px;
}

.btn-create-branch.loading {
  position: relative;
  color: transparent;
}

.btn-create-branch.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.prompt-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.prompt-section-header svg {
  width: 16px;
  height: 16px;
}

.prompt-text-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.prompt-text-box pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.prompt-text-box pre::selection {
  background: var(--accent-glow);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
}

/* Loading state */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 8px;
  color: var(--text-muted);
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Animations */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* ============================================ */
