/* Sidebar base styles */
.Sidebar {
    width: 70px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #1E1B3A; /* light retro beige */
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    border-right: 2px solid #e2cfa5; /* retro divider line */
}

.Sidebar nav ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 20px 0 0 0;
    list-style: none;
    width: 100%;
}

.Sidebar nav ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    color: white;
    padding: 18px 0;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.Sidebar nav ul li:hover {
    background: #6c63ff;
}

.Sidebar nav ul li i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: #00ffb3;
}

/* Hide sidebar on tablet/desktop */
@media (min-width: 769px) {
    .Sidebar {
        display: none;
    }
}

@media (max-width: 400px) {
    .Sidebar {
        width: 54px;
    }
    .Sidebar nav ul {
        padding-top: 10vh; 
        gap: 3rem;         
    }
    .Sidebar nav ul li {
        font-size: 0.7rem;
        padding: 0;        /* Remove extra padding, use gap instead */
    }
    .Sidebar nav ul li i {
        font-size: 1rem;
    }
     #todo-form {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 4px;
    }
    #todo-form input[type="text"] {
        flex: unset;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    #todo-form input[type="date"],
    #todo-form input[type="time"],
    #todo-form select,
    #todo-form button[type="submit"] {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

/* Main content area (empty for now, but reserves space) */
body {
    margin: 0;
    padding: 0;
}

.main-content {
    margin-left: 70px;
    padding: 20px;
}

@media (max-width: 400px) {
    .main-content {
        margin-left: 54px;
    }
}

/* Responsive adjustments for Mobile M (401px - 768px) */
@media (min-width: 401px) and (max-width: 768px) {
    .Sidebar {
        width: 60px;
    }
    .main-content {
        margin-left: 60px;
        padding: 14px;
    }
    .Sidebar nav ul {
        padding-top: 7vh;
        gap: 2.2rem;
    }
    .Sidebar nav ul li {
        font-size: 0.8rem;
        padding: 10px 0;
    }
    .Sidebar nav ul li i {
        font-size: 1.1rem;
    }
    #todo-form {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 6px;
    }
    #todo-form input[type="text"],
    #todo-form input[type="date"],
    #todo-form input[type="time"],
    #todo-form select,
    #todo-form button[type="submit"] {
        width: 98%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        font-size: 0.98em;
    }
    #todo-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 10px;
        font-size: 0.98em;
    }
}

/* To-Do styles */
/* Vibrant Retro To-Do Section Styles */
/* Retro Vibrant To-Do Section Styles */
.main-content h2 {
    color: #ff5e5b;
    font-family: 'Montserrat', 'Arial', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 18px;
    text-shadow: 1px 2px 0 #ffe066, 0 2px 8px #ffb34744;
}
.main-content p{
    color : white;
}



/* Match To-Do section retro colors with the sidebar */

#todo-form {
    background: #1a1a2e;
    border: 2px solid #6c63ff;
    box-shadow: 0 2px 18px 0 #6c63ff55;
}

#todo-form input[type="text"] {
    border: 2px solid #00ffb3;
    background: #0d0d1a;
    color: #e0e0e0;
}
#todo-form input[type="text"]:focus {
    border-color: #6c63ff;
    box-shadow : 0 0 8px #6c63ff88;
}

#todo-form input[type="date"],
#todo-form input[type="time"] {
    border: 2px solid #00ffb3;
    background: #0d0d1a;
    color: #e0e0e0;
}
#todo-form input[type="date"]:focus,
#todo-form input[type="time"]:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 8px #6c63ff88;
}

#todo-form select {
    border: 2px solid #00ffb3;
    background: #0d0d1a;
    color: #e0e0e0;
}
#todo-form select:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 8px #6c63ff88;
}

#todo-form button[type="submit"] {
    background: #00ffb3;
    color: #0d0d1a;
    border: none;
    border-radius: 7px;
    padding: 10px 0;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 #e2cfa544;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 1px;
}
#todo-form button[type="submit"]:hover {
    background: #ffd93d;
    color: #fffbe9;
    box-shadow: #ffd93d88;
}

#todo-list li {
    background: #1a1a2e;
    border-left: 7px solid #00ffb3;
    color: #3d2c29;
}

