* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    line-height: 1.5;
    min-width: 360px;
}

/*
  Primary #2c3e50
  Secondary #3498db
  Background blue #2c3e50
  Good #27ae60
  Bad #e74c3c
*/

/* ========================================
   HEADER
   ======================================== */

.header {
    background: #2c3e50;
    color: white;
    padding: 12px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 500;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: white;
}

.logo-image {
  height: 80px;  /* Adjust to match header height */
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.logo:hover .logo-image {
  opacity: 0.8;
}

/* ============================================
   HEADER RIGHT SECTION (About + Hamburger)
   ============================================ */

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.about-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
}

.about-top {
  text-align: center;
  letter-spacing: 0.15em;
  font-size: 26px;
  font-weight: bold;
}

.about-bottom {
  letter-spacing: -0.02em;
  margin-top: -10px; /* 8 looked good */
}

.about-link:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  
  .about-top {
    letter-spacing: 0em;
    font-size: 14px;
    transition: all 0.2s ease;
  }

  .about-bottom {
    display: none;
    transition: all 0.2s ease;
  }

}

/* Hamburger menu button - ALWAYS visible */
.mobile-menu-btn {
  display: block;
  background: none;
  border: 2px solid white;
  border-radius: 4px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 12px;
  line-height: 1;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Peeked state when scrolled */
.header.peeked {
    padding: 4px 0;  /* Reduced from 12px */
    transition: padding 0.3s ease;
}

.header.peeked .logo-image {
    height: 27px;  /* 1/3 of 80px */
    transition: height 0.3s ease;
}

.header.peeked .about-link {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.header.peeked .mobile-menu-btn {
    font-size: 14px;  /* Reduced from 20px */
    padding: 4px 8px;  /* Reduced from 6px 12px */
    transition: all 0.3s ease;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #2c3e50;
    color: white;
    padding: 12px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position:relative;
    bottom: 0;
    z-index: 500;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-decoration: none;
    color: white;
}

.footer-right {
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: white;
}

/* ========================================
   MAIN LAYOUT - TWO COLUMNS
   ======================================== */

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 24px;
}

/* ========================================
   SIDEBAR (1/3), right
   ======================================== */

.sidebar {
    position: static;
    max-width: 250px;
    width: 100%;
  }

/* Navigation Sections */
.nav-section {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e8ecef;
}

.nav-title {
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    padding: 4px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
    color: #2c3e50;
}

.nav-item:hover {
    background: #f8f9fa;
}

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

.nav-item-text {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nav-item .nav-dot.user {
    background: #3498db;
}

.nav-item .nav-dot.project {
    background: #e67e22;
}

.nav-item.active .nav-dot {
    background: white;
}

.nav-count {
    color: #95a5a6;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-item.active .nav-count {
    color: rgba(255,255,255,0.8);
}

/* iOS-style Toggle Switch (used for viewing tasks or not) */

.task-toggle-group {
  display: flex;
  gap: 8px;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.toggle-label {
  font-size: 14px;
  color: #2c3e50;
}

/* The switch container */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
}

/* The slider circle */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

/* Checked state - blue background */
input:checked + .slider {
  background-color: #3498db;
}

/* Move circle to the right when checked */
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Hover effect */
.slider:hover {
  opacity: 0.9;
}

/* Delete mode toggle colors */
#deleteMode:not(:checked) + .slider {
  background-color: #3498db; /* Blue when in restore mode (unchecked) */
}

#deleteMode:checked + .slider {
  background-color: #e74c3c; /* Red when in delete mode (checked) */
}

#deleteMode:not(:checked) + .slider:hover {
  opacity: 0.9;
}

#deleteMode:checked + .slider:hover {
  opacity: 0.9;
}

/* ========================================
   MAIN CONTENT AREA (2/3), left
   ======================================== */

.content-area {
    min-height: 100vh;
}

/* ========================================
   SELECT ALL CHECKBOX
   ======================================== */

.select-all-container {
  padding: 12px 16px;
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end; 
}

.select-all-label {
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  color: white;
  font-weight: 500;
}

