/* The page */ 

body {
  font-family: 'Inter', sans-serif;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers both profile bar and container */
  padding: 40px 0;
  gap: 12px; /* small vertical gap between profile bar and ToDo box */
}


  .container {
    background: white;
    padding: 20px;
    border-radius: 16px;
    width: 350px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 5%;
  }

  /* 📱 Slight shrink on mobile */
@media (max-width: 480px) {
  .container {
    width: 310px;  /* just 5px smaller */
    padding: 16px; /* optional: slightly tighter padding */
  }
}

/* 🌟 Global Lucide Icon Size */
[data-lucide] {
  width: 18px;     /* default size for all icons */
  height: 18px;
  stroke-width: 1.8; /* makes them look lighter and cleaner */
  vertical-align: middle;
}

/* 📱 Optional: Make them smaller on mobile */
@media (max-width: 480px) {
  [data-lucide] {
    width: 16px;
    height: 16px;
    stroke-width: 1.6;
  }
}


/* Tile and Toggle*/

h1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.8em;
  font-weight: 600;
  color: #000000;
  margin: 0;
}

.title-link {
  color: inherit;           /* keep same color as h1 */
  text-decoration: none;    /* remove underline */
  display: inline-block;    /* makes it clickable nicely */
  cursor: pointer;          /* show pointer on hover */
}

.title-link:hover {
  text-decoration: none;    /* optional: prevent hover underline */
}


/* Header with inline toggle */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-btn {
  font-size: 1.2rem;
  font-style: italic;
  color: #000000;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  margin: 0;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

/* Hide actual symbol text */
.calendar-btn::before {
  content: "\2691"; /* ⚐ (&#9872;) */
  display: inline-block;
  transition: all 0.25s ease;
}

/* Change to ⚑ (&#9873;) on hover */
.calendar-btn:hover::before {
  content: "\2690"; /* ⚑ (&#9873;) */
  color: #444;
  transform: scale(1.15) rotate(5deg);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}




 /* Mini toggle switch styling */

.mini-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

 
.toggle-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #616161;
  font-weight: 500;
}

 

.mini-slider {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
  background-color: #dfdfdf;
  border-radius: 9px;
  transition: .3s;
  border: 1.5px solid #dfdfdf;
}

 .mini-slider:before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 1px;
  background-color: white;
  border-radius: 50%;
  transition: .3s;
  border: 1px solid #dfdfdf;
}

 
#actionsToggle {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

#actionsToggle:checked + .mini-slider {
  background-color: #000000;
  border-color: #ffffff;
  border: 1.5px solid #000000;
}


#actionsToggle:checked + .mini-slider:before {
  transform: translateX(16px);
  border-color: #000000;
}

  .input-group {
    display: flex;
    width: 100%;
    max-width: 400px;
    height: 3em;  
    margin-bottom: 1.5rem;
  }

 
  .input-group input::placeholder {
    color: #9e9e9e;
    opacity: 1;
    font-size: 0.9rem;
  }

  /* When input is focused (clicked), hide placeholder */
  .input-group input:focus::placeholder {
    color: transparent;
  }

  /* Hover effect only when input is disabled */
  .input-group input[disabled]:hover::placeholder {
    color: #c6c6c6; /* darken on hover */
    cursor: not-allowed;
  } 

  .input-group input {
    flex: 1;
    padding: 0.75em 1em; /* More padding */
    border: 2px solid #dfdfdf; /* Exact border from image */
    box-shadow: none; /* Removed shadow as it's not in the image */
    border-right: none; /* Remove right border so button connects seamlessly */
    border-radius: 8px 0 0 8px; /* Round only the left side */
    outline: none;
    font-size: 0.9rem;
    color: #212121;
    background: white;
    font-family: 'Inter', sans-serif;
  }

 

  .input-group button {
    padding: 0 1em;
    border: 2px solid #dfdfdf; /* Exact border from image */
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border-radius: 0 4px 4px 0; /* Subtler rounding to match input */
    cursor: pointer;
    outline: none;
    font-size: 1rem;
    font-weight: 600; /* Slightly bolder text */
    transition: background 0.2s ease; /* Added hover effect */
  }

  .input-group button:hover {
    background: #000000; /* Slightly darker on hover */
    color: white;
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0 0; /* Added top margin to match image spacing */
    font-family: 'Inter', sans-serif; /* Ensure font matches */
    font-size: 1rem;
  }

  li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }

  .left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .icons {
    display: flex;
    gap: 15px;
    cursor: pointer;
  }
 
  /* Custom Checkbox Styling */

  input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #dfdfdf; /* Matching the border color from your image */
  border-radius: 50%; /* Slightly rounded corners */
  outline: none;
  cursor: pointer;
  position: relative;
  vertical-align: top;  /* Change from middle to top */
  margin-right: 8px;
  flex-shrink: 0; /* if using flexbox */
}

 
input[type="checkbox"]:checked {
  background-color: #ffffff; /* Light gray background when checked */
  border-color: white;
}

 input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #424242; /* Dark gray checkmark */
  font-size: 1rem;
  font-weight: bold;
}

 

