/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.5;
  padding: 20px;
}

/* App Container */
.app {
  max-width: 1600px;
  margin: 0 auto;
}

/* Board Header */
.board-header {
  margin-bottom: 30px;
}

.board-title {
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 32px;
  font-weight: 500;
}

.logo {
  display: none;
}

.board-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 30px;
  border-bottom: 2px solid #ddd;
  align-items: stretch;
}

.board-tab {
  position: relative;
  display: flex;
}

.board-tab-manageable {
  padding: 12px 32px;
  min-width: 180px;
  background: #e0e0e0;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: move;
  font-weight: 500;
  font-size: 15px;
  color: #333;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  width: 100%;
  text-align: center;
}

.board-tab .manageable-item {
  width: 100%;
  justify-content: center;
}

.board-tab-manageable:hover:not(.board-tab.active .board-tab-manageable) {
  background: #d0d0d0;
}

.board-tab.active .board-tab-manageable {
  background: #3498db;
  color: white;
}

.board-tab-add {
  font-size: 24px;
  font-weight: 300;
  padding: 12px 20px;
  min-width: 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: none;
  border: 2px dashed #ddd;
  color: #999;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-tab-add:hover {
  border-color: #3498db;
  color: #3498db;
  background: #f0f8ff;
}

.board-tab-form {
  display: inline-block;
}

.board-tab-input {
  padding: 12px 24px;
  background: white;
  border: 2px solid #3498db;
  border-radius: 8px 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  min-width: 150px;
}

.board-tab-text {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.board-tab-delete {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 8px;
  opacity: 0.7;
  transition: all 0.2s;
}

.board-tab-delete:hover {
  color: #ef4444;
  opacity: 1;
}

.board-tab-manageable.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.board-tab-manageable.drag-over {
  background: #c0c0c0;
  transform: scale(1.02);
}

/* Kanban Board */
.kanban-board {
  /* Remove padding as body already has it */
}

/* Category Section */
.category-section {
  margin-bottom: 40px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
  position: relative;
}

.category-section:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-section.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.category-section.drag-over {
  background: #f0f8ff;
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
  transform: scale(1.02);
}

.category-section.drag-over::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 4px;
  background: #3498db;
  border-radius: 2px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.category-drag-handle {
  cursor: grab;
  color: #999;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  user-select: none;
}

.category-drag-handle:hover {
  background: #f0f0f0;
  color: #666;
}

.category-drag-handle:active {
  cursor: grabbing;
}

.category-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  border-left: 4px solid #3498db;
  padding-left: 12px;
  margin: 0;
  flex: 1;
}

.stages-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

/* Stage Column */
.stage-column {
  min-width: 250px;
  max-width: 250px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s;
  position: relative;
  flex-shrink: 0;
}

