/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", sans-serif;
}
/* === BODY ==== */
body {
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
  color: #333;
  padding: 20px;
}
/* ==== HEADER ==== */

body {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

header h1 .emoji {
  -webkit-text-fill-color: initial; /* restores normal emoji color */
  background: none;
}
header {
  text-align: center;
  margin-bottom: 40px;
}
header h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #0077cc, #00bcd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 10px;
}
header p {
  font-size: 1.1rem;
  color: #555;
}

/* ========== SECTION TITLES ========== */
section h2 {
  margin-bottom: 20px;
  color: #0077cc;
  font-size: 1.3rem;
  border-left: 5px solid #0077cc;
  padding-left: 12px;
  font-weight: 600;
}

/* ========== CARD STYLE (Reusable) ========== */
section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}
section:hover {
  transform: translateY(-4px);
}
/* ========== TASK FORM ========== */
.task-form form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.task-form input,
.task-form button {
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s ease;
}

.task-form input:focus {
  border-color: #0077cc;
  box-shadow: 0 0 6px rgba(0, 119, 204, 0.3);
}
.task-form input {
  flex: 1;
  min-width: 180px;
}
.task-form button {
  background: linear-gradient(90deg, #0077cc, #00bcd4);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.task-form button:hover {
  background: linear-gradient(90deg, #005fa3, #0097a7);
  transform: scale(1.05);
}

/* ========== TASK LIST ========== */
.task-list ul {
  list-style: none;
}

.task-list li {
  background: #f9fcff;
  border: 1px solid #e0f2ff;
  margin: 12px 0;
  padding: 14px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s ease;
}

.task-list li:hover {
  background: #e6f7ff;
  transform: scale(1.02);
}

.task-list li.completed {
  background: #d1f7d6;
  text-decoration: line-through;
  color: #555;
}

.task-list button {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s ease;
}

.task-list .complete-btn {
  background: #28a745;
  color: #fff;
}

.task-list .complete-btn:hover {
  background: #1e7e34;
}

.task-list .delete-btn {
  background: #dc3545;
  color: #fff;
}

.task-list .delete-btn:hover {
  background: #a71d2a;
}

/* ========== PROGRESS TRACKER ========== */
.progress-tracker {
  text-align: center;
}
.progress-bar {
  width: 100%;
  background: #e0e0e0;
  border-radius: 30px;
  overflow: hidden;
  height: 22px;
  margin: 20px 0;
}
.progress-fill {
  background: linear-gradient(90deg, #0077cc, #00bcd4);
  height: 100%;
  width: 0%;
  border-radius: 30px;
  transition: width 0.5s ease-in-out;
}
#progressText {
  font-weight: bold;
  font-size: 1.1rem;
  color: #0077cc;
}
/*--------------------------------*/
.progress-tracker,
.progress-bar,
.progress-fill,
#progressText {
  padding: 1px;
}
.progress-tracker h2 {
  margin: 0;
  padding: 5px;
  letter-spacing: 2px; /* adjust value as needed */
}
.progress-bar {
  margin: 2px;
}
#progressText {
  font-weight: bold;
  font-size: 1.1rem;
  color: #0077cc;
  letter-spacing: 2px; /* makes text look wider */
}
.progress-tracker p {
  margin: 0;
  padding: 1px;
  letter-spacing: 2px; /* adjust value as needed */
}
/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .task-form form {
    flex-direction: column;
  }
  .task-form input,
  .task-form button {
    width: 100%;
  }
}

/*-------- Overdue Tasks ------------*/
.task-list li.overdue {
  background: #ffe5e5;
  border: 1px solid #ff4d4d;
  color: #a10000;
}

/* Edit Button */
.task-list .edit-btn {
  background: #ffc107;
  color: #fff;
}
.task-list .edit-btn:hover {
  background: #e0a800;
}

/*-------- Timeline+-----------+- */
#timeline {
  margin-top: 20px;
  text-align: left;
}

#timeline h3 {
  color: #0077cc;
  margin-bottom: 10px;
}

.timeline-item {
  padding: 6px 0;
  border-left: 3px solid #0077cc;
  padding-left: 10px;
  margin: 5px 0;
  font-size: 0.95rem;
}

/* ======= DARK MODE ========= */
body.dark-mode {
  background: linear-gradient(135deg, #1e1e2f, #2c2c44);
  color: #f1f1f1;
}
body.dark-mode section {
  background: rgba(40, 40, 60, 0.9);
  color: #f1f1f1;
}
body.dark-mode header p {
  color: #ccc;
}
body.dark-mode .progress-fill {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
}
body.dark-mode .task-list li {
  background: #2b2b3d;
  border: 1px solid #3e3e55;
  color: #f1f1f1;
}
body.dark-mode .task-list li.completed {
  background: #345b3d;
  color: #cce5cc;
}
body.dark-mode .task-list li.overdue {
  background: #5a2a2a;
  border: 1px solid #ff6666;
  color: #ffb3b3;
}
/* Dark Mode Toggle Button */
.dark-toggle {
  margin-top: 15px;
  padding: 8px 15px;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}
.dark-toggle:hover {
  background: #005fa3;
}


/*--------------------------------------*/
/* ========== MAIN LAYOUT ========== */
.main-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Left wide, right narrow */
  gap: 20px;
}