/* Task List Styling */

.task-category {
    font-size: 0.8em;
    color: #666;
    margin-left: 8px;
    font-style: italic;
    display: inline-block;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #333;
    font-weight: 500;    
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

 

.task-content {
  display: flex;
  align-items: center;
}
 

.task-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #212121;
  display: flex;
  flex-direction: column;  /* 👈 ensures category goes below text */
  gap: 4px;
}
 

.action-icons {
  display: none; /* Hidden by default */
  gap: 12px;
}

 
.show-actions .action-icons {
  display: flex; /* Shown when actions are visible */
}

.edit-btn, .delete-btn {
  width: 1rem;
  height:  1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.edit-btn:hover, .delete-btn:hover {
  transform: translateY(-2px);
  color: #666;
}




.move-btn{
  cursor: pointer;
  transition: transform 0.2s;
   user-select: none;
}

.move-btn:hover {
  transform: translateY(-2px);
  color: #9e9e9e;
}

.move-btn:active {
  transform: translateY(1px);
}

.strikethrough {
  text-decoration: line-through;
  color: #9e9e9e;
  cursor: pointer;
} 
.completed .task-meta-line {
  display: none;
}

.left span {
  cursor: pointer;
}

.left input[type="checkbox"] {
  cursor: pointer;
}

footer{
  text-align: center;
  padding: 12px 0 0; /* Top padding only (12px top, 0 bottom) */
  color: #757575;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 20px; /* Space above footer */
  padding: 0; /* Remove all padding */
  border-top: none; /* Remove border if desired */
  margin-top: 10px; /* Minimal space */
}


/* Filters and pop up */
.filters {
  margin: 20px 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-label {
  font-weight: 500;
  margin-right: 10px;
  font-size: 14px;
  color: #333;
  vertical-align: middle;
}

#addCategoryBtn{
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* Active Category */
#addCategoryBtn.active {
  background-color: #3a86ff;
  color: white;
  border-color: #3a86ff;
}

#addCategoryBtn:hover {
  border-color: #ffffff;
  color: #ffffff;
  background-color: #000000;
}


.category-edit-btn {
  position: absolute;
  top: -6px;
  right: -5px;
  background: #000;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.category-wrapper:hover .category-edit-btn {
  opacity: 1;
}





/* Modal Container */
.modal {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  background: white;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  z-index: 1000;
  width: 320px;
  border: none;
}

.modal h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  min-width: 300px;
}

.time-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.time-select select {
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  cursor: pointer;
}


/* 🔁 Repeat Dropdown (matches time selects) */
.repeat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}

.repeat-row label {
  font-size: 0.8rem;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
}

#repeatSelect {
  flex: 1;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  cursor: pointer;
  background: #fafafa;           /* Same background as time dropdowns */
  appearance: none;              /* Remove browser arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23666' stroke-width='2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  padding-right: 24px;           /* Space for custom arrow */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#repeatSelect:hover {
  border-color: #ccc;
  background-color: #f2f2f2;
}