#todo-list li:hover {
    box-shadow: 0 0 10px currentColor;
}

.todo-task.low { color: #00ffB3; font-weight: bold; }
.todo-task.medium { color: #FFD93D; font-weight: bold; }
.todo-task.high { color: #FF3D5A; font-weight: bold; }

.priority.low { background-color: #003327; color: #00ffB3; }
.priority.medium { background-color: #332900; color: #FFD93D; }
.priority.high { background-color: #330013; color: #FF3D5A; }

.edit-btn {
    background: #6c63ff;
    color: #0d0d1a;
    box-shadow: 0 0 5px #6C63FF55;
    font-weight: bold;
    cursor : pointer;
}
.edit-btn:hover {
    background: #8c85ff;
    box-shadow: 0 0 10px #6C63FFAA;
    color: #fff;
}

.delete-btn {
    background: #ff3d5a;
    box-shadow: 0 0 5px #FF3D5A55;
}
.delete-btn:hover {
    background: #ff5f75;
    box-shadow: 0 0 10px #FF3D5AAA;
}

.deadline, .reminder {
    color: #a67c52;
}

/* Mobile S adjustments */
@media (max-width: 400px) {
    #todo-form {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 4px;
    }
    #todo-form input[type="text"],
    #todo-form input[type="date"],
    #todo-form input[type="time"],
    #todo-form select,
    #todo-form button[type="submit"] {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    #todo-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 8px;
    }
}

#pomodoro-section {
  text-align: center;
  padding: 15px;
  color: #f5f5dc;
  font-family: 'Courier New', monospace;
}

#pomodoro-timer {
  font-size: 3rem;
  font-weight: bold;
  color: #ffcc00;
  background: #1b263b;
  padding: 15px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 10px;
}

#pomodoro-controls button {
  background-color: #ff5722;
  color: #fff;
  border: none;
  padding: 8px 14px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

#pomodoro-controls button:hover {
  background-color: #ff784e;
}

#pomodoro-status {
  font-size: 1.2rem;
  margin-top: 5px;
  color: #ffcc00;
}

/* XP Bar */
#xp-container {
  width: 100%;
  height: 20px;
  background: #0d1b2a;
  border-radius: 10px;
  margin-top: 15px;
  overflow: hidden;
}

#xp-bar {
  height: 100%;
  width: 0%;
  background: #00ff99;
  transition: width 0.3s ease;
}

#xp-text {
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #pomodoro-timer {
      font-size: 2.2rem;
      padding: 10px;
  }

  #pomodoro-controls button {
      width: 100%;
  }
}


/* Notes Section Retro Style */
/* Notes Section Retro Gallery Styles */
#pdf-upload-form {
    background: linear-gradient(120deg, #f7e9d2 60%, #e2cfa5 100%);
    border: 2px solid #e2cfa5;
    border-radius: 14px;
    padding: 18px 14px 14px 14px;
    box-shadow: 0 2px 18px 0 #e2cfa544;
    margin-bottom: 20px;
    max-width: 400px;
}

#pdf-upload-form label {
    color: #a67c52;
    font-size: 1.1em;
    margin-bottom: 8px;
    display: block;
    font-family: 'Montserrat', 'Arial', sans-serif;
    letter-spacing: 1px;
}

#pdf-input {
    background: #fffbe9;
    border: 2px solid #a67c52;
    border-radius: 7px;
    padding: 8px;
    color: #3d2c29;
    font-size: 1em;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

#notes-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
}

#notes-gallery div {
    transition: box-shadow 0.2s, transform 0.2s;
}

#notes-gallery div:hover {
    box-shadow: 0 4px 18px 0 #a67c5244;
    transform: scale(1.05);
}

#notes-gallery img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 12px #e2cfa544;
    background: #fffbe9;
    display: block;
}

#notes-gallery i.fa-file-pdf {
    font-size: 48px;
    color: #a67c52;
}

#notes-gallery > div > div {
    text-align: center;
    color: #a67c52;
    font-size: 0.95em;
    margin-top: 6px;
}

