/* Work Items Board Styles */
@import url('dashboard.css');

/* Visually hidden class for accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Main Content Adjustment - Override dashboard.css if needed, or just rely on it */
/* The .main-content class from dashboard.css handles the margin and padding */

/* Dashboard Header - Avatar only on right */
.main-content .dashboard-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 2rem 1rem 2rem;
}

/* Page Header - Title, Search, Buttons */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem 2rem 2rem;
  gap: 2rem;
}

/* Kanban Board */
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.board-title h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.board-title p {
  color: #94a3b8;
}

.search-container {
  flex: 1;
  max-width: 400px;
  position: relative;
  margin: 0 2rem;
}

.search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input::placeholder {
  color: #64748b;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #0f172a;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.board-controls {
  display: flex;
  gap: 1rem;
  position: relative;
}

/* Override dashboard.css btn-secondary for dark theme */
.main-content .btn-secondary {
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
  font-size: 0.875rem;
  white-space: nowrap;
}

.main-content .btn-secondary:hover {
  background: #334155;
  color: white;
  border-color: #475569;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #334155;
  color: white;
  border-color: #475569;
}

.kanban-board {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  height: calc(100vh - 200px);
}

.kanban-column {
  flex: 1;
  min-width: 300px;
  background: #1e293b;
  /* Dark column background */
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  border: 1px solid #334155;
}

.column-header {
  padding: 1rem;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  border-radius: 12px 12px 0 0;
}

.column-title {
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* Auto-generate toggle in Step 2 */
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.form-label-row label {
  margin-bottom: 0;
}

.auto-generate-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
}