.select-all-count {
  color: #95a5a6;
  font-size: 13px;
}

.select-all-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3498db;
}

/* ========================================
   DYNAMIC SEARCH BAR
   ======================================== */

.search-box {
  /* position: fixed;
  top: 124px;
  right: calc((100vw - 1000px) / 2 + 12px);  */
  width: 250px;
  z-index: 100;
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e8ecef;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

.search-hidden {
    display: none !important;
}

/* ========================================
   THOUGHT CARDS
   ======================================== */

.thought-card {
    background: white;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.thought-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.thought-card.selected {
    border: 2px solid #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.thought-card.is-task {
    border-left: 3px solid #27ae60;
    background: #f9f6e4;
}

/* Edit mode styles */
.thought-card.editing {
  border-right: 3px solid #9b59b6;
}

.edit-textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid #e8ecef;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
}

.edit-textarea:focus {
  outline: none;
  border-color: #9b59b6;
  box-shadow: 0 0 0 2px rgba(155, 89, 182, 0.1);
}

.edit-actions-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8ecef;
  flex-wrap: wrap;
  justify-content: center;
}

.edit-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.edit-btn-primary {
  background: #27ae60;
  color: white;
}

.edit-btn-primary:hover {
  background: #229954;
}

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

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

.edit-btn-warning {
  background: #f39c12;
  color: white;
}

.edit-btn-warning:hover {
  background: #e67e22;
}

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

.edit-btn-danger:hover {
  background: #c0392b;
}

.edit-btn-cancel {
  background: #95a5a6;
  color: white;
}

.edit-btn-cancel:hover {
  background: #7f8c8d;
}

/* Icon and text layout */
.edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

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

.btn-text {
  font-size: 13px;
}

/* Mobile: Show only icons */
@media (max-width: 768px) {
  .btn-text {
    display: none;
  }
  
  .edit-btn {
    min-width: 44px;  /* Touch-friendly size */
    padding: 12px;
  }
  
  .btn-icon {
    font-size: 20px;  /* Bigger icons for mobile */
  }
}

/* Card Main Content */
.card-main {
    display: flex;
    align-items: flex-start;
    flex: 1;
    gap: 10px;
    margin-bottom: 0px;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    font-size: 16px;
    border: 2px solid #27ae60;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
}

.task-checkbox:hover {
    background: #ecf9f2;
}

.task-checkbox.checked {
    background: #27ae60;
}

.thought-content {
    flex: 1;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.thought-content.completed {
    text-decoration: line-through;
    color: #95a5a6;
}

/* Card Header - Content + Selection Checkbox */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0px;
}

/* Card edit icon - top right */
.card-edit-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.edit-icon-btn {
  background: #c9e3f5;
  color: white;
  border: none;
  margin-left: 15px;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 7px;
  border-radius: 4px;
  opacity: 1;
  transition: background 0.2s;
  line-height: 1;
}

.edit-icon-btn:hover {
  background: #3498db;
}

/* Hide edit button when card is in editing mode */
.thought-card.editing .edit-icon-btn {
  display: none;
}

/* Top row: checkbox and info icon side by side */
.selection-top-row {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}

/* Show More link stays at bottom */
.selection-checkbox .show-more-link {
  margin-top: auto;
  font-size: 18px;
  white-space: nowrap;
}

.thought-selector {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #3498db;
}

/* Dimmed completed task with archive prompt */
.thought-card.completed-prompt {
  opacity: 0.5;
  position: relative;
  cursor: pointer;
  transition: opacity 0.3s;
}

.thought-card.completed-prompt:hover {
  opacity: 0.6;
}

/* Click to archive overlay */
.archive-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #3498db;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Markdown formatting within thought cards */
.thought-content h1 {
  font-size: 18px;
  font-weight: bold;
  margin: 8px 0 4px 0;
  color: #2c3e50;
}

.thought-content h2 {
  font-size: 16px;
  font-weight: bold;
  margin: 8px 0 4px 0;
  color: #2c3e50;
}

.thought-content h3 {
  font-size: 14px;
  text-decoration: underline;
  margin: 8px 0 4px 0;
  color: #2c3e50;
}