/* Responsive for mobile */
@media (max-width: 400px) {
    #pdf-upload-form {
        padding: 10px 4px;
        max-width: 98vw;
    }
    #notes-gallery {
        gap: 8px;
    }
    #notes-gallery img,
    #notes-gallery div > div {
        width: 80px !important;
        height: 80px !important;
        font-size: 0.85em;
    }
}

body {
  background-color: #0D0D1A;
  color: #E0E0E0;
  font-family: sans-serif;
}

.habits-section {
  padding: 1rem;
}

.habits-section h2 {
  margin-bottom: 1rem;
  color: #6C63FF; /* Neon purple */
}

#habit-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#habit-form input,
#habit-form select {
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid #1E1B3A;
  background-color: #1E1B3A;
  color: #E0E0E0;
}

.btn {
  border: none;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: 0.2s;
}

.btn-add {
  background-color: #00FFB3;
  color: #0D0D1A;
}

.btn-edit {
  background-color: #00FFB3;
  color: #0D0D1A;
}

.btn-delete {
  background-color: #FF3D5A;
  color: white;
}

.btn:hover {
  opacity: 0.85;
}

.habit-row {
  background-color: #0D0D1A;
  border: 1px solid #1E1B3A;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.2);
  transition: all 0.2s ease-in-out;
}

.habit-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

.habit-row.completed {
  background-color: rgba(0, 255, 179, 0.1); /* Neon green tint */
  border-color: #00FFB3;
  box-shadow: 0 0 6px rgba(0, 255, 179, 0.3);
}

.habit-name {
  flex: 2;
  font-weight: bold;
}

.habit-frequency {
  flex: 1;
  color: #9E9E9E;
}

.habit-streak {
  flex: 1;
  color: #FFD93D; /* Neon yellow */
}

.habit-check {
  width: 18px;
  height: 18px;
}

/*📱 Mobile Responsive Styles */
@media (max-width: 600px) {
  /* Stack form inputs vertically on small screens */
  #habit-form {
    flex-direction: column;
  }

  #habit-form input,
  #habit-form select,
  #habit-form button {
    width: 100%;
  }

  /* Make habit rows wrap content */
  .habit-row {
    flex-wrap: wrap;
    padding: 0.8rem;
  }

  .habit-name,
  .habit-frequency,
  .habit-streak {
    flex: 100%;
    margin-bottom: 0.3rem;
  }

  .habit-check {
    margin-right: 0.5rem;
  }

  .btn-edit,
  .btn-delete {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 601px) and (max-width: 768px) {
  /* Medium mobile adjustments */
  .habit-row {
    flex-wrap: wrap;
  }

  .habit-name {
    flex: 100%;
    margin-bottom: 0.2rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  /* Large mobile adjustments */
  .habit-row {
    padding: 0.6rem;
  }
}



/* ===== Reminders Section ===== */
#reminders-section {
  padding: 1rem;
  background: #0D0D1A; /* Deep navy background */
  color: #FFF;
  min-height: 100%;
}

#reminders-section h2 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #FFD93D; /* Neon yellow */
  text-shadow: 0 0 5px #FFD93D, 0 0 10px #FFD93D;
}

/* Form Styling */
#reminder-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

#reminder-form input, #reminder-form button {
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  outline: none;
}

/* Inputs */
#reminder-form input {
  background: #111122; /* Dark card-like input */
  color: #FFF;
}

#reminder-form input::placeholder {
  color: #AAA;
}

/* Button */
#reminder-form button {
  background: #00FFB3; /* Neon green button */
  color: #0D0D1A;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#reminder-form button:hover {
  box-shadow: 0 0 6px #00FFB3, 0 0 12px #00FFB3;
  transform: translateY(-2px);
}

/* Reminders List */
#reminder-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Each Reminder Card */
#reminder-list li {
  background: #111122;
  padding: 0.7rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

/* Delete Button */
#reminder-list li button {
  background: #FF4D4D; /* Red delete */
  color: #FFF;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

#reminder-list li button:hover {
  box-shadow: 0 0 6px #FF4D4D, 0 0 12px #FF4D4D;
  transform: translateY(-2px);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  #reminders-section h2 {
      font-size: 1.3rem;
  }

  #reminder-form input, #reminder-form button {
      font-size: 0.85rem;
  }

  #reminder-list li {
      font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  #reminders-section h2 {
      font-size: 1.1rem;
  }

  #reminder-form input, #reminder-form button {
      font-size: 0.8rem;
  }

  #reminder-list li {
      font-size: 0.8rem;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.4rem;
  }

  #reminder-list li button {
      align-self: flex-end;
  }
}