.auto-generate-toggle .toggle-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.auto-generate-toggle .toggle-label i {
  color: var(--accent-purple, #8b5cf6);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--card-border, #334155);
  transition: 0.3s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent-purple, #8b5cf6);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* AI Badge for auto-generated fields */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  font-size: 10px;
  color: #a78bfa;
  font-weight: 500;
  margin-left: 8px;
}

.ai-badge i {
  font-size: 9px;
}

/* AI-generated textarea styling */
.form-textarea.ai-generated {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text-secondary, #94a3b8);
}

.form-textarea.ai-generated::placeholder {
  color: var(--text-tertiary, #64748b);
  font-style: italic;
}

/* Generating indicator */
.generating-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: #a78bfa;
  margin-top: 8px;
}

.generating-indicator i {
  animation: spin 1s linear infinite;
}

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

.item-count {
  background: #334155;
  color: #e2e8f0;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.column-content {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Scrollbar Styling for Dark Mode */
.column-content::-webkit-scrollbar {
  width: 6px;
}

.column-content::-webkit-scrollbar-track {
  background: #1e293b;
}

.column-content::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 3px;
}

.column-content::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Work Item Card */
.work-item-card {
  background: #273548;
  /* Slightly lighter than column */
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid #334155;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.work-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  background: #334155;
  border-color: #475569;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.item-type {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Adjust tag colors for dark mode visibility */
.type-epic {
  background: #431407;
  color: #fdba74;
  border: 1px solid #7c2d12;
}

.type-feature {
  background: #172554;
  color: #93c5fd;
  border: 1px solid #1e3a8a;
}

.type-story {
  background: #052e16;
  color: #86efac;
  border: 1px solid #14532d;
}

.type-task {
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
}

.type-bug {
  background: #450a0a;
  color: #fca5a5;
  border: 1px solid #7f1d1d;
}

.item-id {
  font-size: 0.75rem;
  color: #94a3b8;
}

.card-title {
  font-weight: 500;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.assignee-avatar {
  width: 24px;
  height: 24px;
  background: #475569;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #e2e8f0;
  border: 1px solid #64748b;
}

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

.ask-ai-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  transform: translateX(10px);
}

.work-item-card:hover .ask-ai-btn {
  opacity: 1;
  transform: translateX(0);
}

.ask-ai-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.platform-icon {
  font-size: 1rem;
}

.platform-ado {
  color: #3b82f6;
}

.platform-jira {
  color: #2563eb;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: #94a3b8;
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Loading State */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #334155;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Filter Dropdown */
.filter-container {
  position: relative;
}

.filter-menu {
  position: absolute;
  top: 120%;
  right: 0;
  width: 300px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.5),
    0 8px 10px -6px rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-header h2,
.filter-header h3,
.filter-header .filter-title {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.clear-filters {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.clear-filters:hover {
  color: #f8fafc;
  text-decoration: underline;
}

.filter-section {
  margin-bottom: 1.5rem;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section h3,
.filter-section h4 {
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.filter-option {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 0.9rem;
  user-select: none;
  transition: color 0.2s;
}

.filter-option:hover {
  color: #fff;
}

.filter-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s;
}

.filter-option:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.1);
}

.filter-option input:checked ~ .checkmark {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.checkmark:after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-option input:checked ~ .checkmark:after {
  display: block;
}

.filter-option i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.filter-option .tag {
  padding: 2px 8px;
  font-size: 0.75rem;
}

/* Radio Button Styles */
.checkmark.radio {
  border-radius: 50%;
}

.checkmark.radio:after {
  left: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  border: none;
  transform: none;
}

/* Board Sections for Multi-Platform Support */
.board-section {
  margin-bottom: 3rem;
  width: 100%;
}

.board-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #334155;
  z-index: 10;
}

.board-section-title i {
  font-size: 1.5rem;
}

.board-container {
  width: 100%;
  height: 100%;
}

/* Recently Modified Highlighting (Conversation Continuity) */
.work-item-card.recently-modified {
  animation: highlightPulse 2s ease-in-out infinite;
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

@keyframes highlightPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
  }
}

.work-item-card.recently-modified::before {
  content: '✓ Modified';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #10b981;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

/* Drag and Drop Toggle */
.drag-drop-toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 1rem;
  padding-right: 1rem;
  border-right: 1px solid #334155;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #3b82f6;
}

input:focus + .slider {
  box-shadow: 0 0 1px #3b82f6;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

.toggle-label {
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Drag and Drop Styles */
.work-item-card[draggable='true'] {
  cursor: grab;
}

.work-item-card[draggable='true']:active {
  cursor: grabbing;
}

.work-item-card.dragging {
  opacity: 0.5;
  border: 2px dashed #3b82f6;
  transform: scale(0.95);
}

.kanban-column.drag-over {
  background: rgba(59, 130, 246, 0.1);
  border: 2px dashed #3b82f6;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  width: 400px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #f1f5f9;
  font-size: 1.1rem;
}

.close-modal {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.close-modal:hover {
  color: #f1f5f9;
}

.modal-body {
  padding: 1rem;
  overflow-y: auto;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  color: #e2e8f0;
}

.user-item:hover {
  background-color: #334155;
}

.user-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #475569;
}

.user-item .user-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.user-email {
  font-size: 0.75rem;
  color: #94a3b8;
}

.loading-users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #94a3b8;
  padding: 2rem;
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid #334155;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.assignee-avatar {
  cursor: pointer;
  transition: transform 0.2s;
}

.assignee-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Assignee Dropdown */
.assignee-dropdown {
    position: absolute;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    width: 300px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.1s ease-out;
}

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

.dropdown-header-search {
    padding: 0.75rem;
    border-bottom: 1px solid #334155;
    background: #1e293b;
}

.dropdown-header-search input {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    color: #f1f5f9;
    font-size: 0.875rem;
}

.dropdown-header-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.dropdown-list {
    overflow-y: auto;
    flex: 1;
    max-height: 300px;
}

.dropdown-user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.1s;
}

.dropdown-user-item:hover {
    background: #334155;
}

.dropdown-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
}

.dropdown-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-user-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.dropdown-user-name {
    font-size: 0.875rem;
    color: #f1f5f9;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-loading, .dropdown-empty {
    padding: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Analytics Filter Banner */
.analytics-filter-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 0 2rem 1.5rem 2rem;
    animation: slideDown 0.3s ease-out;
}

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

.analytics-filter-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
}

.analytics-filter-banner .banner-content i {
    font-size: 1.25rem;
    color: #a78bfa;
}

.analytics-filter-banner .banner-text {
    font-size: 0.95rem;
}

.analytics-filter-banner .banner-text strong {
    color: #a78bfa;
}

.analytics-filter-banner .item-count {
    color: #94a3b8;
    font-weight: 500;
}

.analytics-filter-banner .clear-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
  padding: 2rem;
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid #334155;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.assignee-avatar {
  cursor: pointer;
  transition: transform 0.2s;
}

.assignee-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Assignee Dropdown */
.assignee-dropdown {
    position: absolute;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    width: 300px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.1s ease-out;
}

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

.dropdown-header-search {
    padding: 0.75rem;
    border-bottom: 1px solid #334155;
    background: #1e293b;
}

.dropdown-header-search input {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    color: #f1f5f9;
    font-size: 0.875rem;
}

.dropdown-header-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.dropdown-list {
    overflow-y: auto;
    flex: 1;
    max-height: 300px;
}

.dropdown-user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.1s;
}

.dropdown-user-item:hover {
    background: #334155;
}

.dropdown-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
}