.thought-content strong {
  font-weight: bold;
}

.thought-content em {
  font-style: italic;
}

.thought-content p {
  margin: 4px 0;
}

.thought-content ul,
.thought-content ol {
  margin: 8px 0;
  padding-left: 28px;
  line-height: 1.5;
}

.thought-content li {
  margin-bottom: 4px;
}

/* Truncated state with fade */
.thought-content.truncated {
  max-height: 115px;
  overflow: hidden;
  position: relative;
}

/* Fade overlay as real element */
.fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  /* Taken out clickability
  cursor: pointer;
  pointer-events: auto; */
}

/* Show More button inside fade */
.show-more-btn-fade {
  position: absolute;
  right: 0px;
  bottom: 0px;
  background: white;
  color: #3498db;
  border: none;
  padding: 6px 14px 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.thought-card.is-task .show-more-btn-fade {
  background: #f9f6e4;
}

.show-more-btn-fade:hover {
  text-decoration: underline;
}

/* Task card fade overlay */
.thought-card.is-task .fade-overlay {
  background: linear-gradient(to bottom, rgba(255,252,240,0), #f9f6e4);
}

/* Expanded state */
.thought-content.expanded {
  max-height: none;
}

/* Show Less link at bottom of content */
.show-less-link {
  display: block;
  margin-top: 4px;
  margin-bottom: 2px;
  margin-right: 39px;
  color: #3498db;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  text-align: right;
}

.show-less-link:hover {
  text-decoration: underline;
}

/* ========================================
   HORIZONTAL QUICK CAPTURE
   ======================================== */

/* normal state */
.quick-capture-horizontal {
  position: sticky;
  top: 124px;
  z-index: 101;
  background: #2c3e50;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e8ecef;
  transition: all 0.2s ease;
}

/* Hidden state when scrolling down (only applies to compact mode) */
.quick-capture-horizontal.scrolled-down {
    transform: translateY(calc(-100% - 150px));
    transition: transform 0.6s ease;
}

/* Keep visible when expanded, even when scrolling */
.quick-capture-horizontal.expanded {
    transform: translateY(0) !important;
}

/* Default state - 1 row, no task options */
.capture-textarea-horizontal {
  min-height: 45px;  /* Start at 1 row */
  transition: all 0.3s ease;
}

/* Compact state when scrolled */
.quick-capture-horizontal.compact {
  padding: 16px;
}

.quick-capture-horizontal.compact .capture-textarea-horizontal {
  min-height: 40px;  /* 1 row */
}

.quick-capture-horizontal.compact .capture-actions {
  opacity: 0.7;
}

/* Expanded state (when focused or typing) */
.quick-capture-horizontal.expanded .capture-textarea-horizontal {
  min-height: 150px;  /* multiple rows */
}

.quick-capture-horizontal.expanded .capture-actions {
  opacity: 1;
}

/* Normal state - 5 rows */
.capture-textarea-horizontal {
  min-height: 120px;
  transition: all 0.3s ease;
}

.capture-form-horizontal {
    width: 100%;
}

.capture-input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.capture-textarea-horizontal {
    width: 100%;
    padding: 10px;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
}

.capture-textarea-horizontal:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* Actions on the right side */
.capture-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 160px;
    height: 100%;
    justify-content: space-between;
}

/* Task options group (checkbox + date) at top */
.task-options-group {
  display: none; /* hidden by default */
  flex-direction: column;
  gap: 8px;
}

/* Hide task options when compact */
.quick-capture-horizontal.compact .task-options-group {
  display: none;
}

/* Show task options when expanded */
.quick-capture-horizontal.expanded .task-options-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: 0.2s;
}

.task-checkbox-label:hover {
    background: #2980b9;
}

.task-checkbox-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#date_picker_wrapper {
  width: 100%;
}

/* Post button at bottom */
.btn-post-horizontal {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.0s ease;
    white-space: nowrap;
    min-height: 43px;
}

.btn-post-horizontal:hover {
    background: #2980b9;
    transform: translateY(0px); /* was -1px */
}

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

