* {
  margin: 0;
  padding-top: 0;
  box-sizing: border-box;
}

:root {
  /* Restored original dark theme CSS variables */
  --color-background: #0a0a0f;
  --color-surface: #1a1a24;
  --color-surface-elevated: #252535;
  --color-primary: #8b5cf6;
  --color-primary-hover: #7c3aed;
  --color-accent: #06b6d4;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: #2d2d3d;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: white;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

/* Optional: ensure icons don't shrink */
.tab-icon {
  flex-shrink: 0;
}

/* Optional: hide tab-label on small screens */
@media (max-width: 768px) {
  .tab-label {
    display: none;
  }
}

.tab-label {
  font-weight: 500;
}

/* Smooth transitions */

.user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* Dashboard styles */

/* Tasks */
.btn-btn-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}
.dashboard-main3 {
  padding: 2rem;
  box-sizing: border-box;
  margin-left: 90px;
}

.content-header3 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.tasks-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.task-filter {
  padding: 0.625rem 1.25rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  color: var(--color-text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.task-filter:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.task-filter.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Added styles for filter dropdowns */
.filter-dropdowns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  padding: 0.625rem 1rem;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 220px;
  height: 42px;
  width: 220px;
}

.filter-select:hover {
  background: #334155;
  border-color: #475569;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
  background: #334155;
}

/* View switcher styles */
.view-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  background: #1e293b;
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid #334155;
}

.view-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: #334155;
  color: #cbd5e1;
}

.view-btn.active {
  background: #667eea;
  color: #ffffff;
}

/* List view styles */
.tasks-list-view {
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid #334155;
  overflow: hidden;
}

.list-container {
  overflow-x: auto;
}

.tasks-table {
  width: 100%;
  border-collapse: collapse;
}

.tasks-table thead {
  background: #0f172a;
  border-bottom: 2px solid #334155;
}

.tasks-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tasks-table tbody tr {
  border-bottom: 1px solid #334155;
  transition: background 0.2s;
}

.tasks-table tbody tr:hover {
  background: #0f172a;
}

.tasks-table td {
  padding: 1rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.tasks-table td input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.list-task-title {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.list-task-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.list-assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-assignee-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #667eea;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Gantt view styles */
.tasks-gantt-view {
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid #334155;
  padding: 1.5rem;
}

.gantt-container {
  overflow-x: auto;
}

.gantt-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #334155;
}

.gantt-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  min-width: 600px;
}

.timeline-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
  padding: 0.5rem;
  background: #0f172a;
  border-radius: 6px;
}

.gantt-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 600px;
}

.gantt-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #334155;
}

.gantt-task-info {
  min-width: 200px;
  flex-shrink: 0;
}

.gantt-task-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.gantt-task-meta {
  font-size: 0.75rem;
  color: #94a3b8;
}

.gantt-bar-container {
  flex: 1;
  height: 32px;
  background: #1e293b;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.gantt-bar {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.2s;
}

.gantt-bar:hover {
  opacity: 0.9;
  transform: scaleY(1.1);
}

.gantt-bar.high {
  background: #dc2626;
}

.gantt-bar.medium {
  background: #f59e0b;
}

.gantt-bar.low {
  background: #10b981;
}

.tasks-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 110%;
}