#repeatSelect:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* 🕒 Hourly Input Wrapper (for "Repeat every X hours") */
.hourly-input-wrapper {
  display: none; /* hidden by default */
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

/* Match the font, spacing, and colors of other labels */
.hourly-input-wrapper label {
  font-size: 0.8rem;
  color: #555;
  font-weight: 500;
}

/* Inline input + text ("1 hour(s)") */
.hourly-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Input styling same as time/repeat selects */
.hourly-input-row input {
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  width: 70px;
  background: #fafafa;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hourly-input-row input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* “hour(s)” label */
.hourly-input-row span {
  font-size: 0.8rem;
  color: #555;
}

/* When visible (when user selects “Hourly”) */
.hourly-input-wrapper.show {
  display: flex;
}


/* Line under task for date + category */
.task-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #666;
}

.task-due-date {
  color: #666;
  font-size: 0.8rem;
}

.category-inline {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
  background: #f1f1f1;
}

.task-meta-line > span {
  display: inline-flex;
  align-items: center;
}


/* Input Field */
#newCategoryName {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 16px;
  font-size: 14px;
  box-sizing: border-box;
}

#newCategoryName:focus {
  outline: none;
  border-color: #e0e0e0;
}

/* Color Options */
.color-options {
  display: flex;
  flex-wrap: wrap; /* This makes items wrap to next line */
  gap: 12px;
  margin: 0 0 24px 0;
}

.color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s;
}

.color {
  transition: transform 0.2s, border 0.2s;
}

.color:hover,
.color.selected {
  transform: scale(1.1);
}

.color.selected {
  border: 2px solid #a3a3a3;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.modal-actions button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

#cancelCategory {
  background: white;
  border: 1px solid #ddd;
  color: #666;
}

#cancelCategory:hover {
  background: #f5f5f5;
}

#saveCategory {
  background: #000000;
  border: 1px solid #ffffff;
  color: white;
}

#saveCategory:hover {
  background: #000000;
}

#newSectionName {
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background-color: white;
  color: #333;
  box-sizing: border-box;
}

#newSectionName:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #f5f5f5;
}

#newSectionName.active {
  background-color: #000000;
  border: 2px solid #000000; /* Thicker border when active */
}

#newSectionName.active:hover {
  background-color: #333;
}


.category-wrapper {
    position: relative;
    display: inline-block;
}

.category-close-btn {
    position: absolute;
    top: -6px;
    right: -5px;
    background: #000000;
    color: rgb(255, 255, 255);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s;
}

.category-wrapper:hover .category-close-btn {
    opacity: 1;
}

button[contenteditable="true"] {
    outline: 2px dashed rgba(0,0,0,0.2);
    padding-right: 20px; /* Make space for close button */
}


.overdue-section-header,
.today-section-header,
.upcoming-section-header,
.completed-section-header,
 .unplanned-section-header{
  background: transparent;
  color: #444;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 10px;
  margin: 60px 0 16px 0;
  border-radius: 10px;
  width: 100%;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}


.overdue-section-header i,
.upcoming-section-header i,
.completed-section-header i{
  font-size: 1rem;
  opacity: 0.9;
}

.overdue-section-header {
  color: #dc2626; /* red tone for overdue */
}

.upcoming-section-header {
  color: #2563eb; /* blue tone for upcoming */
}

.unplanned-section-header {
   color: #ea580c; /* warm orange */
}

.completed-section-header {
  color: #16a34a; /* green tone for completed */
}

.today-section-header {
  color: #eab308; /* amber tone for today */
}

.today-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
  color: #f59e0b; /* warm yellow-orange icon */
}

.unplanned-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
  color: #f97316; /* brighter orange for icon */
}

.today-date-label {
  font-weight: 500;
  color: #666;
  margin-left: 6px;
  font-size: 0.8rem;
  text-transform: none; /* keep date readable (Thu, Oct 26) */
}

.overdue-section-header::after,
.today-section-header::after,
.upcoming-section-header::after,
.completed-section-header::after,
.unplanned-section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
  margin-left: 10px;
  opacity: 0.7;
}


.completed-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
  color: #4caf50;  /* green ✅ */
}