/* ========================================
   BULK ACTIONS PANEL - DROPDOWN VERSION
   ======================================== */

/* Bulk actions row at bottom of quick capture */
.bulk-actions-row {
  margin-top: 0px; /* 16, moved to divider */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 10px;
}

/* Select all inline layout */
.select-all-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dropdown Button */
.bulk-actions-dropdown {
  position: relative;
}

.bulk-dropdown-btn {
  background: none;
  background-color: transparent;
  color: #95a5a6; /* when disabled */
  border: none;
  padding: 0px;
  border-radius: 0px;
  font-size: 13px;
  font-weight: 400;
  cursor: not-allowed;
  transition: all 0.2s;
  white-space: nowrap;
}

.bulk-dropdown-btn:not(:disabled) {
  background: none;
  background-color: transparent;
  color: white; /* when enabled */
  cursor: pointer;
}

.bulk-dropdown-btn:not(:disabled):hover {
  background: none;
  background-color: transparent;
  color: #b6e2ff;
}

.bulk-dropdown-btn:hover {
  background: none;
  background-color: transparent;
  color: 95a5a6;
}

/* Dropdown Menu */
.bulk-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #e8ecef;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 1000;
}

.bulk-menu-item {
  width: 100%;
  background: none;
  border: none;
  padding: 8px 16px;
  text-align: left;
  font-size: 13px;
  color: #2c3e50;
  cursor: pointer;
  transition: 0.2s;
  display: block;
}

.bulk-menu-item:hover {
  background: #b6e2ff;
}

.bulk-menu-item.danger {
  color: #e74c3c;
}

.bulk-menu-item.danger:hover {
  background: #ffc0b9;
}

.bulk-menu-divider {
  height: 1px;
  background: #e8ecef;
  margin: 0px 0px 16px 0px;
}

/* ========================================
   EXPORT OPTIONS OVERLAY
   ======================================== */

.export-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: 1100;
}

.export-modal {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.export-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8ecef;
}

.export-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 20px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #95a5a6;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #f8f9fa;
  color: #2c3e50;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-option-btn {
  background: white;
  border: 2px solid #e8ecef;
  padding: 16px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.export-option-btn:hover {
  border-color: #3498db;
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.option-desc {
  font-size: 12px;
  color: #95a5a6;
  font-weight: normal;
}

#bulletPointsText {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2c3e50;
}

#bulletPointsText:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* AI Loading Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Sortable bullet points */
.sortable-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e8ecef;
  border-radius: 6px;
  cursor: move;
  transition: all 0.2s;
}

.sortable-item:hover {
  background: #f8f9fa;
  border-color: #3498db;
}

.drag-handle {
  color: #95a5a6;
  font-size: 16px;
  cursor: grab;
  user-select: none;
  line-height: 1.4;
}

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

.item-content {
  flex: 1;
  color: #2c3e50;
  line-height: 1.6;
  word-break: break-word;
}

.sortable-ghost {
  opacity: 0.4;
  background: #3498db;
}

/* Card Footer - Tags Left, Actions Right */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0px;
  margin-top: 10px;
  border-top: 0px solid #f0f0f0;
  font-size: 12px;
  color: #95a5a6;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* Tag Styles */
.tag {
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
}

.tag:hover {
    opacity: 0.7;
}

.tag.user {
    color: #3498db;
}

.tag.ai {
    color: #9b59b6;
}

.tag.project {
    color: #e67e22;
}

.tag.person {
    color: #16a085;
}

/* Timestamp & Due Date */
.timestamp {
    color: #95a5a6;
    font-size: 12px;
    white-space: nowrap;
}

.due-date {
    color: #7c730b;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.due-date.overdue {
    color: #e74c3c;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-self: flex-start; /* Pin to top */
  padding-top: 2px; /* Optional: slight adjustment */
}

.action-btn {
    color: #95a5a6;
    font-size: 18px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 24px;              /* Fixed height */
    line-height: 1;
}

.action-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