.task-column {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.task-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.task-column-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.task-count {
  background-color: var(--color-surface-elevated);
  color: var(--color-text-muted);
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.3s ease;
}

.task-card:hover {
  border-color: var(--color-primary);
}

.task-card.completed {
  opacity: 0.6;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.task-card-header input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

.task-priority {
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.task-priority.high {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.task-priority.medium {
  background-color: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.task-priority.low {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.task-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.task-card p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.task-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.task-due,
.task-source,
.task-completed {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.assignee-avatar {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.task-assignee span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.integration-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
}

.integration-notice .integration-icon {
  font-size: 2rem;
}

.integration-notice p {
  flex: 1;
  color: var(--color-text-muted);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}

.dashboard-layout {
  min-height: 100vh;
}

.dashboard-main {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.content-header {
  margin-bottom: 2rem;
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.content-header p {
  color: #94a3b8;
  font-size: 1rem;
}

.tasks-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #667eea;
  color: #ffffff;
}

.btn-primary:hover {
  background: #5568d3;
}

.task-filter {
  padding: 0.625rem 1rem;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.task-filter:hover {
  background: #334155;
  border-color: #475569;
}

.task-filter.active {
  background: #667eea;
  color: #ffffff;
  border-color: #667eea;
}

.tasks-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.task-column {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #334155;
}

.task-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #334155;
}

.task-column-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

.task-count {
  background: #334155;
  color: #cbd5e1;
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.2s;
}

.task-card:hover {
  border-color: #475569;
  transform: translateY(-2px);
}

.task-card.completed {
  opacity: 0.6;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.task-card-header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.task-priority {
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.task-priority.high {
  background: #dc2626;
  color: #ffffff;
}

.task-priority.medium {
  background: #f59e0b;
  color: #ffffff;
}

.task-priority.low {
  background: #10b981;
  color: #ffffff;
}

.task-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.task-card p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.task-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}

.task-assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.assignee-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #667eea;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Modal with solid black background - no transparency */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

/* Changed from #1f2937 to #000000 for solid black background */
.modal-content {
  background: #000000;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
  animation: modalSlideIn 0.3s ease;
  position: relative;
  z-index: 1001;
  border: 1px solid #374151;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #374151;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #1f2937;
  color: #ffffff;
}

#task-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

/* Darker input backgrounds for better contrast against solid black */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  background: #1a1a1a;
  color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  background: #262626;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
}

.btn-secondary {
  background: #374151;
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: #4b5563;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .tasks-board {
    grid-template-columns: 1fr;
  }
}

/* Added styles for detailed task view modal with Jira-like features */

/* Task Details Modal Styles */
.task-details-content {
  max-width: 1200px;
  width: 95%;
  max-height: 95vh;
}

.task-details-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.task-type-badge {
  background: #667eea;
  color: #ffffff;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.task-id {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
}

.task-details-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 1.5rem;
  max-height: calc(95vh - 80px);
  overflow-y: auto;
}

.task-details-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-section {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #374151;
}

.detail-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.detail-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.detail-title-input {
  width: 100%;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  font-family: inherit;
}

.detail-title-input:focus {
  outline: none;
  border-bottom: 2px solid #667eea;
}

.detail-textarea {
  width: 100%;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #ffffff;
  font-family: inherit;
  resize: vertical;
}

.detail-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #262626;
}

.btn-icon {
  background: transparent;
  border: 1px solid #374151;
  color: #94a3b8;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #1e293b;
  border-color: #667eea;
  color: #667eea;
}

/* Subtasks */
.subtasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subtask-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  transition: all 0.2s;
}

.subtask-item:hover {
  border-color: #475569;
}

.subtask-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.subtask-title {
  color: #667eea;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  flex: 1;
  font-size: 0.875rem;
}

.subtask-title:hover {
  color: #5568d3;
  text-decoration: underline;
}

.subtask-title.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

.btn-delete {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.btn-delete:hover {
  opacity: 0.7;
}

/* Linked Issues */
.linked-issues-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.linked-issue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  transition: all 0.2s;
}

.linked-issue-item:hover {
  border-color: #667eea;
  cursor: pointer;
}

.link-type {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.linked-task-id,
.linked-task-title {
  color: #667eea;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.linked-task-id:hover,
.linked-task-title:hover {
  color: #5568d3;
  text-decoration: underline;
}

.linked-task-title {
  flex: 1;
  color: #e2e8f0;
  font-size: 0.875rem;
}

/* Attachments */
.attachments-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.attachment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.attachment-item:hover {
  border-color: #667eea;
}

.attachment-icon {
  font-size: 2rem;
}

.attachment-name {
  font-size: 0.75rem;
  color: #cbd5e1;
  text-align: center;
  word-break: break-word;
}

.attachment-size {
  font-size: 0.6875rem;
  color: #64748b;
}

/* Comments */
.comment-input-container {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.user-avatar.small {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.comment-textarea {
  flex: 1;
  padding: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #ffffff;
  font-family: inherit;
  resize: vertical;
}

.comment-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #262626;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.comment-item {
  display: flex;
  gap: 0.75rem;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.comment-time {
  font-size: 0.75rem;
  color: #64748b;
}

.comment-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.comment-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.comment-action {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.comment-action:hover {
  color: #667eea;
}

/* Activity Log */
.activity-log {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border-radius: 8px;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.activity-time {
  font-size: 0.75rem;
  color: #64748b;
}

/* Sidebar */
.task-details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-select,
.sidebar-input {
  width: 100%;
  padding: 0.625rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-select:hover,
.sidebar-input:hover {
  border-color: #475569;
}

.sidebar-select:focus,
.sidebar-input:focus {
  outline: none;
  border-color: #667eea;
  background: #262626;
}

.assignee-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.assignee-selector:hover {
  border-color: #475569;
}

.assignee-selector span {
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* Time Tracking */
.time-tracking {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.time-label {
  font-size: 0.8125rem;
  color: #94a3b8;
  min-width: 70px;
}

.time-input {
  flex: 1;
  padding: 0.375rem 0.625rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #ffffff;
  font-family: inherit;
}

.time-input:focus {
  outline: none;
  border-color: #667eea;
}

.time-progress {
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.time-progress-bar {
  height: 100%;
  background: #667eea;
  transition: width 0.3s;
}

/* Labels */
.labels-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.label-tag {
  padding: 0.25rem 0.625rem;
  background: #334155;
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.label-remove {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
}

.label-remove:hover {
  color: #ffffff;
}

.btn-add-label {
  background: transparent;
  border: 1px dashed #374151;
  color: #94a3b8;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-label:hover {
  border-color: #667eea;
  color: #667eea;
}

/* Added label tags for task cards */
.task-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.task-label-tag {
  padding: 0.1875rem 0.5rem;
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-block;
}

/* Watchers */
.watchers-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-add-watcher {
  background: transparent;
  border: 1px dashed #374151;
  color: #94a3b8;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-watcher:hover {
  border-color: #667eea;
  color: #667eea;
}

.meta-text {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* Added Sprint Management Styles */
.sprint-section {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #374151;
}

.sprint-section:last-child {
  border-bottom: none;
}

.sprint-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.sprint-item {
  padding: 1rem;
  background: #1a1a1a;
  border: 1px solid #374151;
  border-radius: 8px;
  transition: all 0.2s;
}

.sprint-item:hover {
  border-color: #667eea;
}

.sprint-item.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.sprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sprint-name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.sprint-status {
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.sprint-status.active {
  background: #10b981;
  color: #ffffff;
}

.sprint-status.planned {
  background: #3b82f6;
  color: #ffffff;
}

.sprint-status.completed {
  background: #64748b;
  color: #ffffff;
}

.sprint-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.sprint-actions {
  display: flex;
  gap: 0.5rem;
}

.sprint-progress {
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.sprint-progress-bar {
  height: 100%;
  background: #10b981;
  transition: width 0.3s;
}

/* Added Color Picker Styles */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.color-option {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #000000, 0 0 0 4px #ffffff;
}

/* Added List View Styles */
.tasks-list-view {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #334155;
}

.list-container {
  overflow-x: auto;
}

.tasks-table {
  width: 100%;
  border-collapse: collapse;
}

.tasks-table thead {
  background: #0f172a;
  border-bottom: 2px solid #334155;
}

.tasks-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tasks-table tbody tr {
  border-bottom: 1px solid #334155;
  transition: background 0.2s;
  cursor: pointer;
}

.tasks-table tbody tr:hover {
  background: #0f172a;
}

.tasks-table td {
  padding: 1rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.list-task-title {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.list-task-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.list-assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-assignee-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #667eea;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* Added Gantt View Styles */
.tasks-gantt-view {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #334155;
}

.gantt-container {
  overflow-x: auto;
}

.gantt-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #334155;
}

.gantt-timeline {
  display: flex;
  gap: 2rem;
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gantt-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gantt-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1rem;
  padding: 0.75rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.gantt-row:hover {
  border-color: #667eea;
}

.gantt-task-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gantt-task-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.gantt-task-meta {
  display: flex;
  gap: 0.5rem;
}

.gantt-bar-container {
  position: relative;
  height: 32px;
  background: #1a1a1a;
  border-radius: 6px;
}

.gantt-bar {
  position: absolute;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s;
}

.gantt-bar.high {
  background: #dc2626;
}

.gantt-bar.medium {
  background: #f59e0b;
}

.gantt-bar.low {
  background: #10b981;
}

/* Added View Switcher Styles */
.view-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.view-btn {
  padding: 0.625rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: #334155;
  border-color: #475569;
}

.view-btn.active {
  background: #667eea;
  border-color: #667eea;
  color: #ffffff;
}

.view-btn svg {
  display: block;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .tasks-board {
    grid-template-columns: 1fr;
  }
}