/* Dashboard layout */
.dashboard {
  padding: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Greeting */
.dashboard h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

/* Quick Stats Grid */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
}
.stat-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #444;
}
.stat-card p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
}

/* Quote Box */
.quote-box {
  background: #fff6e6;
  border-left: 5px solid #ffa500;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 10px;
  font-style: italic;
  color: #444;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 15px;
}
.quick-actions button {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
#add-task-btn {
  background: #007bff;
  color: white;
}
#quick-pomodoro-btn {
  background: #ff6347;
  color: white;
}
.quick-actions button:hover {
  transform: scale(1.05);
}

.dashboard {
  padding: 20px;
  background-color: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: 20px auto;
  font-family: 'Segoe UI', sans-serif;
}

.dashboard h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.setting-item label {
  font-size: 1rem;
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.setting-item input[type="number"] {
  width: 80px;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#reset-data-btn {
  flex: 1;
  padding: 10px 20px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

#reset-data-btn:hover {
  background-color: #c0392b;
}

/* 🌞 Light Theme Overrides */
body.light-theme .todo-task.low { 
    color: #059669; /* Emerald green for low priority */
    font-weight: bold; 
}
body.light-theme .todo-task.medium { 
    color: #d97706; /* Warm amber for medium priority */
    font-weight: bold; 
}
body.light-theme .todo-task.high { 
    color: #dc2626; /* Strong red for high priority */
    font-weight: bold; 
}

body.light-theme .priority.low { 
    background-color: #d1fae5; /* Pale green background */
    color: #065f46; /* Dark green text */
}
body.light-theme .priority.medium { 
    background-color: #fef3c7; /* Pale amber */
    color: #92400e; /* Dark amber text */
}
body.light-theme .priority.high { 
    background-color: #fee2e2; /* Pale red */
    color: #991b1b; /* Dark red text */
}

body.light-theme .edit-btn {
    background: #3b82f6; /* Blue button */
    color: #ffffff;
    box-shadow: 0 0 5px #3b82f655;
    font-weight: bold;
    cursor: pointer;
}
body.light-theme .edit-btn:hover {
    background: #2563eb; /* Darker blue hover */
    box-shadow: 0 0 10px #2563eb88;
    color: #f0f9ff;
}

body.light-theme .delete-btn {
    background: #ef4444; /* Softer red */
    color: #ffffff;
    box-shadow: 0 0 5px #ef444455;
}
body.light-theme .delete-btn:hover {
    background: #dc2626; /* Darker red hover */
    box-shadow: 0 0 10px #dc262688;
}

body.light-theme .deadline, 
body.light-theme .reminder {
    color: #6b7280; /* Neutral gray instead of brown */
}

/* 🌞 Light Theme Overrides */
body.light-theme #todo-form {
    background: #ffffff; /* White form background */
    border: 2px solid #93c5fd; /* Soft blue border */
    box-shadow: 0 2px 18px 0 #93c5fd55; /* Light blue glow */
}

body.light-theme #todo-form input[type="text"] {
    border: 2px solid #60a5fa; /* Sky blue border */
    background: #f9fafb; /* Light gray background */
    color: #111827; /* Dark text */
}
body.light-theme #todo-form input[type="text"]:focus {
    border-color: #3b82f6; /* Stronger blue focus */
    box-shadow: 0 0 8px #3b82f688;
}

body.light-theme #todo-form input[type="date"],
body.light-theme #todo-form input[type="time"] {
    border: 2px solid #60a5fa;
    background: #f9fafb;
    color: #111827;
}
body.light-theme #todo-form input[type="date"]:focus,
body.light-theme #todo-form input[type="time"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 8px #3b82f688;
}

body.light-theme #todo-form select {
    border: 2px solid #60a5fa;
    background: #f9fafb;
    color: #111827;
}
body.light-theme #todo-form select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 8px #3b82f688;
}