.dropdown-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-user-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.dropdown-user-name {
    font-size: 0.875rem;
    color: #f1f5f9;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-loading, .dropdown-empty {
    padding: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Analytics Filter Banner */
.analytics-filter-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 0 2rem 1.5rem 2rem;
    animation: slideDown 0.3s ease-out;
}

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

.analytics-filter-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
}

.analytics-filter-banner .banner-content i {
    font-size: 1.25rem;
    color: #a78bfa;
}

.analytics-filter-banner .banner-text {
    font-size: 0.95rem;
}

.analytics-filter-banner .banner-text strong {
    color: #a78bfa;
}

.analytics-filter-banner .item-count {
    color: #94a3b8;
    font-weight: 500;
}

.analytics-filter-banner .clear-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analytics-filter-banner .clear-filter-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

/* View Controls */
.view-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-right: 1rem;
  padding-right: 1rem;
  border-right: 1px solid #334155;
}

.select-control {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25em;
}

.select-control:focus {
  outline: none;
  border-color: #3b82f6;
}

#focusModeBtn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #3b82f6;
}

/* Card Signals */
.card-signals {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.signal-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background: #334155;
  color: #cbd5e1;
}

.signal-badge.risk-high {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.signal-badge.risk-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.signal-badge.age-warning {
  color: #fcd34d;
}

.signal-badge.age-critical {
  color: #fca5a5;
}

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

.risk-dot.critical { background: #ef4444; box-shadow: 0 0 4px #ef4444; }
.risk-dot.high { background: #f97316; }
.risk-dot.medium { background: #f59e0b; }

/* Age Badges */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-weight: 500;
}

.age-badge.age-normal {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.age-badge.age-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.age-badge.age-critical {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Priority Badges */
.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-weight: 600;
}

.priority-badge.priority-p1 {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.priority-badge.priority-p2 {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Initiative Badge */
.initiative-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.initiative-badge i {
  font-size: 0.65rem;
}

/* Tag Chips */
.card-tags {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.25);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Load More Button */
.load-more-container {
  padding: 1rem;
  text-align: center;
}

.load-more-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  width: 100%;
}

.load-more-btn:hover {
  background: #334155;
  color: #e2e8f0;
}

/* Focus Mode Banner */
.focus-mode-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  grid-column: 1 / -1;
}

/* Focus Mode Empty State */
.focus-empty-state {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
}

.empty-state-content {
  text-align: center;
  max-width: 500px;
}

.empty-state-content i.fa-check-circle {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.empty-state-content h3 {
  color: #e2e8f0;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.empty-state-content p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.empty-state-hint {
  color: #94a3b8;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.empty-state-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.empty-state-actions .btn-primary,
.empty-state-actions .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.empty-state-actions .btn-primary {
  background: #3b82f6;
  color: white;
  border: none;
}

.empty-state-actions .btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.empty-state-actions .btn-secondary {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.empty-state-actions .btn-secondary:hover {
  background: rgba(100, 116, 139, 0.3);
  border-color: #64748b;
  color: #e2e8f0;
}

.focus-mode-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.focus-mode-banner i.fa-bullseye {
  color: #3b82f6;
  font-size: 1.25rem;
}

.focus-mode-banner .banner-text {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.focus-mode-banner .banner-text strong {
  color: #93c5fd;
  font-weight: 600;
}

.focus-mode-banner .item-count {
  color: #94a3b8;
  font-weight: 500;
  margin-left: 0.5rem;
}

.focus-mode-banner .clear-focus-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  color: #93c5fd;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.focus-mode-banner .clear-focus-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
  color: #e2e8f0;
}

/* Grouping Headers */
.group-header {
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 2px solid #3b82f6;
  border-left: 4px solid #3b82f6;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.025em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.group-header:hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  border-left-color: #60a5fa;
  border-bottom-color: #60a5fa;
  transform: translateX(2px);
}

.group-header .item-count {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-weight: 700;
}

.group-header i {
  color: #3b82f6;
  transition: transform 0.2s ease;
}

.group-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.3);
  border-left: 2px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1rem;
}

.group-content.collapsed {
  display: none;
}

/* ========== Create Work Item Modal Styles ========== */

/* Add button in column header */
.column-add-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.column-add-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #60a5fa;
  transform: scale(1.1);
}

/* Work Item Type Selection Cards */
.work-item-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.work-item-type-card {
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-color, #374151);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.work-item-type-card:hover {
  border-color: var(--accent-blue, #3b82f6);
  background: rgba(59, 130, 246, 0.05);
}

.work-item-type-card.selected {
  border-color: var(--accent-blue, #3b82f6);
  background: rgba(59, 130, 246, 0.1);
}

.work-item-type-card .type-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 18px;
  color: white;
}

.work-item-type-card .type-icon.epic { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.work-item-type-card .type-icon.feature { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.work-item-type-card .type-icon.story { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.work-item-type-card .type-icon.task { background: linear-gradient(135deg, #f59e0b, #eab308); }
.work-item-type-card .type-icon.bug { background: linear-gradient(135deg, #ef4444, #dc2626); }
.work-item-type-card .type-icon.test-case { background: linear-gradient(135deg, #10b981, #059669); }

.work-item-type-card .type-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #9ca3af);
}

.work-item-type-card.selected .type-name {
  color: var(--text-primary, #f9fafb);
}

/* Parent Selector with Search */
.parent-selector {
  position: relative;
  margin-top: 8px;
}

.parent-search-input {
  width: 100%;
  padding: 12px 16px;
  padding-right: 40px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-color, #374151);
  border-radius: 10px;
  color: var(--text-primary, #f9fafb);
  font-size: 14px;
  transition: all 0.2s;
}

.parent-search-input:focus {
  outline: none;
  border-color: var(--accent-blue, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.parent-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary, #9ca3af);
}

.parent-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid var(--border-color, #374151);
  border-radius: 10px;
  margin-top: 4px;
  z-index: 100;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.parent-dropdown.show {
  display: block;
}

.parent-option {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
}

.parent-option:hover {
  background: rgba(59, 130, 246, 0.1);
}

.parent-option.selected {
  background: rgba(59, 130, 246, 0.15);
}

.parent-option .parent-type {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.parent-option .parent-title {
  font-size: 13px;
  color: var(--text-primary, #f9fafb);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.parent-option .parent-id {
  font-size: 11px;
  color: var(--text-secondary, #9ca3af);
}

/* AI Generation Sliders */
.ai-sliders-section {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.ai-sliders-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 16px;
}

.ai-sliders-section h4 i {
  font-size: 16px;
}

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

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

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slider-label span {
  font-size: 13px;
  color: var(--text-secondary, #9ca3af);
}

.slider-label .slider-value {
  font-weight: 600;
  color: var(--accent-blue, #3b82f6);
  min-width: 24px;
  text-align: center;
}

.ai-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(75, 85, 99, 0.4);
  outline: none;
  transition: all 0.2s;
}

.ai-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.ai-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(59, 130, 246, 0.5);
}

.ai-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  cursor: pointer;
  border: none;
}

/* Test Case Note */
.test-case-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: #34d399;
}

.test-case-note i {
  font-size: 14px;
}

/* Preview Section */
.creation-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color, #374151);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.creation-preview h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #9ca3af);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-tree {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 12px;
  color: var(--text-primary, #f9fafb);
  line-height: 1.8;
}

.preview-tree .tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-tree .tree-item.level-0 { padding-left: 0; }
.preview-tree .tree-item.level-1 { padding-left: 20px; }
.preview-tree .tree-item.level-2 { padding-left: 40px; }
.preview-tree .tree-item.level-3 { padding-left: 60px; }

.preview-tree .tree-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: white;
}

/* Modal Action Buttons */
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.modal-actions .btn-secondary {
  padding: 12px 20px;
  background: rgba(75, 85, 99, 0.3);
  border: 1px solid var(--border-color, #374151);
  border-radius: 10px;
  color: var(--text-primary, #f9fafb);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-actions .btn-secondary:hover {
  background: rgba(75, 85, 99, 0.5);
}

.modal-actions .btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.modal-actions .btn-ai {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.modal-actions .btn-ai:hover {
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Form textarea for description/AC */
.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-color, #374151);
  border-radius: 10px;
  color: var(--text-primary, #f9fafb);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Form input styling for modal */
#createWorkItemModal .form-group input[type="text"],
#createWorkItemModal .form-group input[type="number"],
#createWorkItemModal .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-color, #374151);
  border-radius: 10px;
  color: var(--text-primary, #f9fafb);
  font-size: 14px;
  transition: all 0.2s;
}

#createWorkItemModal .form-group input:focus,
#createWorkItemModal .form-group select:focus {
  outline: none;
  border-color: var(--accent-blue, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#createWorkItemModal .form-group select {
  cursor: pointer;
}

/* Two column layout for form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Status pre-filled indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: #60a5fa;
  margin-bottom: 16px;
}

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

/* Review content preview */
.review-content-preview {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-color, #374151);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary, #9ca3af);
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
}

/* AI tip box */
.ai-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.ai-tip i {
  color: #a78bfa;
  font-size: 18px;
  margin-top: 2px;
}

.ai-tip span {
  color: var(--text-secondary, #9ca3af);
  font-size: 13px;
  line-height: 1.5;
}

.ai-tip strong {
  color: #a78bfa;
}