 /* Enhanced Task Management Styles */

/* Task Input Row */
.task-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

/* Time Range Display */
.time-range {
  background: rgba(74, 158, 255, 0.1);
  color: #4a9eff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(74, 158, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Tomorrow Count Display */
.tomorrow-count {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.task-input-row .input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border, #4a5568);
  color: var(--text, #ffffff);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.task-input-row .input:focus {
  outline: none;
  border-color: var(--accent, #4a9eff);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
  background: rgba(74, 158, 255, 0.05);
}

.task-input-row .input::placeholder {
  color: var(--text-muted, #a0aec0);
}

.task-input-row .primary {
  background: var(--accent, #4a9eff);
  border: 1px solid var(--accent, #4a9eff);
  color: var(--panel, #ffffff);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-input-row .primary:hover {
  background: var(--accent-hover, #3a8eef);
  border-color: var(--accent-hover, #3a8eef);
  transform: translateY(-1px);
}

/* Task Cards */
.task-card {
  background: rgba(15, 15, 15, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.task-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #4a9eff), #6bcf7f, #ffd93d);
  border-radius: 12px 12px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.task-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
  background: rgba(15, 15, 15, 0.6);
}

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

.task-card:hover .task-description {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(74, 158, 255, 0.3);
}

.task-card.priority-high {
  border-left: 4px solid #ff6b6b;
}

.task-card.priority-medium {
  border-left: 4px solid #ffd93d;
}

.task-card.priority-low {
  border-left: 4px solid #6bcf7f;
}

.task-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  justify-content: flex-start;
}

.task-left {
  display: flex;
  align-items: center;
  margin-top: 0;
  flex-shrink: 0;
}

.task-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.task-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.3;
  word-break: break-word;
  display: block;
  letter-spacing: -0.01em;
  text-align: center;
}

.task-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
  padding: 8px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: center;
}

.task-meta:empty {
  display: none;
}

.task-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-top: 2px;
  position: relative;
  z-index: 2; /* keep above any overlapping action buttons on mobile */
}

.task-checkbox input[type="checkbox"] {
  margin: 0;
  margin-right: 0;
  width: 18px;
  height: 18px;
  accent-color: #4a9eff;
  cursor: pointer;
}

/* Density tweaks - removed duplicate */

/* Enhanced Form UI */
.quick-add-enhanced {
  background: linear-gradient(135deg, var(--panel, #1a1a1a) 0%, var(--panel2, #2a2a2a) 100%);
  border: 1px solid var(--border, #2d3748);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.quick-add-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #4a9eff), #6bcf7f, #ffd93d);
  border-radius: 16px 16px 0 0;
}

.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-header h3 {
  margin: 0 0 8px 0;
  color: var(--text, #e5e7eb);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent, #4a9eff), #6bcf7f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-subtitle {
  margin: 0;
  color: var(--text-muted, #a0aec0);
  font-size: 0.9rem;
  font-style: italic;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text, #e5e7eb);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.label-icon {
  font-size: 1rem;
  opacity: 0.8;
}

.input-enhanced {
  background: var(--panel, #1a1a1a);
  border: 2px solid var(--border, #2d3748);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text, #e5e7eb);
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.input-enhanced:focus {
  outline: none;
  border-color: var(--accent, #4a9eff);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
  background: rgba(74, 158, 255, 0.02);
  transform: translateY(-1px);
}

.input-enhanced.error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
  background: rgba(255, 107, 107, 0.02);
}

.input-enhanced::placeholder {
  color: var(--text-muted, #a0aec0);
  opacity: 0.7;
}


.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted, #a0aec0);
  margin-top: 4px;
  opacity: 0.8;
}

/* Notes Styles */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.note-card {
  background: var(--panel, #1a1a1a);
  border: 2px solid var(--border, #2d3748);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.note-checkbox {
  padding: 16px 12px;
  display: flex;
  align-items: flex-start;
  border-right: 1px solid var(--border, #2d3748);
  background: rgba(0, 0, 0, 0.2);
}

.note-select {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent, #4a9eff);
}

.note-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--accent, #4a9eff);
}

.note-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border, #2d3748);
  background: rgba(74, 158, 255, 0.05);
}

.note-category {
  font-size: 12px;
  color: var(--accent, #4a9eff);
  font-weight: 500;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.note-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #e5e7eb);
  margin-bottom: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-content {
  color: var(--text-muted, #a0aec0);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 16px;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted, #a0aec0);
  margin-top: auto;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border, #2d3748);
}

.note-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.note-action-btn {
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.3);
  color: #4a9eff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.note-action-btn:hover {
  background: rgba(74, 158, 255, 0.2);
  border-color: rgba(74, 158, 255, 0.5);
}

.note-action-btn.delete {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  cursor: pointer;
  pointer-events: auto;
}

.note-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* Delete Selected Button */
#delete-selected {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

#delete-selected:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.notes-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted, #a0aec0);
}

.notes-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.notes-empty h4 {
  margin: 0 0 8px 0;
  color: var(--text, #e5e7eb);
  font-size: 18px;
}

.notes-empty p {
  margin: 0;
  font-size: 14px;
}

/* Category Selector */
#note-category {
  background: var(--panel, #1a1a1a);
  border: 2px solid var(--border, #2d3748);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text, #e5e7eb);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#note-category:focus {
  outline: none;
  border-color: var(--accent, #4a9eff);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
  background: rgba(74, 158, 255, 0.02);
}

#note-category option {
  background: var(--panel, #1a1a1a);
  color: var(--text, #e5e7eb);
  padding: 8px;
  border: none;
}

/* Rich Text Editor */
.rich-text-editor {
  border: 2px solid var(--border, #2d3748);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel, #1a1a1a);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rich-text-editor:focus-within {
  border-color: var(--accent, #4a9eff);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border, #2d3748);
  flex-wrap: wrap;
}

.toolbar-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #a0aec0);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn:hover {
  background: rgba(74, 158, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.3);
  color: var(--accent, #4a9eff);
}

.toolbar-btn.active {
  background: var(--accent, #4a9eff);
  color: white;
  border-color: var(--accent, #4a9eff);
}

.toolbar-separator {
  width: 1px;
  height: 20px;
  background: var(--border, #2d3748);
  margin: 0 4px;
}

.editor-content {
  min-height: 200px;
  padding: 16px;
  color: var(--text, #e5e7eb);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  overflow-y: auto;
  max-height: 400px;
}

.editor-content:empty::before {
  content: attr(placeholder);
  color: var(--text-muted, #a0aec0);
  font-style: italic;
  pointer-events: none;
}

.editor-content h1, .editor-content h2, .editor-content h3 {
  color: var(--text, #e5e7eb);
  margin: 16px 0 8px 0;
  font-weight: 600;
}

.editor-content h1 { font-size: 20px; }
.editor-content h2 { font-size: 18px; }
.editor-content h3 { font-size: 16px; }

.editor-content p {
  margin: 8px 0;
}

.editor-content ul, .editor-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.editor-content li {
  margin: 4px 0;
}

.editor-content code {
  background: rgba(74, 158, 255, 0.1);
  color: #4a9eff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.editor-content pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border, #2d3748);
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.4;
}

.editor-content pre code {
  background: none;
  color: var(--text, #e5e7eb);
  padding: 0;
  border-radius: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  display: block;
}

.editor-content a {
  color: var(--accent, #4a9eff);
  text-decoration: underline;
  text-decoration-color: rgba(74, 158, 255, 0.5);
}

.editor-content a:hover {
  text-decoration-color: var(--accent, #4a9eff);
}

.editor-content blockquote {
  border-left: 4px solid var(--accent, #4a9eff);
  padding-left: 16px;
  margin: 12px 0;
  color: var(--text-muted, #a0aec0);
  font-style: italic;
}

/* Simple Code Block Styles */
.simple-code-block {
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(74, 158, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.simple-code-block:hover {
  border-color: rgba(74, 158, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.code-textarea {
  width: 100%;
  min-height: 120px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: var(--text, #e5e7eb);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  tab-size: 4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-textarea:focus {
  background: rgba(0, 0, 0, 0.7);
}

.code-textarea::placeholder {
  color: var(--text-muted, #a0aec0);
  font-style: italic;
}

.code-display {
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(74, 158, 255, 0.2);
  cursor: pointer;
}

.highlighted-code {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text, #e5e7eb);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.highlighted-code code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: inherit;
  word-wrap: inherit;
}

/* Code Preview Styles */
.code-preview {
  margin: 8px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 8px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
}

.code-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-preview-lang {
  background: rgba(74, 158, 255, 0.2);
  color: var(--accent, #4a9eff);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.code-preview-text {
  color: var(--text-muted, #a0aec0);
  font-style: italic;
}

/* Syntax Highlighting Styles */
.keyword {
  color: #ff79c6;
  font-weight: bold;
}

.string {
  color: #f1fa8c;
}

.number {
  color: #bd93f9;
}

.comment {
  color: #6272a4;
  font-style: italic;
}

.literal {
  color: #50fa7b;
}

.function {
  color: #8be9fd;
}

.variable {
  color: #ffb86c;
}

.operator {
  color: #ff79c6;
}

.punctuation {
  color: #f8f8f2;
}

.preprocessor {
  color: #ff79c6;
  font-weight: bold;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(74, 158, 255, 0.05));
  border-bottom: 1px solid rgba(74, 158, 255, 0.2);
  gap: 12px;
}

.code-language-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 6px;
  color: var(--text, #e5e7eb);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.code-language-select:hover {
  border-color: rgba(74, 158, 255, 0.5);
  background: rgba(0, 0, 0, 0.4);
}

.code-language-select:focus {
  outline: none;
  border-color: var(--accent, #4a9eff);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.code-copy-btn, .code-delete-btn, .code-line-numbers-btn, .code-highlight-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 6px;
  color: var(--text, #e5e7eb);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.code-copy-btn:hover {
  background: rgba(74, 158, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.5);
  transform: translateY(-1px);
}

.code-line-numbers-btn:hover, .code-highlight-btn:hover {
  background: rgba(74, 158, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.5);
  transform: translateY(-1px);
}

.code-line-numbers-btn.active {
  background: rgba(74, 158, 255, 0.2);
  border-color: rgba(74, 158, 255, 0.6);
  color: var(--accent, #4a9eff);
}

.code-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: translateY(-1px);
}

.code-block-container {
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0;
  overflow-x: auto;
  overflow-y: visible;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100px;
  width: 100%;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.8);
  border-right: 1px solid rgba(74, 158, 255, 0.2);
  padding: 20px 12px 20px 16px;
  user-select: none;
  min-width: 50px;
  text-align: right;
}

.line-number {
  color: var(--text-muted, #a0aec0);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

.code-block {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow-x: auto;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  flex: 1;
}

.code-content {
  display: block;
  padding: 20px;
  margin: 0;
  background: transparent;
  color: var(--text, #e5e7eb);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-spacing: normal;
  letter-spacing: normal;
  outline: none;
  border: none;
  min-height: 60px;
  transition: all 0.2s ease;
  tab-size: 4;
  overflow-wrap: break-word;
  hyphens: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: none;
  overflow: visible;
  resize: none;
}

.code-content:focus {
  background: rgba(0, 0, 0, 0.1);
}

.code-content:empty::before {
  content: '// Enter your code here...';
  color: var(--text-muted, #a0aec0);
  font-style: italic;
  pointer-events: none;
}

/* Enhanced Syntax Highlighting */
.code-content .keyword {
  color: #ff79c6;
  font-weight: 600;
}

.code-content .string {
  color: #f1fa8c;
}

.code-content .number {
  color: #bd93f9;
}

.code-content .comment {
  color: #6272a4;
  font-style: italic;
}

.code-content .function {
  color: #50fa7b;
  font-weight: 500;
}

.code-content .variable {
  color: #8be9fd;
}

.code-content .literal {
  color: #ffb86c;
  font-weight: 500;
}

.code-content .tag {
  color: #ff79c6;
  font-weight: 600;
}

.code-content .attribute {
  color: #8be9fd;
}

.code-content .property {
  color: #50fa7b;
}

.code-content .selector {
  color: #ff79c6;
}

.code-content .key {
  color: #8be9fd;
  font-weight: 500;
}

/* Language-specific styling */
.code-content[data-language="python"] .keyword {
  color: #ff79c6;
}

.code-content[data-language="html"] .tag {
  color: #ff79c6;
}

.code-content[data-language="css"] .property {
  color: #50fa7b;
}

.code-content[data-language="sql"] .keyword {
  color: #ff79c6;
  text-transform: uppercase;
}

.code-content[data-language="json"] .key {
  color: #8be9fd;
}

/* Mobile responsiveness for code blocks */
@media (max-width: 768px) {
  .enhanced-code-block {
    margin: 12px 0;
  }
  
  .code-header {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .code-language-select {
    min-width: 100px;
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .code-copy-btn, .code-delete-btn, .code-line-numbers-btn {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .line-numbers {
    padding: 16px 8px 16px 12px;
    min-width: 40px;
  }
  
  .line-number {
    font-size: 12px;
  }
  
  .code-content {
    padding: 16px;
    font-size: 13px;
    min-height: 50px;
  }
}

/* Export Options */
.export-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.export-option {
  background: var(--panel, #1a1a1a);
  border: 2px solid var(--border, #2d3748);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.export-option:hover {
  border-color: var(--accent, #4a9eff);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.export-option.selected {
  border-color: var(--accent, #4a9eff);
  background: rgba(74, 158, 255, 0.1);
}

.export-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 158, 255, 0.1);
  border-radius: 8px;
}

.export-text {
  flex: 1;
}

.export-title {
  font-weight: 600;
  color: var(--text, #e5e7eb);
  margin-bottom: 4px;
}

.export-desc {
  font-size: 12px;
  color: var(--text-muted, #a0aec0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .note-card {
    min-height: 100px;
    flex-direction: column;
  }
  
  .note-checkbox {
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border, #2d3748);
    display: flex;
    justify-content: center;
  }
  
  .note-content-area {
    flex: 1;
  }
  
  .export-options {
    grid-template-columns: 1fr;
  }
  
  .editor-toolbar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
  }
  
  .toolbar-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .editor-content {
    min-height: 150px;
    padding: 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .notes-grid {
    gap: 8px;
  }
  
  .note-card {
    min-height: 80px;
  }
  
  .note-header {
    padding: 12px 12px 8px;
  }
  
  .note-content {
    padding: 12px;
    font-size: 13px;
  }
  
  .note-meta {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  .note-actions {
    gap: 4px;
  }
  
  .note-action-btn {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .section-actions {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .section-actions button {
    width: 100%;
    margin-right: 0 !important;
  }
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.btn-primary, .btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent, #4a9eff), #3a8eef);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.4);
  background: linear-gradient(135deg, #3a8eef, #2a7edf);
}

.btn-secondary {
  background: transparent;
  color: var(--text, #e5e7eb);
  border-color: var(--border, #2d3748);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--panel2, #2a2a2a);
  border-color: var(--accent, #4a9eff);
  color: var(--accent, #4a9eff);
  transform: translateY(-1px);
}

.btn-primary:disabled, .btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

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

.btn-text {
  font-weight: 600;
}

.form-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  animation: slideIn 0.3s ease;
}

.status-success {
  background: rgba(107, 207, 127, 0.1);
  border: 1px solid rgba(107, 207, 127, 0.3);
  color: #6bcf7f;
}

.status-error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .quick-add-enhanced {
    padding: 20px;
    border-radius: 12px;
  }
  
  .form-header h3 {
    font-size: 1.25rem;
  }
  
  .form-grid {
    gap: 16px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .time-input-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .time-input, .ampm-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .quick-add-enhanced {
    padding: 16px;
  }
  
  .form-header h3 {
    font-size: 1.1rem;
  }
  
  .form-subtitle {
    font-size: 0.8rem;
  }
  
  .input-enhanced {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}



.task-header {
  gap: 10px;
  margin-bottom: 10px;
}

/* Task Actions */
.task-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
  opacity: 1;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .task-card .task-actions { opacity: 0.7; }
  .task-card:hover .task-actions,
  .task-card:focus-within .task-actions { opacity: 1; }
}

/* Compact title with 2-line clamp */
.task-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Standard property for broader support */
.task-title { 
  line-clamp: 2;
  -webkit-line-clamp: 2;
}
.task-title.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

/* Date pill (deadline) already themed; ensure compact height */
.deadline {
  line-height: 1.1;
}

/* Days-left badge styles */
.days-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e0;
  background: rgba(255,255,255,0.04);
}
.days-left.safe { /* > 3 days */
  color: #a7f3d0;
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.25);
}
.days-left.warn { /* 1–3 days */
  color: #fde68a;
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.25);
}
.days-left.overdue {
  color: #fecaca;
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
}

.task-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.action-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Edit Button Styling */
.edit-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edit-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.05);
}

/* Pomodoro Button Styling */
.pomodoro-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pomodoro-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.05);
}

.pomodoro-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Reset Button Styling */
.pomodoro-reset-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pomodoro-reset-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.05);
}

/* Move Button Styling */
.move-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.move-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.05);
}

/* Delete Button Styling */
.delete-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.delete-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.05);
}

.task-description {
  color: #b8bcc8;
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  display: block;
  font-style: normal;
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(74, 158, 255, 0.2);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.task-description:empty {
  display: none;
}

.task-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 24px;
}

.priority-badge {
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-pill {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.priority-pill.priority-high {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  color: white;
  border-color: #ff6b6b;
}

.priority-pill.priority-medium {
  background: linear-gradient(135deg, #ffd93d 0%, #ffc107 100%);
  color: #0a0a0a;
  border-color: #ffd93d;
}

.priority-pill.priority-low {
  background: linear-gradient(135deg, #6bcf7f 0%, #4caf50 100%);
  color: white;
  border-color: #6bcf7f;
}

.task-date {
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  background: rgba(74, 158, 255, 0.15);
  border: 1px solid rgba(74, 158, 255, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(74, 158, 255, 0.2);
  opacity: 1;
  transition: all 0.2s ease;
}

.task-date:empty {
  display: none;
}

.task-sessions {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  opacity: 1;
  transition: all 0.2s ease;
  display: inline-block;
}

.task-sessions:empty {
  display: none;
}

.sessions-link {
  color: #ffffff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(107, 207, 127, 0.15);
  border: 1px solid rgba(107, 207, 127, 0.3);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(107, 207, 127, 0.2);
  opacity: 1;
  font-weight: 500;
  font-size: 11px;
}

.sessions-link:hover {
  background: rgba(107, 207, 127, 0.25);
  border-color: rgba(107, 207, 127, 0.5);
  transform: translateY(-1px);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(107, 207, 127, 0.3);
}

.task-date:hover {
  background: rgba(74, 158, 255, 0.25);
  border-color: rgba(74, 158, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

.task-time:hover {
  background: rgba(255, 217, 61, 0.25);
  border-color: rgba(255, 217, 61, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 217, 61, 0.3);
}

.priority-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Show session link even when it shows 0 sessions */
.sessions-link.empty-sessions {
  opacity: 0.6;
  pointer-events: auto;
  background: rgba(74, 158, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.2);
}

/* Show session links even with 0 sessions */
.sessions-link[data-sessions="0"] {
  display: inline-block !important;
  opacity: 0.6;
}

.task-time {
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 217, 61, 0.15);
  border: 1px solid rgba(255, 217, 61, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(255, 217, 61, 0.2);
  opacity: 1;
  transition: all 0.2s ease;
}

.task-time:empty {
  display: none;
}

.pomodoro-count {
  color: #4a9eff;
  font-size: 12px;
  font-weight: 600;
}

.expiry-warning {
  color: #ff6b6b;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 107, 107, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.task-card.expiring-soon {
  border-left-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.05);
}

/* Time Logs */
.time-logs {
  margin-top: 8px;
  border-top: 1px solid var(--border-color, #2d3748);
  padding-top: 8px;
}

.toggle-logs-btn {
  background: transparent;
  border: none;
  color: var(--accent, #4a9eff);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0;
}

.logs-content {
  margin-top: 8px;
}

.time-log {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  color: var(--text-secondary, #a0aec0);
}

/* Tasks Header */
.tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.task-stats {
  display: flex;
  gap: 12px;
  align-items: center;
}

.progress-text {
  font-weight: 500;
  color: var(--accent, #4a9eff);
}

.counts-text {
  color: var(--text-secondary, #a0aec0);
  font-size: 14px;
}

.progress-bar {
  background: var(--border-color, #2d3748);
  height: 4px;
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.progress-fill {
  background: var(--accent, #4a9eff);
  height: 100%;
  transition: width 0.3s ease;
}

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

.backlog-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary, #a0aec0);
  cursor: pointer;
}

.backlog-toggle input[type="checkbox"] {
  margin: 0;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.dashboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border, #2d3748);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.dashboard-item:hover {
  border-color: var(--accent, #4a9eff);
  background: rgba(74, 158, 255, 0.05);
}

.dashboard-icon {
  font-size: 24px;
  font-weight: 700;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--panel, #1a1a1a) 0%, var(--panel2, #2a2a2a) 100%);
  border-radius: 12px;
  border: 1px solid var(--border, #333333);
  color: var(--accent, #4a9eff);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dashboard-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.dashboard-item:hover .dashboard-icon::before {
  left: 100%;
}

.dashboard-item:hover .dashboard-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.3);
}

/* Futuristic Dashboard Icon Styling */
.pomodoro-icon {
  color: #ff6b6b;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}

.dashboard-item:hover .pomodoro-icon {
  color: #ff6b6b;
  text-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.task-icon {
  color: #6bcf7f;
  text-shadow: 0 0 10px rgba(107, 207, 127, 0.4);
}

.dashboard-item:hover .task-icon {
  color: #6bcf7f;
  text-shadow: 0 0 15px rgba(107, 207, 127, 0.6);
  box-shadow: 0 8px 25px rgba(107, 207, 127, 0.3);
}

.trophy-icon {
  color: #ffd93d;
  text-shadow: 0 0 10px rgba(255, 217, 61, 0.4);
}

.dashboard-item:hover .trophy-icon {
  color: #ffd93d;
  text-shadow: 0 0 15px rgba(255, 217, 61, 0.6);
  box-shadow: 0 8px 25px rgba(255, 217, 61, 0.3);
}

.target-icon {
  color: #ff4757;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}

.dashboard-item:hover .target-icon {
  color: #ff4757;
  text-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

/* Settings Button */
.settings-btn {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid #333333;
  color: #a0aec0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.settings-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.settings-btn:hover::before {
  left: 100%;
}

.settings-btn:hover {
  background: linear-gradient(135deg, #4a9eff 0%, #3a8eef 100%);
  color: white;
  border-color: #4a9eff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.3);
}

.dashboard-content {
  flex: 1;
  min-width: 0;
}

.dashboard-label {
  font-size: 11px;
  color: var(--text-secondary, #a0aec0);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #ffffff);
  line-height: 1.2;
}

/* Progress Display */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-bar {
  background: var(--border-color, #2d3748);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--accent, #4a9eff), #6bcf7f);
  height: 100%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  color: var(--text-secondary, #a0aec0);
  text-align: center;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .task-card {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  
  .task-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-align: center;
  }
  
  .task-left {
    order: 1;
    margin: 0;
  }
  
  .task-main {
    order: 2;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
  }
  
  .task-title {
    order: 1;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  
  .task-description {
    order: 2;
    margin: 0 0 12px 0;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
  }
  
  .task-meta {
    order: 3;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 12px 0 0 0;
    justify-content: center;
  }
  
  .task-actions {
    margin-top: 16px;
    padding-top: 12px;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .action-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 10px;
  }
  
  .priority-pill {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
  }
  
  .task-date, .task-time, .sessions-link {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  /* Enhanced mobile layout for small screens */
  .task-card { 
    padding: 16px; 
    margin-bottom: 12px;
    border-radius: 12px;
  }
  
  .task-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    text-align: center;
  }
  
  .task-left { 
    order: 1;
    margin: 0;
  }
  
  .task-main {
    order: 2;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
  }
  
  .task-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4a9eff;
  }
  
  .task-title { 
    order: 1;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .task-description {
    order: 2;
    margin: 0 0 10px 0;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
  }
  
  .task-meta { 
    order: 3;
    gap: 6px; 
    flex-wrap: wrap; 
    margin: 0;
    padding: 10px 0 0 0;
    justify-content: center;
  }
  
  .task-actions { 
    margin-top: 14px; 
    padding-top: 10px;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .action-btn { 
    width: 40px; 
    height: 40px; 
    font-size: 14px;
    border-radius: 8px;
  }
  
  .priority-pill {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
  }
  
  .task-date, .task-time, .sessions-link {
    font-size: 11px; 
    padding: 5px 8px;
    border-radius: 6px;
  }
  
  /* Enhanced touch feedback */
  .action-btn:active {
    transform: scale(0.95);
  }
  
  .task-checkbox:active {
    transform: scale(0.95);
  }
}

@media (max-width: 360px) {
  .task-card { 
    padding: 12px; 
    margin-bottom: 10px;
    border-radius: 10px;
  }
  
  .task-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .task-description {
    padding: 6px 10px;
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .action-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  
  .task-meta {
    gap: 4px;
    padding: 8px 0 0 0;
  }
  
  .priority-pill {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  .task-date, .task-time, .sessions-link {
    font-size: 10px;
    padding: 4px 6px;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(1200px 600px at 50% 10%, rgba(74, 158, 255, 0.08), transparent 40%), rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--panel, #111827);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal.show .modal-content { transform: translateY(0) scale(1); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.modal-header h2 {
  margin: 0;
  color: var(--text, #ffffff);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted, #a0aec0);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: var(--text, #ffffff);
  background: var(--panel2, #2d3748);
}

.modal-body {
  padding: 18px;
}

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

.form-group label {
  display: block;
  margin-bottom: 4px;
  color: var(--text, #ffffff);
  font-size: 14px;
  font-weight: 500;
}

.form-group .input {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--border, #4a5568);
  color: var(--text, #ffffff);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group .input:focus {
  outline: none;
  border-color: var(--accent, #4a9eff);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.form-group textarea.input {
  resize: vertical;
  min-height: 60px;
}

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

/* Badge Modal */
.badge-content {
  text-align: center;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--accent, #4a9eff)10;
  border: 1px solid var(--accent, #4a9eff)30;
  border-radius: 8px;
  margin-bottom: 12px;
}

.badge-icon {
  font-size: 32px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent, #4a9eff)20;
  border-radius: 50%;
}

.badge-info h3 {
  margin: 0 0 4px 0;
  color: var(--text, #ffffff);
}

.badge-info p {
  margin: 0;
  color: var(--text-muted, #a0aec0);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .task-header {
    flex-wrap: wrap;
  }
  
  .task-actions {
    margin-top: 8px;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
}

/* Animation for completed tasks */
.task-card.completed {
  opacity: 0.7;
  background: linear-gradient(135deg, rgba(107, 207, 127, 0.1) 0%, rgba(107, 207, 127, 0.05) 100%);
  border-color: rgba(107, 207, 127, 0.3);
  transform: scale(0.98);
  transition: all 0.3s ease;
}

.task-card.completed .task-title {
  text-decoration: line-through;
  color: var(--text-muted, #a0aec0);
}

.task-card.completed::before {
  background: linear-gradient(90deg, #6bcf7f, #4caf50);
  opacity: 0.8;
}

/* Loading states */
.task-card.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.task-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Button loading states */
.action-btn.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.action-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: button-spin 1s linear infinite;
}

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

/* Success animation */
.task-card.success {
  animation: success-pulse 0.6s ease;
}

@keyframes success-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); background: rgba(107, 207, 127, 0.1); }
  100% { transform: scale(1); }
}

/* Error animation */
.task-card.error {
  animation: error-shake 0.5s ease;
}

@keyframes error-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Toast notifications */
.toast.error {
  background: #ff6b6b;
  color: white;
}

.toast.success {
  background: #6bcf7f;
  color: white;
}

.toast.info {
  background: var(--accent, #4a9eff);
  color: white;
}

/* Quick Manual styles */
#quick-manual {
  border-top: 1px solid #2d3748;
  margin-top: 8px;
  padding-top: 8px;
}
.manual-list {
  margin: 6px 0 0 18px;
  padding: 0;
  color: var(--text-muted, #cbd5e0);
}
.manual-list li {
  margin-bottom: 6px;
  line-height: 1.35;
}
.manual-list strong { color: #ffffff; }
.manual-list strong { color: var(--text, #ffffff); }

/* Quote modal typography */
.quote-large {
  color: var(--text, #ffffff);
  font-size: 18px;
  line-height: 1.5;
}
.quote-large::before {
  content: '“';
  color: rgba(255,255,255,0.2);
  font-size: 40px;
  line-height: 0;
  vertical-align: -10px;
  margin-right: 4px;
}

/* Quickbar icon alignment */
.icon-btn#open-quote {
  margin-right: 6px;
}

/* Session Modal Styles */
.sessions-modal {
  padding: 20px;
}

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

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

.sessions-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(74, 158, 255, 0.08);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 8px;
  padding: 12px 8px;
  transition: all 0.2s ease;
}

.stat-item:hover {
  background: rgba(74, 158, 255, 0.12);
  border-color: rgba(74, 158, 255, 0.3);
  transform: translateY(-2px);
}

.stat-label {
  color: #a0aec0;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  color: #4a9eff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.sessions-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.session-log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.session-log-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(74, 158, 255, 0.3);
}

.session-info {
  display: flex;
  gap: 15px;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
}

.session-number {
  color: #4a9eff;
  font-weight: 600;
  font-size: 14px;
  min-width: 30px;
  background: rgba(74, 158, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
}

.session-time {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  font-family: 'Courier New', monospace;
  min-width: 70px;
  background: rgba(74, 158, 255, 0.15);
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid rgba(74, 158, 255, 0.3);
}

.session-date {
  color: #a0aec0;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
}

.session-time-range {
  color: #4a9eff;
  font-size: 11px;
  font-weight: 500;
  background: rgba(74, 158, 255, 0.08);
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid rgba(74, 158, 255, 0.2);
}

.delete-session-btn {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff4757;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.delete-session-btn:hover {
  background: rgba(255, 71, 87, 0.2);
  border-color: rgba(255, 71, 87, 0.5);
  transform: scale(1.05);
}

.sessions-actions {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clear-all-sessions-btn {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff4757;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.clear-all-sessions-btn:hover {
  background: rgba(255, 71, 87, 0.2);
  border-color: rgba(255, 71, 87, 0.5);
  transform: translateY(-2px);
}

.no-sessions {
  text-align: center;
  color: #a0aec0;
  font-style: italic;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Mobile responsive for session modal */
@media (max-width: 768px) {
  .sessions-modal {
    padding: 15px;
  }
  
  .sessions-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .sessions-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .stat-item {
    padding: 8px 6px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .stat-value {
    font-size: 14px;
  }
  
  .session-log-item {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .session-info {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
  }
  
  .session-number {
    min-width: auto;
    padding: 3px 6px;
    font-size: 12px;
  }
  
  .session-time {
    min-width: auto;
    padding: 4px 8px;
    font-size: 16px;
  }
  
  .session-date {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .session-time-range {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .delete-session-btn {
    align-self: flex-end;
  }
}