/* Columns */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mobile View: Stack layout */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .right-column {
    order: 2; /* goes below progress */
  }
}

/* Streak Section */
.streak-section {
  text-align: center;
  
}
#streakGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* Week view */
  gap: 10px;
  margin-top: 15px;
}
.streak-day {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 1.2rem;
  color: #555;
  transition: 0.3s;
}
.streak-day.active {
  background: #28a745;
  color: #fff;
  font-weight: bold;
}
.streak-day.today {
  border: 2px solid #0077cc;
}
/**/
/* Streak Header Flex */
.streak-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.streak-header h2 {
  margin: 0;
}

#streakCounter {
  font-size: 1rem;
  font-weight: bold;
  color: #0077cc;
}

body.dark-mode #streakCounter {
  color: #00c6ff;
}


/*----------📅 css section ++++++++*/
.timeline-section h2 {
  display: flex;
  align-items: center;
  gap: 8px; /* space between icon and text */
  font-size: 1.8rem;
  color: #0077cc;
}

.timeline-section h2 .icon {
  width: 28px;   /* adjust size */
  height: 28px;  /* keep proportions */
}
/* fire css section */
.streak-header h2,
.streak-header p {
  display: flex;
  align-items: center;
  gap: 8px; /* space between icon and text */
}

.streak-icon {
  width: 29px;  /* adjust size */
  height: 29px;
}

/*fdtfeyfgceyfgeyf*/
/* Streak Section */
.streak-section {
  text-align: center;
}

#streakGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /*7columns=week format */
  gap: 10px;
  margin-top: 15px;
  justify-items: center;
}

/* Circle Day Style */
.streak-day {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* circle */
  background: #f0f0f0;
  font-size: 0.9rem;
  font-weight: bold;
  color: #555;
  transition: 0.3s ease;
}

.streak-day.active {
  background: #28a745;
  color: #fff;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.streak-day.today {
  border: 3px solid #0077cc;
  font-weight: 900;
}

.streak-day:hover {
  transform: scale(1.1);
}

/* Dark Mode */
body.dark-mode .streak-day {
  background: #333;
  color: #ccc;
}
body.dark-mode .streak-day.active {
  background: #00c851;
  color: #fff;
}
body.dark-mode .streak-day.today {
  border-color: #00c6ff;
}

/*----- Weekday header cells++++++++ */
.streak-header-day {
  font-weight: bold;
  color: #0077cc;
  background: transparent;
  border-radius: 0; /* not circles */
}


/* hrnuyrhgverifuhecfgyfgh */
/* About Button */
#aboutButton {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
  z-index: 1002;
}
#aboutButton:hover {
  background-color: #45a049;
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* About Panel */
#aboutPanel {
  position: fixed;
  top: 0;
  right: -380px;
  /* width: 350px; */
  width: 350px;
  height: 100%;
  background-color: #f7f9fc;
  box-shadow: -4px 0 15px rgba(0,0,0,0.2);
  padding: 20px;
  overflow-y: auto;
  transition: right 0.3s ease-in-out;
  z-index: 1001;
  border-left: 1px solid #ddd;
}
#aboutPanel.active {
  right: 0;
  width: 30%;   /*or 80%,or 100% if you want full screen*/
}

#aboutPanel h2 {
  margin-top: 10px;
  margin-bottom: 15px;
  color: #4CAF50;
  text-align: center;
}

#aboutPanel h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}
#aboutPanel h4 {
  margin-top: 10px;
  margin-bottom: 5px;
  color: #555;
}
#aboutPanel p, #aboutPanel ul, #aboutPanel ol {
  margin-bottom: 10px;
  color: #555;
  line-height: 1.5;
}

/* Close Button */
#closeAbout {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}
 /* Responsive for mobile */
@media (max-width: 768px) {
  #aboutPanel {
    width: 0; /* collapsed hidden state */
    right: -100%;
    transition: right 0.3s ease-in-out, width 0.3s ease-in-out;
  }

  #aboutPanel.active {
    width: 75%;   /* takes most of the screen */
    right: 0;
  }
  #aboutButton {
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 18px;
  }

  #overlay.active {
    background-color: rgba(0,0,0,0.6);
  }
}
@media (max-width: 480px) {
  #aboutPanel.active {
    width: 70%;   /* full screen on very small devices */
  }
}