.about-container {
  /* Single wide column container */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.about-card {
  /* Base style for all about page cards */
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: justify;
  border: 1px solid #e8ecef;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.tech-grid {
  /* Grid layout for technology items */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.tech-category {
  /* Individual technology category cards */
    padding: 4px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-decoration: none;
    color: #2c3e50;
}

/* Journal Entry Styles */
.journal-entry {
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.journal-header {
  cursor: pointer;
  padding: 12px;
  padding-right: 50px; /* Space for the icon */
  background: #f8f9fa;
  border-radius: 8px;
  position: relative;
  transition: background 0.2s;
}

.journal-header:hover {
  background: #e9ecef;
}

.journal-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.journal-dates {
  margin: 0;
  color: #7f8c8d;
  font-size: 13px;
  line-height: 1.4;
}

.expand-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  transition: transform 0.3s;
}

.journal-entry.expanded .expand-icon {
  transform: translateY(-50%) rotate(180deg);
}

.journal-content {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: rgb(255, 254, 246);
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.expand-icon {
  transition: transform 0.2s;
}

.journal-entry.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Journal Markdown Styling */
.journal-markdown h1 {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin: 32px 0 16px 0; /* Big space above, normal below */
  line-height: 1.3;
}

.journal-markdown h1:first-child {
  margin-top: 0; /* No space if it's the first element */
}

.journal-markdown h2 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 28px 0 12px 0; /* Good space above, normal below */
  line-height: 1.3;
}

.journal-markdown h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 24px 0 10px 0; /* Medium space above */
  line-height: 1.3;
}

.journal-markdown h4 {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin: 20px 0 8px 0; /* Smaller space above */
  line-height: 1.3;
}

.journal-markdown p {
  color: #555;
  line-height: 1.6; /* More breathing room */
  margin: 0 0 16px 0; /* Good spacing between paragraphs */
}

.journal-markdown strong {
  font-weight: 600;
  color: #2c3e50;
}

.journal-markdown a {
  color: #3498db;
  text-decoration: none;
}

.journal-markdown a:hover {
  text-decoration: underline;
}

/* Lists - space above and below */
.journal-markdown ul, 
.journal-markdown ol {
  margin: 20px 0; /* Space above and below lists */
  padding-left: 28px;
  color: #555;
  line-height: 1.6;
}

.journal-markdown li {
  margin-bottom: 6px; /* Space between list items */
}

.journal-markdown li:last-child {
  margin-bottom: 0;
}

/* Inline code */
.journal-markdown code {
  background: #153350;
  padding: 3px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  color: #fff59e;
  font-size: 0.9em;
}

/* Code blocks - space above and below */
.journal-markdown pre {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  margin: 24px 0; /* Blank line above and below */
}

.journal-markdown pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Horizontal rules */
.journal-markdown hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0;
}

/* Blockquotes */
.journal-markdown blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  background: #f8f9fa;
  border-left: 4px solid #3498db;
  color: #2c3e50;
  font-style: italic;
}

.journal-markdown blockquote p {
  margin: 0;
}

/* Tables (if you use them) */
.journal-markdown table {
  margin: 20px 0;
  border-collapse: collapse;
  width: 100%;
}

.journal-markdown th,
.journal-markdown td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  text-align: left;
}

.journal-markdown th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

/* ========================================
   FORMS
   ======================================== */

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

.form-label {
    display: block;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 0.75rem;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 5px;
}

.btn-primary {
  background: #6366f1;
  color: white;
  text-align: center;
  height: 45px;
}

.btn-primary:hover {
  background: #4f46e5;
}

.btn-secondary {
    background: #3498db;
    color: white;
    text-align: center;
    height: 45px;
    vertical-align: middle;
}

.btn-secondary:hover {
    background: transparent;
    color: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: white;
    text-align: center;
    height: 50px;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    text-align: center;
    height: 45px;
}

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

.btn-outline {
    background: transparent;
    border: 2px solid #2c3e50;
    color: #2c3e50;
}

.btn-outline:hover {
    background: #2c3e50;
    color: white;
}