.checkbox-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkbox-icon {
  width: 22px;
  height: 22px;
  color: #777;   
  transition: color .2s ease, transform .2s ease;
}
.checkbox-btn:hover .checkbox-icon { color: #444;}
.completed .checkbox-icon { color: color: #666; }


.edit-input {
  font: inherit;
  padding: 2px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  width: 100%;
  max-width: 220px;
  outline: none;
}
.edit-input:focus {
  border-color: #000;
}

.task-label[contenteditable="true"]:focus {
  background: none;
  border-radius: 4px;
  padding: 2px 4px;
  outline: none;
  color: #777;
}
.task-label {
  cursor: default;
}
.task-label[contenteditable="true"] {
  cursor: text;
}

/* ✨ DateTime Modal - Compact Two Column */
.modal-datetime {
  position: fixed;
  top: 50%;
  left: 50%;
  background: white;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  z-index: 2000;
  width: 350px;
  max-width: 90%;
  transform: translate(-50%, -50%) scale(0.95); /* initial scale */
  opacity: 0;                                    /* initial opacity */
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none; /* Prevent accidental clicks when hidden */
}

.modal-datetime.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}




.modal-datetime.hidden {
  display: none;
}

.modal-datetime-content {
  display: flex;
  flex-direction: column;
  gap: 12px;                   /* tighter vertical spacing */
}

.modal-datetime-header h3 {
  font-size: 1rem;
}

/* 📝 Header */
.modal-datetime-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-datetime-header i {
  width: 20px;
  height: 20px;
}

#dateTimeTaskInfo {
  font-size: 0.85rem;
  margin: 0;
  padding :0;
}

/* 📅 Two-column layout */
.date-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* Date on left, Time+Selected on right */
  gap: 14px;
  align-items: start;
}

.modal-section h4 {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.modal-section h4 i {
  width: 16px;
  height: 16px;
}

/* 🗓 Calendar section */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.space {
  padding-bottom: 14px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.calendar-day {
  text-align: center;
  padding: 5px 0;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.calendar-day:hover {
  background: #f2f2f2;
}

.calendar-day.selected-date {
  background-color: #000000;
  color: #fff;
  font-weight: bold;
  transition: 0.2s ease;
}

.calendar-day:hover {
  background-color: #444;
  cursor: pointer;
  color: #000;
}

/* 🔆 Highlight today's date */
.calendar-day.today-date {
  color: red;
}
/* 🕑 Time select */
.time-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.time-select select {
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  cursor: pointer;
}

/* 📝 Summary */
.summary {
  background: #f9f9f9;
  padding: 8px;
  border-radius: 8px;
  margin-top: 4px;
}
/* 🕑 Horizontal time selector */
.time-select-inline {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.time-select-inline select {
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  background: #fafafa;
  flex: 1;
}

/* ℹ️ Selected info aligned under time */
.summary-inline {
  background: #f8fafc;
  padding: 8px;
  border-radius: 8px;
  margin-top: 10px;
}

.summary-inline h4 {
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.selected-datetime {
  font-size: 0.8rem;
  font-weight: 500;
  color: #444;
}


#cancelDateTime {
  background: white;
  border: 1px solid #ddd;
  color: #666;
}

#cancelDateTime:hover {
  background: #f5f5f5;
}

#saveDateTime {
  background: #000;
  border: 1px solid #000;
  color: white;
}

#saveDateTime:hover {
  background: #333;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.calendar-weekdays span {
  padding: 4px 0;
}

.popup.show {
  top: 20px;
  opacity: 1;
}

.popup-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

#popupIcon {
  font-size: 1.4rem;
}

.popup-text p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

.popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.popup-actions button {
  background: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: #000;
  transition: background 0.2s ease;
}

.popup-actions button:hover {
  background: #f5f5f5;
}

.hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}


/* ✨ Universal LeetCode-Style Popup (White Theme) */
.popup {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #000000;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s ease;
  opacity: 0;
  z-index: 9999;
  min-width: 240px;
  font-family: 'Inter', sans-serif;
}

.popup.show {
  top: 20px;
  opacity: 1;
  animation: bounceIn 0.3s ease;
}