body.light-theme #todo-form button[type="submit"] {
    background: #3b82f6; /* Blue button */
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 10px 0;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 #93c5fd55;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 1px;
}
body.light-theme #todo-form button[type="submit"]:hover {
    background: #2563eb; /* Darker blue hover */
    color: #f0f9ff;
    box-shadow: 0 0 8px #2563eb88;
}

body.light-theme #todo-list li {
    background: #ffffff; /* White list item */
    border-left: 7px solid #3b82f6; /* Blue accent */
    color: #111827; /* Dark text */
}

/* 🌞 Light Theme Overrides */
body.light-theme #pomodoro-section {
  text-align: center;
  padding: 15px;
  color: #1f2937; /* dark gray text */
  font-family: 'Courier New', monospace;
}

body.light-theme #pomodoro-timer {
  font-size: 3rem;
  font-weight: bold;
  color: #2563eb; /* bright blue digits */
  background: #f3f4f6; /* soft gray background */
  padding: 15px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

body.light-theme #pomodoro-controls button {
  background-color: #3b82f6; /* blue buttons */
  color: #fff;
  border: none;
  padding: 8px 14px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
body.light-theme #pomodoro-controls button:hover {
  background-color: #2563eb; /* darker blue hover */
}

body.light-theme #pomodoro-status {
  font-size: 1.2rem;
  margin-top: 5px;
  color: #2563eb; /* match timer blue */
}

/* XP Bar */
body.light-theme #xp-container {
  width: 100%;
  height: 20px;
  background: #e5e7eb; /* light gray background */
  border-radius: 10px;
  margin-top: 15px;
  overflow: hidden;
}

body.light-theme #xp-bar {
  height: 100%;
  width: 0%;
  background: #10b981; /* emerald green progress */
  transition: width 0.3s ease;
}

/* 🌞 Light Retro Theme Overrides */
body.light-theme #pdf-upload-form {
    background: linear-gradient(120deg, #fdf6e3 60%, #fae3d9 100%); /* pale cream → peach */
    border: 2px solid #f2c6b4; /* muted coral */
    border-radius: 14px;
    padding: 18px 14px 14px 14px;
    box-shadow: 0 2px 18px 0 #f2c6b444;
    margin-bottom: 20px;
    max-width: 400px;
}

body.light-theme #pdf-upload-form label {
    color: #6b4226; /* retro brown */
    font-size: 1.1em;
    margin-bottom: 8px;
    display: block;
    font-family: 'Montserrat', 'Arial', sans-serif;
    letter-spacing: 1px;
}

body.light-theme #pdf-input {
    background: #fffdf5; /* off-white */
    border: 2px solid #c08457; /* faded brown */
    border-radius: 7px;
    padding: 8px;
    color: #4a2f18;
    font-size: 1em;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

body.light-theme #notes-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
}

body.light-theme #notes-gallery div {
    transition: box-shadow 0.2s, transform 0.2s;
}

body.light-theme #notes-gallery div:hover {
    box-shadow: 0 4px 18px 0 #f2c6b444;
    transform: scale(1.05);
}

body.light-theme #notes-gallery img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 12px #f2c6b444;
    background: #fffdf5;
    display: block;
}

body.light-theme #notes-gallery i.fa-file-pdf {
    font-size: 48px;
    color: #c08457; /* retro faded brown */
}

body.light-theme #notes-gallery > div > div {
    text-align: center;
    color: #6b4226;
    font-size: 0.95em;
    margin-top: 6px;
}

/* 🌞 Light Retro Theme - Habits Section */
body.light-theme .habits-section h2 {
  margin-bottom: 1rem;
  color: #8c6ff7; /* Softer pastel purple */
}

body.light-theme #habit-form input,
body.light-theme #habit-form select {

  border: 1px solid #e0c9f7; /* soft lavender border */
  background-color: #fdfaff; /* pale lavender background */
  color: #3d2c29; /* dark retro brown */
}



body.light-theme .btn-add,
body.light-theme .btn-edit {
  background-color: #a4f4c4; /* pastel mint green */
  color: #2d2d2d; /* dark text for readability */
}

body.light-theme .btn-delete {
  background-color: #ff9e9e; /* soft retro pink-red */
  color: #2d2d2d;
}