/* Show Selected Toggle Button */
.btn-show-selected {
  padding: 8px 16px;
  background: white;
  color: #2c3e50;
  border: 2px solid #e8ecef;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-show-selected:hover {
  background: #f8f9fa;
  border-color: #3498db;
}

.btn-show-selected.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.btn-show-selected:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   FLASH NOTIFICATION BANNER
   ======================================== */

.flash-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease, fadeOut 0.5s ease 5s forwards;
}

.flash-success {
    background: #27ae60;
    color: white;
}

.flash-error {
    background: #e74c3c;
    color: white;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* ========================================
   CUSTOM CONFIRM MODAL
   ======================================== */

.confirm-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: 1200;
  animation: fadeIn 0.2s ease;
}

.confirm-modal {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: scaleIn 0.2s ease;
}

.confirm-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}

.confirm-message {
  color: #2c3e50;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 24px;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
}

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

.confirm-btn-yes {
  background: #e74c3c;
  color: white;
}

.confirm-btn-yes:hover {
  background: #c0392b;
}

.confirm-btn-no {
  background: #95a5a6;
  color: white;
}

.confirm-btn-no:hover {
  background: #7f8c8d;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   CUSTOM BULK ACTION MODAL
   ======================================== */

.bulk-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  animation: fadeIn 0.2s ease;
}

.bulk-modal {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: scaleIn 0.2s ease;
}

.bulk-modal-header {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
}

.bulk-modal-message {
  color: #2c3e50;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.bulk-modal-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  margin-bottom: 20px;
  cursor: pointer;
}

.bulk-modal-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.bulk-modal-checkbox label {
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.bulk-modal-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.bulk-modal-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

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

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

.bulk-modal-btn-danger {
  background: #e74c3c;
  color: white;
}

.bulk-modal-btn-danger:hover {
  background: #c0392b;
}

.bulk-modal-btn-danger:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  opacity: 0.6;
}

.bulk-modal-btn-secondary {
  background: #95a5a6;
  color: white;
}

.bulk-modal-btn-secondary:hover {
  background: #7f8c8d;
}

/* iOS-style Toggle Switch (used for bulk actions - tasks) */
.task-toggle-container {
  padding: 10px 16px 5px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
}

.task-toggle-container:hover {
  background: #f8f9fa;
}

.task-toggle-label {
  font-size: 13px;
  color: #2c3e50;
  font-weight: 500;
}

.task-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #95a5a6;
  border-radius: 24px;
  transition: background 0.3s;
  cursor: pointer;
}

.task-toggle-switch.tasks {
  background: #3498db;
}

.task-toggle-switch.non-tasks {
  background: #ccc;
}