@keyframes bounceIn {
  0% { transform: translate(-50%, -10px); opacity: 0; }
  60% { transform: translate(-50%, 4px); opacity: 1; }
  100% { transform: translate(-50%, 0); }
}

.popup-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

#popupIcon {
  width: 20px;
  height: 20px;
  color: #000;
}

.popup-text p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #000;
}

.popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.popup-actions button {
  background: #000;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease;
}

.popup-actions button:hover {
  background: #333;
}

.popup.hidden,
.popup-actions.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}


@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.input-error {
  animation: shake 0.3s ease;
}


.current-category-label {
  font-size: 0.65rem;
  color: #777;
  text-align: center;
  letter-spacing: 0.3px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}



/* 🧹 Reset link style */
.reset-datetime-link {
  font-size: 0.8rem;
  color: #555;
  text-decoration: underline;
  cursor: pointer;
  margin-right: auto;
  align-self: center;
  transition: color 0.2s ease;
}

.reset-datetime-link:hover {
  color: #000;
}


.button-group {
  display: flex;
  gap: 10px;
}

/* 🌙 AUTH SECTION - Clean Minimal Aesthetic */
.auth-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

/* 🧩 LOGIN CARD */
.login-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 2rem 2.2rem;
  text-align: center;
  width: min(90vw, 340px);  /* ✅ fluid width */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 0 auto; /* ✅ centers it safely */
}

.login-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top left, #f4f3ff 0%, transparent 60%);
  opacity: 0.7;
  z-index: 0;
}

.login-card * {
  position: relative;
  z-index: 1;
}

.login-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* 🌟 Heading + Subtitle */
.login-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.login-sub {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
}

/* 💌 Input wrapper */
.login-input-wrapper {
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.login-input-wrapper:hover {
  border-color: #c6c6ff;
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.15);
}

.login-input-wrapper:focus-within {
  border-color: #6c63ff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* 📨 Left icon */
.login-icon {
  color: #888;
  margin-left: 14px;
  width: 18px;
  height: 18px;
  transition: color 0.2s ease;
}

.login-input-wrapper:focus-within .login-icon {
  color: #6c63ff;
}

/* 🔤 Email field */
.login-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: #222;
}

.login-input-wrapper input::placeholder {
  color: #aaa;
  font-weight: 400;
}

/* ✈️ Primary login button */
.login-action-btn {
  background: linear-gradient(135deg, #d9d4ff, #b8e1ff);
  color: #2a2a2a;
  border: none;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(185, 209, 255, 0.4);
}

.login-action-btn:hover {
  background: linear-gradient(135deg, #cfcaff, #a6dcff);
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(168, 197, 255, 0.45);
}


.login-action-btn i {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

@media (max-width: 400px) {
  .login-card {
    width: 90%;
    padding: 1.6rem 1.4rem;
  }

  .login-input-wrapper input {
    font-size: 0.9rem;
    padding: 0.6rem 0.7rem;
  }

  .login-action-btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
  }

/* Base style (already exists for enableNotifBtn) */
.notif-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}
  .auth-wrapper {
    padding: 0 10px; /* prevent horizontal clipping */
  }
}



/* Hover for normal button */
.notif-action-btn:hover {
  background: #f5f5f5;
}

.notif-action-btn i {
  width: 18px;
  height: 18px;
  color: #555;
  stroke-width: 1.8;
}


.hidden {
  display: none !important;
}

/* 🌟 Refined Profile Bar (Perfectly Aligned & Minimal) */
.profile-bar {
  width: 350px; /* same as .container */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: transparent; /* stays outside white box */
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  position: relative;
}

/* 🪶 Mobile responsive */
@media (max-width: 480px) {
  .profile-bar {
    width: 310px; /* match container width */
    padding: 6px 8px;
  }
}

/* 👋 Left side (Greeting + Username) */
/* 👋 Greeting icon, text, and username aligned */
.profile-left {
  display: flex;
  align-items: center;     /* ✅ vertically center everything */
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.greeting-icon {
  width: 20px;
  height: 20px;
  color: #666;
  stroke-width: 1.8;
  transition: transform 0.25s ease, color 0.25s ease;
  vertical-align: middle;
}

.greeting-icon:hover {
  transform: scale(1.15);
  color: #000;
}

#greetingText {
  font-size: 0.9rem;       /* ✅ matches icon height visually */
  color: #666;             /* same tone as icon */
  font-weight: 500;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  cursor: default;
}

#greetingText:hover {
  color: #000;             /* same hover effect as icon */
}