body.light-theme .btn:hover {
  opacity: 0.85;
}

body.light-theme .habit-row {
  background-color: #fffdf5; /* off-white retro */
  border: 1px solid #e0c9f7; /* pastel purple border */

  box-shadow: 0 0 6px rgba(174, 174, 255, 0.2); /* light glow */
  transition: all 0.2s ease-in-out;
}

body.light-theme .habit-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(174, 174, 255, 0.4); /* stronger glow */
}

body.light-theme .habit-row.completed {
  background-color: rgba(164, 244, 196, 0.3); /* soft mint tint */
  border-color: #a4f4c4;
  box-shadow: 0 0 6px rgba(164, 244, 196, 0.4);
}

body.light-theme .habit-name {

  color: #2d2d2d; /* readable dark text */
}

body.light-theme .habit-frequency {
  
  color: #6d6d6d; /* muted gray */
}

body.light-theme .habit-streak {
  
  color: #f2c94c; /* softer pastel yellow */
}

body.light-theme #reminders-section {
  padding: 1rem;
  background: #ffffff; /* clean white background */
  color: #222222; /* dark text for readability */
  min-height: 100%;
  border: 1px solid #dddddd; /* subtle border for separation */
  border-radius: 8px;
}

body.light-theme #reminders-section h2 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #3366cc; /* calm blue heading */
  text-shadow: none; /* remove glowing effect for light theme */
}

body.light-theme #reminder-form input {
  background: #ffffff; /* light card input */
  color: #222222;
  border: 1px solid #cccccc;
}

body.light-theme #reminder-form input::placeholder {
  color: #888888; /* softer placeholder */
}

/* Button */
body.light-theme #reminder-form button {
  background: #4CAF50; /* calm green button */
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.light-theme #reminder-form button:hover {
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
  transform: translateY(-2px);
}

/* Reminders List */
body.light-theme #reminder-list li {
  background: #f9f9f9;
  padding: 0.7rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border: 1px solid #dddddd;
  transition: all 0.3s ease;
}

/* Delete Button */
body.light-theme #reminder-list li button {
  background: #ff6b6b; /* softer red */
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

body.light-theme #reminder-list li button:hover {
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
  transform: translateY(-2px);
}

body.dark-theme .dashboard h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #f5f5f5; /* lighter text for dark bg */
}

body.dark-theme .stat-card {
  background: #1a1a2e; /* dark card */
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

body.dark-theme .stat-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #cccccc; /* softer light gray */
}

body.dark-theme .stat-card p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00ffb3; /* neon accent */
}

/* Quote Box */
body.dark-theme .quote-box {
  background: #2b2b40; /* muted dark bg */
  border-left: 5px solid #ffd93d; /* neon yellow accent */
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 10px;
  font-style: italic;
  color: #e0e0e0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

/* Quick Actions */
body.dark-theme .quick-actions {
  display: flex;
  gap: 15px;
}

body.dark-theme .quick-actions button {
  flex: 1;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

body.dark-theme #add-task-btn {
  background: #6c63ff; /* neon purple */
  color: #fff;
}

body.dark-theme #quick-pomodoro-btn {
  background: #ff3d5a; /* neon red */
  color: #fff;
}

body.dark-theme .quick-actions button:hover {
  transform: scale(1.05);
}

body.dark-theme .dashboard {
  padding: 20px;
  background-color: #0d0d1a; /* dark bg */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  max-width: 500px;
  margin: 20px auto;
  font-family: 'Segoe UI', sans-serif;
}

body.dark-theme .setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #2c2c2c; /* dark background */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  color: #f1f1f1; /* light text */
}

body.dark-theme .setting-item input[type="number"] {
  width: 80px;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #555; /* darker border */
  background-color: #1e1e1e; /* input background */
  color: #f1f1f1; /* input text */
}

body.dark-theme #reset-data-btn {
  flex: 1;
  padding: 10px 20px;
  background-color: #e74c3c; /* red button */
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

body.dark-theme #reset-data-btn:hover {
  background-color: #c0392b; /* darker red on hover */
}

/* 📱 Mobile view adjustments */
/* ===== Login Form Base Style ===== */
/* Default login styles */