.task-toggle-switch.mixed {
  background: linear-gradient(90deg, #ccc 50%, #3498db 50%);
}

.task-toggle-slider {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.task-toggle-switch.tasks .task-toggle-slider {
  transform: translateX(20px);
}

.task-toggle-switch.non-tasks .task-toggle-slider {
  transform: translateX(0px);
}

.task-toggle-switch.mixed .task-toggle-slider {
  transform: translateX(10px);
}

.task-toggle-switch:hover {
  opacity: 0.9;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-muted {
    color: #95a5a6;
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .nav-section {
        display: none;
    }
}

/* Hide on tablet and mobile */
@media (max-width: 600px) {
  .card-footer {
    display: none !important;
  }
}

@media (max-width: 600px) {
    .header-content {
        padding: 0 12px;
    }
    
    .main-container {
        padding: 12px;
        gap: 16px;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .quick-capture {
        padding: 12px;
    }
    
    .thought-card {
        padding: 12px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header,
    .sidebar,
    .filter-bar,
    .card-actions {
        display: none;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .thought-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   FIX BUTTON STYLES (update css 2)
   ======================================== */

.card-actions form {
    display: inline;
    margin: 0;
}

.card-actions input[type="submit"],
.card-actions button[type="submit"] {
    color: #95a5a6;
    font-size: 12px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.card-actions input[type="submit"]:hover,
.card-actions button[type="submit"]:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

/* ============================================
   AUTH PAGES (Login, Sign Up, etc.)
   ============================================ */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem;
}

.auth-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 420px;
}

.auth-card h2 {
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
}

.auth-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
}

.date_form-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8rem;
  transition: all 0.2s;
  box-sizing: border-box;
}

.date_form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.date_form-input::placeholder {
  color: #9ca3af;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
  font-weight: normal;
}

/* Form Actions */
.form-actions {
  margin-top: 1.5rem;
}

/* Auth Links (Sign up / Forgot password / etc.) */
.auth-links {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.auth-links a {
  color: #6366f1;
  text-decoration: none;
  font-size: 0.875rem;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Help Text */
.help-text {
  display: inline;
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 0.25rem;
}

/* Error Messages */
#error_explanation {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

#error_explanation h2 {
  color: #dc2626;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

#error_explanation ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #991b1b;
  font-size: 0.875rem;
}

/* ============================================
   PROJECT STYLES
   ============================================ */

/* Project View Styles */
.project-view {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.project-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.project-header h1 {
  color: #6366f1;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.project-meta {
  color: #6b7280;
  font-size: 0.875rem;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #6366f1;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Bullet list styling */
.project-thoughts-list ul {
  list-style: none;
  padding: 0;
}

.project-thought-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  padding-left: 1.5rem;
}

/* Add bullet point */
.project-thought-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-size: 1.5rem;
  line-height: 1.5rem;
}

.project-thought-item:last-child {
  border-bottom: none;
}

.thought-content {
  margin-bottom: 0rem; /* 0.5, removed to get rid of bototm margin */
  color: #1f2937;
  line-height: 1.6;
}

.thought-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
}

.empty-state {
  text-align: center;
  color: #6b7280;
  padding: 3rem;
  font-style: italic;
}

/* ============================================
   ACCOUNT MANAGEMENT STYLES
   ============================================ */

/* Account Settings Page */
.account-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.account-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.account-card h2 {
  color: #6366f1;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.help-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.form-actions {
  margin-top: 2rem;
}

/* Danger Zone */
.account-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #fee2e2;
}

.account-footer h3 {
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.account-footer p {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Account Actions */
.account-actions {
  margin-top: 2rem;
  text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.btn-logout {
  width: 100%;
  padding: 0.75rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
}

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

.btn-accmgmt {
  width: 100%;
  padding: 0.55rem;
  background: #9256dc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.btn-accmgmt:hover {
  background: #833fd7;
}

/* ========================================
   AUDIT LOG / RESTORE STYLING
   ======================================== */

.version {
  border: 1px solid #e0e0e0;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 12px;
}

.btn-restore {
  background-color: #4A90E2;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-restore:hover {
  background-color: #357ABD;
}

/* ========================================
   ADMIN DASHBOARD
   ======================================== */

.admin-dashboard {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.admin-dashboard h1 {
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 28px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.metric-section {
  margin-bottom: 40px;
  padding: 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.metric-section h2 {
  margin: 0 0 15px 0;
  font-size: 20px;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.metric-section h3 {
  margin: 20px 0 10px 0;
  font-size: 16px;
  color: #7f8c8d;
}

.metric-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.metric-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
}

.metric-value {
  font-size: 32px;
  font-weight: bold;
  color: #3498db;
  line-height: 1;
}

.metric-label {
  font-size: 12px;
  color: #7f8c8d;
  margin-top: 5px;
}

.table-scroll {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 10px;
}

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

.data-table thead {
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th {
  padding: 10px;
  text-align: left;
  font-weight: 600;
  color: #7f8c8d;
  border-bottom: 2px solid #ddd;
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}

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

/* Text truncation */
.truncate {
  max-width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.data-table td.truncate {
  max-width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   SLIDE-OUT MENU PANEL
   ============================================ */

.slide-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: white;
  z-index: 1001;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
}

.slide-menu.active {
  right: 0;
}

.slide-menu-content {
  padding: 20px;
}

/* Menu header (title + close button) */
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8ecef;
}

.menu-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

/* Close button */
.menu-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #95a5a6;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.menu-close-btn:hover {
  color: #2c3e50;
}

/* Menu sections */
.menu-section {
  margin-bottom: 20px;
}

.menu-divider {
  height: 1px;
  background: #e8ecef;
  margin: 20px 0;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  color: #2c3e50;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  text-align: left;
}

.menu-item:hover {
  background: #e8ecef;
}

/* Top row with icons and logout */
.menu-top-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 16px;
}

/* Icon buttons (Account, Admin) */
.menu-icon-btn {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3498db;
  color: white;
  border-radius: 8px;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.menu-icon-btn:hover {
  background: #2980b9;
  transform: scale(1.05);
}

/* Logout button (takes remaining space) */
.menu-logout-btn {
  flex: 1;
  padding: 10px 16px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.menu-logout-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* Account item with label/value layout */
.menu-item .menu-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.menu-item .menu-value {
  display: block;
  font-size: 15px;
}

/* Menu spacer (creates visual separation) */
.menu-spacer {
  height: 16px;
  margin: 8px 0;
}

/* Menu count badge (for Archive count) */
.menu-count {
  background: #e8ecef;
  color: #7f8c8d;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.menu-item:hover .menu-count {
  background: #d5dbde;
}

.menu-account .menu-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Mobile-only section (hidden on desktop) */
.menu-mobile-only {
  display: none;
}

/* Search in menu (mobile only) */
.menu-search {
  margin-bottom: 00px;
}

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

.search-input-mobile {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

/* Filters in menu */
.menu-filter {
  margin-bottom: 20px;
}

.menu-filter-title {
  font-size: 11px;
  font-weight: 600;
  color: #7f8c8d;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* 2-column grid for filters */
.menu-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Individual filter items */
.menu-filter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #f8f9fa;
  border-radius: 6px;
  text-decoration: none;
  color: #2c3e50;
  font-size: 13px;
  transition: background 0.2s;
}

.menu-filter-item:hover {
  background: #e8ecef;
}

/* Filter name (left side) */
.menu-filter-item .filter-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  margin-right: 6px;
}

/* Filter count badge (right side) */
.menu-filter-item .filter-count {
  background: #e8ecef;
  color: #7f8c8d;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: auto;
}

/* Filter items in mobile menu - clickable */
.menu-filter-item.filter-item {
  cursor: pointer;
}

/* Active state (selected filter) */
.menu-filter-item.filter-item.active {
  background: #3498db;
  color: white;
  font-weight: 600;
}

.menu-filter-item.filter-item.active .filter-count {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* Hover states */
.menu-filter-item.filter-item:hover {
  background: #e8ecef;
}

.menu-filter-item.filter-item.active:hover {
  background: #2980b9;
}

/* Search in menu (mobile only) */
.menu-search {
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input-mobile {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.btn-clear-filters {
  padding: 10px 16px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-clear-filters:hover {
  background: #c0392b;
}

/* Menu overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.menu-overlay.active {
  display: block;
}

/* ============================================
   RESPONSIVE BEHAVIOR
   ============================================ */

/* Mobile (≤1024px): Show filters in menu, hide sidebar */
@media (max-width: 1024px) {
  .menu-mobile-only {
    display: block;
  }
  
  .sidebar {
    display: none !important;
  }
  
  .main-container {
    grid-template-columns: 1fr;
  }
}

/* Desktop (>1024px): Narrower menu, no filters */
@media (min-width: 1025px) {
  .slide-menu {
    width: 280px;
    right: -280px;
  }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
    
    .capture-actions {
        flex-direction: column;
        justify-content: space-between;
        min-width: auto;
    }
}

@media (max-width: 768px) {
  
  .capture-actions {
    width: 100%;  /* Full width on mobile */
    flex-direction: column; 
    justify-content: space-between;
  }
  
  .btn-post-horizontal {
    margin-top: 0;  /* Remove auto margin on mobile */
  }
}

@media (max-width: 600px) {
    .todo-content-wrapper {
        max-height: none; /* Allow wrapping on mobile */
    }
    
    .pill {
        min-width: 18px;
        height: 18px;
        font-size: 9px;
    }
}