#usernameDisplay {
  font-size: 0.9rem;
  color: #000;
  font-weight: 600;
  padding-left: 4px;
  vertical-align: middle;
}



#greetingIcon {
  position: relative;
  cursor: pointer;
}

#greetingIcon::after {
  content: attr(title);
  position: absolute;
  bottom: 125%; 
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#greetingIcon:hover::after {
  opacity: 1;
}


#usernameDisplay {
  font-size: 0.9rem;
  color: #000000;
  font-weight: 600;
  padding-bottom: 5px;
  padding-left: 8px;
}

#usernameEdit {
  font-size: 0.8rem;
  color: #000;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
  background: transparent;
  padding: 1px 4px;
  width: 120px;          /* 🪄 Increased width */
  transition: width 0.2s ease;
}

/* ✏️ Right side (Edit + Logout buttons) */
.profile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #444;
  cursor: pointer;
  font: inherit;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
  transform: translateY(-1px);
}

/* Make icons subtle + text small */
.icon-btn i[data-lucide] {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
  vertical-align: middle;
}

.icon-btn span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #444;
}

/* Optional subtle divider between left and right */
.profile-bar::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e5e5;
  opacity: 0.6;
}



/* Place bar above the To-Do container */
.auth-wrapper + .container {
  margin-top: 0;
}

/* Wrapper layout — stack buttons vertically */
.notif-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

/* Base button style */
.notif-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 220px; /* ✅ makes both same width */
  box-sizing: border-box;
}

/* Hover */
.notif-action-btn:hover {
  background: #f5f5f5;
}


/* Move footer slightly down */
footer.footer {
  margin-top: 20px;
}

/* 🌙 Fullscreen Loader */
#appLoader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#appLoader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ✨ Spinner Animation */
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #e0e0e0;
  border-top: 5px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
  color: #ffffff; /* match your app accent */
  animation: rotateIcon 1.5s linear infinite;
}


@keyframes rotateIcon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  margin-top: 16px;
  font-size: 1rem;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.info-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #444;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 40px 20px;
  margin: 40px auto;
  width: 90%;
  max-width: 400px;
  text-align: center;
  font-family: "Inter", sans-serif;
  transition: opacity 0.4s ease;
}

.info-icon {
  width: 48px;
  height: 48px;
  color: #6b5bff;
  margin-bottom: 10px;
}

.info-message.hidden {
  display: none;
}

.info-sub {
  font-size: 0.9rem;
  color: #666;
  margin-top: 6px;
}

#appLoader {
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.auth-toggle {
  display: inline-flex;
  background: #f4f4f4;
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0 15px;
  border: 1px solid #e0e0e0;
}

.auth-tab {
  padding: 6px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: #666;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: white;
  color: #111;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 6px;
}

.auth-tab:not(.active):hover {
  background: #eaeaea;
}

/* 🔹 Delete Account – only text/icon red */
.delete-account-btn {
  color: #e74c3c;
  border-color: #ddd; /* same as enable button */
}

.delete-account-btn:hover {
  background: #fff5f5;
}

/* 📱 Optional: responsive full width on mobile */
@media (max-width: 480px) {
  .notif-action-btn {
    width: 90%; /* fills most of screen */
  }
}