.stage-column.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.stage-column.drag-over {
  background: #e3f2fd;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.stage-column.drag-over::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2196f3;
  border-radius: 2px;
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.stage-drag-handle {
  cursor: grab;
  color: #bbb;
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  user-select: none;
}

.stage-drag-handle:hover {
  background: #e0e0e0;
  color: #888;
}

.stage-drag-handle:active {
  cursor: grabbing;
}

.stage-title {
  font-weight: 600;
  color: #555;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.task-count {
  background: #ddd;
  color: #666;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.stage-tasks {
  min-height: 100px;
}

.empty-stage {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* Task Card */
.task-card {
  background: white;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.task-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.task-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  cursor: move;
}

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

.task-status-priority {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
}

.task-status-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.task-priority-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.task-type-row {
  display: flex;
  align-items: center;
}

.task-type-badge {
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.task-progress-bar {
  position: relative;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.task-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #3B82F6 0%, #10B981 100%);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.task-progress-percent {
  color: #10B981;
  font-weight: 600;
  font-size: 12px;
}

.task-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.task-due-date, .task-location, .task-notification, .task-todo-count, .task-hours {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.task-recurring {
  font-size: 12px;
  color: #666;
}

.task-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.task-tag {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
}

.task-tag-more {
  color: #999;
  font-size: 11px;
  padding: 2px 4px;
}

/* Drag and Drop Indicators */
.stage-tasks.drag-over {
  background: #e0e7ff;
  border: 2px dashed #6366f1;
  border-radius: 6px;
  padding: 8px;
  transition: all 0.2s;
}

/* Drop position indicator */
.task-card.drag-over-top::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #6366f1;
  border-radius: 2px;
}

.task-card.drag-over-bottom::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #6366f1;
  border-radius: 2px;
}

.task-card.completed {
  opacity: 0.7;
}

.task-card.completed .task-title {
  text-decoration: line-through;
  color: #999;
}

.task-card.priority-high::before {
  content: '';
  width: 4px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: #e74c3c;
  border-radius: 6px 0 0 6px;
}

.task-card.priority-medium::before {
  content: '';
  width: 4px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: #f39c12;
  border-radius: 6px 0 0 6px;
}

.task-card.priority-low::before {
  content: '';
  width: 4px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: #27ae60;
  border-radius: 6px 0 0 6px;
}

.task-card.priority-high,
.task-card.priority-medium,
.task-card.priority-low {
  padding-left: 20px;
}

/* Card Type Styling - keeping classes for potential future use */

/* Effort Type Badge Colors */
.task-card.card-type-engagement .task-type-badge {
  background: #E9D5FF;
  color: #7C3AED;
}

.task-card.card-type-progress .task-type-badge {
  background: #FED7AA;
  color: #EA580C;
}

.task-card.card-type-common .task-type-badge {
  background: #E5E7EB;
  color: #4B5563;
}

.task-description-preview {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  min-height: 36px;
  transition: all 0.2s;
}

.no-description {
  color: #ccc;
  font-style: italic;
}

/* Task Info Row Styling */
.task-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6B7280;
}

.task-info-row > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-due-date {
  color: #DC2626;
  font-weight: 500;
}

.task-location {
  color: #8B5CF6;
}

.task-notification {
  color: #F59E0B;
}

.task-todo-count {
  color: #10B981;
  font-weight: 500;
}

.task-hours {
  color: #3B82F6;
  font-weight: 500;
}

/* Recurring Task Styling */
.task-recurring {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #3B82F6;
  font-size: 12px;
  font-weight: 500;
  background: #DBEAFE;
  padding: 2px 8px;
  border-radius: 12px;
  width: fit-content;
}

.task-card:hover .task-description-preview {
  opacity: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: none;
}

.task-completed-row {
  display: flex;
  align-items: center;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.2s;
  border-top: 1px solid transparent;
}

.task-card:hover .task-completed-row {
  opacity: 1;
  height: auto;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.task-completed-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

.task-completed-label:hover {
  color: #333;
}

.task-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #10B981;
}

.priority-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.priority-indicator.priority-1 {
  background: #3b82f6;
}

.priority-indicator.priority-2 {
  background: #f59e0b;
}

.priority-indicator.priority-3 {
  background: #ef4444;
}

.task-title {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  flex: 1;
  cursor: text;
}

.task-title-edit {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  border: 1px solid #3b82f6;
  border-radius: 4px;
  padding: 4px;
  width: 100%;
  outline: none;
}

.task-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.task-card:hover .task-actions {
  opacity: 1;
}

.task-delete {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.task-delete:hover {
  background: #fee;
  color: #ef4444;
  transform: scale(1.1);
}

/* Add Task */
.add-task-button {
  width: 100%;
  background: none;
  border: 2px dashed #ddd;
  border-radius: 6px;
  padding: 8px;
  color: #999;
  cursor: pointer;
  font-size: 20px;
  font-weight: 300;
  transition: all 0.2s;
  margin-top: 10px;
}

.add-task-button:hover {
  border-color: #3498db;
  color: #3498db;
  background: #e3f2fd;
}

.add-task-form {
  background: white;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.add-task-form input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 4px;
  margin-bottom: 8px;
}

.form-actions {
  display: flex;
  gap: 8px;
}

.form-actions button {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.form-actions button[type="submit"] {
  background: #3b82f6;
  color: white;
}

.form-actions button[type="submit"]:hover {
  background: #2563eb;
}

.form-actions button[type="button"] {
  background: #f5f5f5;
  color: #666;
}

.form-actions button[type="button"]:hover {
  background: #e5e5e5;
}

/* Loading and Error States */
.loading, .error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 18px;
  color: #666;
}

.error {
  color: #ef4444;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Task Detail Modal */
.task-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.task-detail-modal {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.task-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafbfc;
}

.task-detail-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-icon {
  font-size: 18px;
}

.status-label {
  font-weight: 500;
  color: #555;
}

.close-button {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-button:hover {
  background: #f5f5f5;
  color: #333;
}

.task-detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  padding: 0 20px;
}

.task-detail-title-edit {
  width: calc(100% - 40px);
  margin: 0 20px;
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  border: 2px solid #3498db;
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
}

.task-detail-metadata {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  .task-detail-metadata {
    grid-template-columns: 1fr;
  }
}

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

.metadata-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-badge, .priority-badge, .status-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.metadata-select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  cursor: pointer;
  outline: none;
}

.metadata-select:focus {
  border-color: #3498db;
}

.field-group {
  margin-bottom: 12px;
}

.field-group label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.field-group input,
.field-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.field-group input:focus,
.field-group select:focus {
  border-color: #3498db;
}

.meeting-fields, .progress-fields {
  padding: 12px 0;
}

.meeting-details, .progress-overview {
  padding: 20px;
  background: #f0f8ff;
  border-bottom: 1px solid #e0e0e0;
}

.meeting-details h3, .progress-overview h3 {
  font-size: 16px;
  margin: 0 0 12px 0;
  color: #555;
}

.meeting-details > div {
  margin: 8px 0;
  font-size: 14px;
}

.progress-percentage {
  font-size: 48px;
  font-weight: 700;
  color: #3498db;
  text-align: center;
  margin: 16px 0;
}

.progress-bar-container {
  width: 100%;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-bar-fill {
  height: 100%;
  background: #3498db;
  transition: width 0.3s ease;
}

.progress-stats {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.task-detail-section {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.task-detail-section:last-of-type {
  border-bottom: none;
}

.task-detail-section h3 {
  font-size: 16px;
  margin: 0 0 12px 0;
  color: #555;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header h3 {
  margin: 0;
}

.add-todo-button {
  background: #3498db;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.add-todo-button:hover {
  background: #2980b9;
  transform: scale(1.1);
}

.task-detail-description {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
}

.task-detail-description-edit {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  resize: vertical;
  outline: none;
}

.task-detail-description-edit:focus {
  border-color: #3498db;
}

.empty-text {
  color: #999;
  font-style: italic;
}

/* Todos Section */
.todos-section {
  margin-top: 40px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.todos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.todos-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.todos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.2s;
  min-height: 44px;
}

.todo-item:hover {
  background: #e9ecef;
}

.todo-item.completed {
  opacity: 0.7;
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
  color: #999;
}

.todo-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.todo-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.todo-delete {
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.2s;
}

.todo-item:hover .todo-delete {
  opacity: 1;
}

.todo-delete:hover {
  background: #fee;
  color: #ef4444;
}

.add-todo-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
}

.add-todo-form input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.add-todo-form input[type="text"]:focus {
  border-color: #3498db;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

.task-detail-actions {
  display: flex;
  gap: 12px;
  padding: 24px;
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

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

.btn-secondary {
  background: #e5e7eb;
  color: #4b5563;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #e0e0e0;
  color: #666;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
  .board-header {
    padding: 0 10px;
  }
  
  .kanban-board {
    padding: 10px;
  }
  
  .stages-container {
    gap: 10px;
  }
  
  .stage-column {
    min-width: 240px;
  }
  
  .task-detail-modal {
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  
  .task-detail-overlay {
    padding: 0;
  }
}

/* Manageable Item Components */
.manageable-item { 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.manageable-item:hover .item-actions { 
  display: flex; 
}

.item-actions { 
  display: none;
  gap: 8px;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10;
  pointer-events: none;
}

.manageable-item:hover .item-actions {
  pointer-events: auto;
}

.item-action-btn { 
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.item-action-btn:hover { 
  opacity: 1;
}

.editable-title { 
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: text;
}

.editable-title-input { 
  font: inherit;
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 4px;
  background: white;
  width: 100%;
}

.add-item-form { 
  display: flex;
  gap: 8px;
  padding: 8px;
  align-items: center;
}

.add-item-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.add-item-button { 
  background: none;
  border: 1px dashed #ddd;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  color: #666;
  font-size: 14px;
  transition: all 0.2s;
}

.add-item-button:hover {
  border-color: #999;
  color: #333;
}

/* Confirmation Dialog */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.confirm-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  padding: 16px;
  z-index: 1000;
  min-width: 300px;
}

.confirm-content p {
  margin-bottom: 8px;
}

.confirm-subtitle {
  font-size: 13px;
  color: #666;
}

.confirm-warning {
  background: #fff9e6;
  border: 1px solid #ffe0b3;
  border-radius: 4px;
  padding: 8px;
  margin: 12px 0;
}

.confirm-warning ul {
  list-style: none;
  margin-left: 12px;
}

.confirm-warning li {
  color: #b37400;
  font-size: 13px;
}

.confirm-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.confirm-btn {
  flex: 1;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.archive-btn {
  background: #e3f2fd;
  color: #1976d2;
}

.archive-btn:hover {
  background: #bbdefb;
}

.delete-btn {
  background: #ffebee;
  color: #d32f2f;
}

.delete-btn:hover {
  background: #ffcdd2;
}

.cancel-btn {
  background: #f5f5f5;
  color: #666;
}

.cancel-btn:hover {
  background: #e0e0e0;
}

.form-actions {
  display: flex;
  gap: 8px;
}

.form-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-btn {
  background: #4caf50;
  color: white;
}

.submit-btn:hover:not(:disabled) {
  background: #45a049;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Board Tab Styles Update */
.board-tab-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Category and Stage Management */
.category-title-wrapper,
.stage-title-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-category-container {
  padding: 20px;
  text-align: center;
}

.add-category-button {
  font-size: 28px;
  font-weight: 300;
  padding: 12px 24px;
  background: none;
  border: 2px dashed #ddd;
  border-radius: 8px;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
}

.add-category-button:hover {
  border-color: #3498db;
  color: #3498db;
  background: #f0f8ff;
}

.add-stage-container {
  padding: 16px;
  text-align: center;
}

.add-stage-button {
  font-size: 24px;
  font-weight: 300;
  padding: 10px 20px;
  background: none;
  border: 2px dashed #ddd;
  border-radius: 6px;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 50px;
}

.add-stage-button:hover {
  border-color: #3498db;
  color: #3498db;
  background: #f0f8ff;
}

/* Task Detail Tab Navigation */
.task-detail-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.task-detail-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.task-detail-tab:hover {
  color: #333;
  background-color: #f5f5f5;
}

.task-detail-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* UUID Display */
.uuid-value {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.uuid-value:hover {
  background: #e5e7eb;
}

.uuid-value code {
  font-size: inherit;
}

.copy-icon {
  opacity: 0.6;
}

.copy-tooltip {
  position: absolute;
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Toast notification for copy */
.copy-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.copy-toast::before {
  content: '✓ ';
  color: #4ade80;
  font-weight: bold;
  margin-right: 4px;
}

/* Task Relationships Section */
.task-detail-relationships {
  padding: 20px;
  height: calc(100% - 60px);
  overflow-y: auto;
}

.relationships-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.add-relationship-form {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.relationship-type-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 140px;
}

.relationship-uuid-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Consolas', 'Monaco', monospace;
}

.loading-relationships {
  text-align: center;
  color: #666;
  padding: 40px;
}

.relationships-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.relationship-section {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
}

.relationship-type-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.relationship-hint {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

.no-relationships {
  text-align: center;
  color: #999;
  padding: 20px;
  font-style: italic;
}

.relationship-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.relationship-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
}

.relationship-item:hover {
  border-color: #cbd5e1;
}

.relationship-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.relationship-content.clickable {
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 8px;
  margin: -8px;
  border-radius: 6px;
}

.relationship-content.clickable:hover {
  background: rgba(59, 130, 246, 0.1);
}

.relationship-emoji {
  font-size: 20px;
}

.relationship-details {
  flex: 1;
}

.relationship-title {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.relationship-meta {
  font-size: 12px;
  color: #666;
}

.remove-relationship-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 16px;
  transition: color 0.2s;
}

.remove-relationship-btn:hover {
  color: #ef4444;
}

/* Task Detail Comments Section */
.task-detail-comments {
  display: flex;
  flex-direction: column;
  height: calc(100% - 60px);
  gap: 16px;
}

.comment-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.empty-comments {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-style: italic;
}

.comment-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.comment-item.system {
  background: #e8f4fd;
  border-left: 3px solid #2563eb;
}

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

.comment-author {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.comment-timestamp {
  font-size: 12px;
  color: #999;
}

.comment-text {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Comment Form */
.comment-form {
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.comment-input:focus {
  border-color: #2563eb;
}

.comment-input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.comment-submit {
  align-self: flex-end;
  padding: 8px 16px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.comment-submit:hover:not(:disabled) {
  background-color: #1d4ed8;
}

.comment-submit:disabled {
  background-color: #cbd5e1;
  cursor: not-allowed;
}

/* Card Type Selector */
.card-type-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  background: #f5f7fa;
  padding: 8px;
  border-radius: 8px;
}

.card-type-option {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.card-type-option:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.card-type-option.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1e40af;
}

.card-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.card-type-option .checkmark {
  position: absolute;
  right: 8px;
  top: 8px;
  display: none;
  width: 16px;
  height: 16px;
  background: #3b82f6;
  border-radius: 50%;
  color: white;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.card-type-option.selected .checkmark {
  display: block;
}

/* Form Layout Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  color: #374151;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: all 0.2s;
  line-height: 1.5;
}

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

/* Form Sections */
.form-section {
  margin-top: 40px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 20px 0;
}

/* Card-specific Sections */
.card-specific-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 40px 0;
}

.card-specific-section .section-title {
  font-size: 16px;
  margin-bottom: 20px;
}

/* Move Card Section */
.move-section {
  margin-top: 20px;
}

.move-section-loading {
  padding: 20px;
  text-align: center;
  color: #6B7280;
}

.move-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

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

.move-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.move-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.move-select {
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.move-select:hover:not(:disabled) {
  border-color: #9CA3AF;
}

.move-select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.move-select:disabled {
  background-color: #F3F4F6;
  cursor: not-allowed;
  opacity: 0.7;
}

.move-button {
  background-color: #3B82F6;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.move-button:hover:not(:disabled) {
  background-color: #2563EB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.move-button:disabled {
  background-color: #E5E7EB;
  color: #9CA3AF;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Task Detail View Mode */
.task-detail-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 40px;
}

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

.info-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  font-size: 16px;
}

.meta-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
}

.meta-emoji {
  font-size: 18px;
}

.task-detail-progress {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 40px 0;
  text-align: center;
}

.progress-percentage {
  font-size: 48px;
  font-weight: 700;
  color: #3b82f6;
  margin: 16px 0;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-bar-fill {
  height: 100%;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.progress-stats {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Updated Task Detail Form Styles */
.task-detail-form {
  padding: 24px;
}

.task-title-input {
  width: 100%;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 32px;
  outline: none;
  transition: all 0.2s;
  background: white;
}

.task-title-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.task-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-item select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: #374151;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.meta-item select:focus {
  border-color: #3b82f6;
}

.meta-item input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: #374151;
  outline: none;
  transition: border-color 0.2s;
}

.meta-item input[type="date"]:focus {
  border-color: #3b82f6;
}

/* Progress Fields */
.progress-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.progress-icon {
  font-size: 16px;
}

.progress-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.progress-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Meeting Fields */
.meeting-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meeting-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meeting-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.meeting-icon {
  font-size: 16px;
}

.meeting-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.meeting-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Meeting Details View */
.meeting-details-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meeting-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #374151;
}

.meeting-detail-item .meeting-icon {
  font-size: 20px;
}

/* Description Section */
.description-section {
  margin-top: 24px;
}

.description-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 12px 0;
}

.task-description-input {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.5;
}

.task-description-input:focus {
  border-color: #3b82f6;
}

/* Task Description View */
.task-description {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  padding: 0;
  background: transparent;
  border-radius: 0;
  min-height: 60px;
}

/* Task Detail View Title */
.task-detail-modal h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 32px 0;
  padding: 0;
}

/* Task Detail Content */
.task-detail-content {
  padding: 32px;
}

/* Tag Selector */
.tag-selector {
  position: relative;
  margin-bottom: 16px;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  gap: 6px;
}

.tag-remove {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  margin: 0;
  opacity: 0.8;
}

.tag-remove:hover {
  opacity: 1;
}

.add-tag-button {
  background: #F3F4F6;
  border: 1px dashed #D1D5DB;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
}

.add-tag-button:hover {
  background: #E5E7EB;
  border-color: #9CA3AF;
  color: #4B5563;
}

.tag-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 10;
  min-width: 250px;
  max-height: 300px;
  overflow-y: auto;
}

.tag-create-section {
  padding: 12px;
  border-bottom: 1px solid #E5E7EB;
}

.tag-create-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #3B82F6;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.tag-create-button:hover {
  background: #F3F4F6;
}

.tag-create-form {
  display: flex;
  gap: 8px;
}

.tag-create-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-size: 14px;
}

.tag-create-submit,
.tag-create-cancel {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.tag-create-submit {
  background: #3B82F6;
  color: white;
}

.tag-create-submit:hover:not(:disabled) {
  background: #2563EB;
}

.tag-create-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tag-create-cancel {
  background: #F3F4F6;
  color: #6B7280;
}

.tag-create-cancel:hover {
  background: #E5E7EB;
}

.tag-list {
  padding: 8px;
}

.tag-option {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  gap: 8px;
}

.tag-option:hover {
  background: #F3F4F6;
}

.tag-option.selected {
  background: #EBF5FF;
}

.tag-option-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.tag-option-name {
  flex: 1;
  font-size: 14px;
  color: #374151;
}

.tag-usage {
  font-size: 12px;
  color: #9CA3AF;
}

.tag-checkmark {
  color: #3B82F6;
  font-weight: 600;
}

/* Additional Tag Selector Styles */
.tag-selector {
  position: relative;
  width: 100%;
}

.tag-selector .selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 4px 0;
}

.tag-selector .selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  position: relative;
}

.tag-selector .tag-remove {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  margin-left: 4px;
  opacity: 0.8;
  line-height: 1;
}

.tag-selector .tag-remove:hover {
  opacity: 1;
}

.tag-selector .add-tag-button {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-selector .add-tag-button:hover {
  background: #e5e7eb;
  color: #4b5563;
  font-weight: bold;
}

/* Reports Page Styles */
.reports-container {
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
}

.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.reports-header h1 {
  margin: 0;
  color: #2c3e50;
}

.reports-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reports-summary {
  font-size: 1.1rem;
  color: #666;
}

.easy-add-button {
  background-color: #3B82F6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.easy-add-button:hover {
  background-color: #2563EB;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.easy-add-form {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.easy-add-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
}

.easy-add-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.easy-add-actions {
  display: flex;
  gap: 8px;
}

.easy-add-submit {
  background-color: #3B82F6;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.easy-add-submit:hover {
  background-color: #2563EB;
}

.easy-add-cancel {
  background-color: #F3F4F6;
  color: #6B7280;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.easy-add-cancel:hover {
  background-color: #E5E7EB;
}

.reports-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.reports-filters input,
.reports-filters select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
}

.archived-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.archived-filter input[type="checkbox"] {
  cursor: pointer;
}

.reports-table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.reports-table th,
.reports-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.reports-table th {
  background: #f8f9fa;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

.reports-table th:hover {
  background: #e9ecef;
}

.reports-table th.sorted-asc::after {
  content: ' ↑';
  opacity: 0.6;
}

.reports-table th.sorted-desc::after {
  content: ' ↓';
  opacity: 0.6;
}

.reports-table tbody tr:hover {
  background: #f8f9fa;
}

.reports-table tbody tr.clickable-row {
  cursor: pointer;
  transition: all 0.2s;
}

.reports-table tbody tr.clickable-row:hover {
  background: #e3f2fd;
  transform: translateX(2px);
}

.reports-table tbody tr.archived-row {
  opacity: 0.7;
  background: #f5f5f5;
}

.reports-table tbody tr.archived-row:hover {
  background: #e0e0e0;
}

.archived-badge {
  font-size: 11px;
  color: #999;
  font-style: italic;
}

.reports-table .priority-high {
  color: #e74c3c;
  font-weight: 600;
}

.reports-table .priority-medium {
  color: #f39c12;
  font-weight: 500;
}

.reports-table .priority-low {
  color: #27ae60;
}

.reports-table .status-blocked {
  color: #e74c3c;
}

.reports-table .status-in-progress {
  color: #3498db;
}

.reports-table .status-on-track {
  color: #27ae60;
}

.reports-table .status-not-started {
  color: #999;
}

/* Navigation styles */
.main-navigation {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.nav-button {
  padding: 10px 20px;
  border: none;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-button:hover {
  background: #3498db;
  color: white;
}

.nav-button.active {
  background: #3498db;
  color: white;
}