* {
    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;
}

/* ========================================
   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: 100;
}

.header-content {
    max-width: 1400px;
    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 your header height */
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   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);
}

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

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

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

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

.select-all-label {
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  color: #2c3e50;
  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: 1px solid #e8ecef;
}

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

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

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

.task-checkbox {
    width: 26px;
    height: 26px;
    border: 2px solid #27ae60;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 11px;
    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: 10px;
}

/* Selection Checkbox (Top Right) */
.selection-checkbox {
  flex-shrink: 0;
  margin-left: 12px;
  padding-top: 2px;
}

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

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

.bulk-actions-panel {
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e8ecef;
}

.bulk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

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

.bulk-dropdown-btn:not(:disabled) {
  background: #3498db; /* Blue when enabled */
  cursor: pointer;
}

.bulk-dropdown-btn:not(:disabled):hover {
  background: #2980b9;
}

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

/* 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: 220px;
  z-index: 1000;
}

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

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

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

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

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


/* ========================================
   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: 1000;
}

.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;
}

/* Card Footer - Tags Left, Actions Right */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Changed from center to flex-start */
  padding-top: 10px;
  border-top: 1px solid #f0f3f5;
}

.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: 12px;
    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;
}

/* AI Processing Badge */
.ai-badge {
    font-size: 14px;
    padding: 0px;
    cursor: help;
    display: inline;
}

/* ========================================
   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: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #1a252f;
    transform: translateY(-1px);
}

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

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

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

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

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

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

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

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

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

.flash-banner {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    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);
    }
}

/* ========================================
   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;
    }
}

@media (max-width: 1044px) {
  .search-box {
    right: 20px;
  }
}

@media (max-width: 600px) {
    .header-content {
        padding: 0 12px;
    }
    
    .main-container {
        padding: 12px;
        gap: 16px;
    }
    
    .user-name {
        display: none;
    }
    
    .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;
}

.btn-primary {
  width: 100%;
  padding: 0.875rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-primary:active {
  transform: translateY(1px);
}

/* 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: 0.5rem;
  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;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* 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;
}

.btn-danger {
  padding: 0.5rem 1rem;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
}

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

/* 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;
}

/* ========================================
   TO-DO LIST SECTION (Sidebar)
   ======================================== */

.todo-section {
    background: #fffcec;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e8ecef;
}

.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.todo-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f5;
}

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

.todo-item.todo-empty {
    text-align: center;
    padding: 20px 0;
}

/* Task Main Line */
.todo-main {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Checkbox for tasks */
.todo-checkbox-form {
    display: inline;
    margin: 0;
}

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

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

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

/* Color code tags/projects within task content */
.todo-tags-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 24px; /* Align with content */
    margin-top: 0px;
    padding-top: 0px;
    border-top: 0px solid #f0f3f5;
}

.todo-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

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

/* normal state */
.quick-capture-horizontal {
  position: sticky;
  top: 124px;
  z-index: 101;
  background: white;
  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;
}

/* 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;
}

.capture-textarea-horizontal {
    width: 100%;
    padding: 10px;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    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;
}

/* Post button at bottom */
.btn-post-horizontal {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-top: auto;
}

.btn-post-horizontal:hover {
  background: #1a252f;
  transform: translateY(-1px);
}

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

/* 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: 13px;
    color: #2c3e50;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

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

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

.btn-post-horizontal {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-post-horizontal:hover {
    background: #1a252f;
    transform: translateY(-1px);
}

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

/* ========================================
   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;
}

/* ============================================
   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;
}

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

/* 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);
}

/* ============================================
   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;
}

/* Account button - blue like search button */
.menu-account {
  background: #3498db;
  color: white;
}

.menu-account:hover {
  background: #2980b9;
}

.menu-account .menu-label {
  color: rgba(255, 255, 255, 0.8);
}

.menu-account .menu-value {
  color: white;
}

/* 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;
}

/* Logout button styling */
.menu-logout {
  background: #fee;
  color: #c0392b;
}

.menu-logout:hover {
  background: #fdd;
}

/* 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: 20px;
}

.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;
}

.search-btn-mobile {
  padding: 10px 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

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

/* 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-input-group {
        grid-template-columns: 1fr;
    }
    
    .capture-actions {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }
}

@media (max-width: 768px) {
  .capture-input-group {
    grid-template-columns: 1fr;  /* Stack vertically on mobile */
  }
  
  .capture-actions {
    width: 100%;  /* Full width on mobile */
    flex-direction: row;  /* Horizontal layout */
    justify-content: space-between;
    height: auto;
  }
  
  .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;
    }
}