.arrow-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.arrow-toggle-btn i {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

/* Rotate arrow when menu is open */
.arrow-toggle-btn.open i {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: 40px;  /* adjusts below the toggle button */
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  z-index: 1000;
}

.profile-dropdown.hidden {
  display: none;
}

.profile-dropdown .menu-item {
  background: none;
  border: none;
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.profile-dropdown .menu-item:hover {
  background: #f5f5f5;
}

.profile-dropdown .menu-item i {
  width: 18px;
  height: 18px;
}

.profile-dropdown .menu-item.danger {
  color: #dc2626;
}

.profile-dropdown .menu-item.danger:hover {
  background: #fee2e2;
}

/*PS code  for Calendar View*/
#viewToggleContainer {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.8rem 0;
}

#viewToggleContainer button {
  border: none;
  background: #f2f2f2;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

#viewToggleContainer button.active {
  background: #333;
  color: white;
}

.calendar-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 65px;
}

.calendar-weekdays {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.calendar-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
  padding: 0 1rem;
}

.day-col {
  background: #fafafa;
  border-radius: 8px;
  padding: 0.5rem;
  min-height: 120px;
}

.day-col.today {
  border: 2px solid #2563eb;
}

.day-label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.calendar-task {
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  color: #000;
  font-size: 0.75rem;
  margin: 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.undated-section,
.completed-section {
  margin-top: 1rem;
  padding: 0 1rem;
}

.undated-section h4,
.completed-section h4 {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #444;
}


.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937; /* soft dark gray for clarity */
  padding: 4px 0;
  margin-bottom: 6px;
}

.week-range {
  color: #6b7280; /* balanced neutral gray */
  font-weight: 500;
}

.calendar-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-day-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}

.calendar-day-label {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;     /* center horizontally */
  justify-content: center; /* center vertically */
  text-transform: uppercase;
  font-weight: 600;
  gap: 2px;
  padding: 4px 0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.day-num {
  font-size: 1.1rem;       /* give date more visual weight */
  font-weight: 700;
  color: #111;
  line-height: 1.1;
}

.day-name {
  font-size: 0.7rem;       /* smaller, subtle text */
  color: #888;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Optional: subtle hover/active feedback for better UX */
.calendar-day-label:hover {
  background: #f5f5f5;
  transform: scale(1.03);
}


.calendar-day-tasks {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-task-inline {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  font-size: 0.85rem;
  color: #333;
  line-height: 1.4;
  position: relative;
  padding: 3px 0;
}

/* Time first — aligned neatly */
.task-time {
  font-size: 0.8rem;
  color: #777;
  width: 60px;          /* fixed width keeps tasks aligned vertically */
  text-align: right;
  flex-shrink: 0;
}

/* Task dot between time and text */
.task-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  margin-left: 6px;

  /* 💡 3D effect */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),   /* bottom shadow */
    inset 0 1px 1px rgba(255, 255, 255, 0.6); /* inner light for top shine */
}


/* Task text after dot */
.task-text {
  flex: 1;
  word-break: break-word;
  white-space: normal;
  font-weight: 400;
  color: #222;
  font-size: 0.9rem;
}


.calendar-divider {
  height: 1px;
  background: #eee;
  margin: 6px 0;
  opacity: 0.7;
}

.no-tasks {
  font-size: 0.8rem;
  color: #aaa;
  font-style: italic;
  padding-left: 3px
}

.today-text {
  color: #f59e0b; /* Amber highlight for today */
}

.view-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 6px;
  width: fit-content;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Segmented group container */
.toggle-segment {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  width: 260px; /* adjust this for your layout */
  background: transparent;
}

/* Each option button */
.toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Active (selected) button */
.toggle-option.active {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

/* Lucide icon size and color */
.toggle-option i {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
  color: inherit;
  transition: color 0.25s ease;
}

/* Hover for inactive button */
.toggle-option:not(.active):hover {
  background: rgba(255, 255, 255, 0.4);
  color: #222;
}



.calendar-week-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* very tight spacing */
  margin-top: 4px;
}

.calendar-week-nav .week-range {
  font-size: 0.75rem;
  color: #333;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}

.calendar-week-nav .calendar-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease;
}

.calendar-week-nav .calendar-nav-btn:hover i {
  transform: scale(1.15);
  color: #000;
}

.calendar-week-nav .calendar-nav-btn i {
  width: 16px;
  height: 16px;
  color: #555;
  stroke-width: 2;
  transition: color 0.15s ease;
}

