* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary-color: #393e60;
  --primary-color-2: #676f9d;
  --secondary-color: #55a4e4;
  --background-color: #1f2547;
  --elements-color: #0589f5;
}

body {
  background-color: var(--background-color);
}
/* navigation */
.fa-graduation-cap {
  color: #08eff7;
  font-size: 50px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  margin-left: 5rem;
}
.logo h1 {
  color: #08eff7;
  font-size: 3rem;
  font-family: sans-serif;
}
.user {
  color: #08eff7;
  font-size: 1.5rem;
  margin-right: 5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user h3 {
  color: var(--secondary-color);
  font-size: 1rem;
  font-family: serif;
  margin-right: 5rem;
  cursor: pointer;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
/* sidebar */
.side {
  width: 5rem;
  background-color: var(--primary-color-2);
  height: 100vh;
  position: fixed;
  top: 3rem;
  left: 0;
  padding: 20px;
  z-index: 10;

  cursor: pointer;
}

.icons > .fa-solid {
  display: block;
  font-size: 2rem;
  background-color: transparent;
  color: var(--background-color);
}
.icons {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  font-size: 30px;
}
/* sidebar extension */
.ext {
  background-color: var(--primary-color-2);
  top: 3rem;
  left: 5rem;
  height: 100vh;
  width: 10rem;
  position: fixed;
  transform: translateX(-100%);
  transition: transform 0.25s ease-in-out;
  z-index: 5;
  opacity: 97%;
}

.ext-item {
  font-size: 1.2rem;
  margin: 20px 0;
  cursor: pointer;
  padding: 10px 20px;
}
.ext-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  margin-left: -8rem;
}
.ext-item button {
  text-decoration: none;
  color: var(--background-color);
  margin-left: 2rem;
  background-color: transparent;
  border: none;
  font-weight: bold;
  font-size: medium;
  cursor: pointer;
}
button:hover {
  text-decoration: underline rgba(8, 239, 247, 0.503);
}

/* show on hover */
.side:hover + .ext {
  transform: translateX(0);
}
.ext:hover {
  transform: translateX(0);
}

/* main content - container  */
/* home page container */
.container-home {
  margin: 7rem auto;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  background-color: transparent;
  display: block;
}
/* header-(Task-statistics) */
.head {
  background-color: var(--elements-color);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(115, 178, 225, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.12), 0 0 18px rgba(37, 215, 189, 0.06);

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
header .head-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-left: -5rem;
}
.head-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.head-value {
  color: rgb(24, 7, 98);
  font-size: 2rem;
  font-weight: bold;
}
.head-tag {
  color: rgba(36, 11, 126, 0.475);
  font-size: 1rem;
}
/* dashboard */

.content-grid {
  background-color: transparent;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}
.card {
  padding: 30px;
  background-color: var(--elements-color);
  box-shadow: 0 10px 30px rgba(115, 178, 225, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.12), 0 0 18px rgba(37, 215, 189, 0.06);
  border-radius: 12px;
  margin-top: 20px;
}
.card-heading {
  color: rgb(24, 7, 98);
  font-family: sans-serif;
  font-size: 1.2rem;
}
.task-no {
  text-align: center;
  padding: 40px 20px;
  color: #393e60;
}
.graph p {
  text-align: center;
  padding: 40px 20px;
  color: #393e60;
}
.list-no {
  padding: 40px 20px;
  text-align: center;
  color: #393e60;
}
/* Tasks page designing */
.container-tasks {
  background-color: transparent;
  margin: 7rem auto;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  display: none;
}
/* header */
.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.task-header h1 {
  color: rgb(24, 7, 98);
  font-size: 2rem;
  font-weight: bold;
  font-family: system-ui;
}
.task-header button {
  padding: 10px 20px;
  border-radius: 15px;
  border: 3px solid rgb(24, 7, 98);
  font-family: system-ui;
  font-size: 1rem;
  text-decoration: none;
  color: rgb(24, 7, 98);
  background-color: transparent;
  font-weight: bold;
}
.task-header button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 7, 98, 0.25), 0 2px 6px rgba(24, 7, 98, 0.12);
}
/* search-bar */
.filter {
  margin-top: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--elements-color);
  border-radius: 15px;
}
.filter-values {
  padding: 10px;
  border-radius: 10px;
  background-color: var(--elements-color);
  border: 3px solid rgb(24, 7, 98);
  font-family: system-ui;
}
.filter-values:focus {
  outline: none;
  border: 3px solid rgb(24, 7, 98);
  box-shadow: 0 8px 24px rgba(38, 8, 174, 0.351),
    0 2px 6px rgba(26, 7, 113, 0.351);
}
.filter-values::placeholder {
  color: rgba(24, 7, 98, 0.5);
  font-family: system-ui;
  font-weight: bold;
}
/* task list */
.task-li {
  background-color: var(--elements-color);
  padding: 25px;
  margin-top: 2.5rem;
  border-radius: 15px;
}
.no-task {
  padding: 20px 40px;
  text-align: center;
}

/* ADD task-form style*/
.form-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.task-form {
  background-color: var(--primary-color-2);
  padding: 30px;
  height: 70%;
  width: 30%;
  border-radius: 15px;
}
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-header h3 {
  font-size: 2rem;
  font-family: system-ui;
}
.form-header button {
  font-size: larger;
  background-color: transparent;
  border: 1px solid var(--primary-color-2);
  color: #393e60;
  cursor: pointer;
}
.title-data {
  margin-top: 10px;
}
.for-label {
  display: block;
  font-family: sans-serif;
  color: #1f2547;
  font-weight: 300;
  font-size: medium;
}
.input-data {
  width: 100%;
  padding: 10px;
  border-radius: 15px;
  background-color: var(--primary-color-2);
  border: 2px solid #1f2547;
  color: #ffff;
  font-family: cursive;
}
.input-data:focus {
  outline: none;
  border: 2px solid #1f2547;
  box-shadow: 0 8px 24px rgba(38, 8, 174, 0.351),
    0 2px 6px rgba(26, 7, 113, 0.351);
}

.grid-1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}
.input-data::placeholder {
  color: rgba(255, 255, 255, 0.595);
  font-family: system-ui;
  font-size: smaller;
}
.form-action {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 10px;
}
.action {
  padding: 10px 20px;
  background-color: transparent;
  border-radius: 15px;
  border: 2px solid #1f2547;
  color: #1f2547;
  cursor: pointer;
  font-family: system-ui;
  font-weight: bold;
}
.action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 7, 98, 0.25), 0 2px 6px rgba(24, 7, 98, 0.12);
  text-decoration: none;
}
/* notificatin styling  */
.notify {
  background-color: var(--primary-color-2);
  padding: 20px 40px;
  position: fixed;
  z-index: 10000;
  top: 4rem;
  right: 50px;
  transform: translateX(calc(100% + 70px));
  font-size: larger;
  border-radius: 50px;
  font-family: sans-serif;
  transition: transform 0.5s ease-out;
}
.notify.show {
  transform: translateX(0);
}
.notify.success {
  box-shadow: 0 8px 24px rgba(115, 255, 0, 0.25);
  border: 3px solid #31e815;
  color: #44ff00;
}
.notify.error {
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.25);
  border: 3px solid #ff0000;
  color: #ff0000;
}
/* task-items styling */
.task-item {
  background-color: #08eff769;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-content: center;
}
.task-item:hover {
  box-shadow: 0 4px 10px rgba(22, 40, 43, 0.1);
  transform: scale(1.01);
  transition: transform 0.2s ease-out;
}
.high {
  border-left: 5px solid rgb(167, 4, 4);
}
.low {
  border-left: 5px solid rgb(21, 255, 0);
}
.medium {
  border-left: 5px solid rgb(255, 68, 0);
}
.task-name {
  font-size: larger;
  font-family: sans-serif;
  font-weight: bold;
  margin-bottom: 5px;
}
.task-description {
  font-family: system-ui;
  font-size: 16px;
  opacity: 60%;
  margin-bottom: 3px;
}
.task-icons {
  display: flex;
  gap: 10px;
  font-family: system-ui;
  font-size: 13.5px;
}
.tag {
  background-color: #394beb42;
  border-radius: 15px;
  padding: 6px;
  text-align: center;
  font-family: sans-serif;
  font-weight: bold;
  color: #00000f;
}
#status {
  border-radius: 15px;
  padding: 6px;
  text-align: center;
  font-family: sans-serif;
  font-weight: bold;
}
.status-pending {
  background-color: rgba(255, 0, 0, 0.525);
  color: rgba(255, 0, 0, 0.819);
}
.status-completed {
  background-color: #22ff0049;
  color: #184a11f4;
}
.task-btns {
  display: flex;
  gap: 13px;
}
.style-btns {
  background-color: transparent;
  border: none;
  font-size: 27px;
  cursor: pointer;
  color: #00000f;
}
.style-btns:hover {
  background-color: transparent;
}
.task-btns {
  align-self: flex-end;
  justify-self: center;
}
.style-btns:hover i {
  transform: scale(1.1);
  transition: transform 0.2s ease-out;
}
/* items showing in home screen */
.upcoming-item {
  background-color: #08eff769;
  padding: 20px;
  border-radius: 10px;
  margin: 10px 5px;
}
.upcoming-item > h3 {
  margin-bottom: 5px;
  font-size: larger;
  font-family: sans-serif;
}
.completed {
  opacity: 0.6;
  border-left-color: #6c757d;
}
.pending {
  display: flex;
}
/* recent activity styling */
.activity-item {
  background-color: #08eff769;
  padding: 15px;
  border-radius: 10px;
  margin: 10px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: sans-serif;
}

.activity-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-details i {
  font-size: 1.2rem;
}

.activity-details .fa-plus-circle {
  color: #10f000;
}
.activity-details .fa-edit {
  color: #0134fe;
}
.activity-details .fa-trash {
  color: #ff0000;
}
.activity-details .fa-check-circle {
  color: #10f000;
}

.activity-time {
  font-size: 0.8rem;
  color: #00000f9a;
  font-style: italic;
}

/* Recent Activity Scrolling */
.activity-scroll-wrapper {
  position: relative;
}

#recent-activity-list {
  max-height: 390px;
  overflow-y: auto;
  /* made some adjustments to improve scrolling using gemini AI */
  /* Hide scrollbar for modern browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer  */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari) */
#recent-activity-list::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: linear-gradient(to top, transparent, #0589f5 90%);
  border: none;
  color: rgba(0, 0, 15, 0.6);
  cursor: pointer;
  padding: 5px 0;
  font-size: 1.2rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.activity-scroll-wrapper:hover .scroll-btn {
  opacity: 1;
}

.scroll-btn.up {
  top: 0;
}

.scroll-btn.down {
  bottom: 0;
  background: linear-gradient(to bottom, transparent, #0589f5 90%);
}
/* progress page container */
.container-progress {
  background-color: #0589f5;
  margin: 7rem auto;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  display: none;
}

/* Responsive Design for Mobile */

@media (max-width: 768px) {
  /* --- General Layout & Navigation --- */
  .nav {
    justify-content: center;
  }
  .logo {
    margin-left: 0;
    padding: 10px;
  }
  .logo h1 {
    font-size: 1.5rem;
  }
  .fa-graduation-cap {
    font-size: 30px;
  }
  .user {
    display: none; /* Hide user on nav for more space */
  }

  /* Convert sidebar to bottom nav bar */
  .side {
    width: 100%;
    height: 60px;
    top: auto;
    bottom: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }
  .icons {
    margin-top: 0;
    flex-direction: row;
    gap: 4rem;
    width: 100%;
    justify-content: space-around;
    align-items: center;
  }
  .icons > .fa-solid {
    font-size: 1.8rem;
  }

  /* Hide sidebar extension */
  .ext {
    display: none;
  }

  /* Adjust main containers */
  .container-home,
  .container-tasks,
  .container-progress {
    margin: 4.5rem 0 60px 0; /* Top margin for nav, bottom for bottom-bar */
    margin-left: 0;
    padding: 10px;
    width: 100%;
  }

  /* --- Home Page --- */
  .head {
    padding: 1rem;
  }
  header .head-items {
    flex-direction: column;
    gap: 20px;
    margin-left: 0;
  }
  .content-grid {
    padding: 10px 0;
    grid-template-columns: 1fr; /* Single column layout */
  }
  .card {
    padding: 20px;
  }

  /* --- Tasks Page --- */
  .task-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    text-align: center;
  }
  .filter {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .task-li {
    padding: 15px;
  }
  .task-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .task-btns {
    align-self: flex-end;
  }
  .task-icons {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* --- Add/Edit Task Form --- */
  .task-form {
    width: 95%;
    height: 90%;
    padding: 20px;
    overflow-y: auto;
  }
  .grid-1 {
    grid-template-columns: 1fr;
  }
  .form-header h3 {
    font-size: 1.5rem;
  }

  /* --- Notification --- */
  .notify {
    width: 90%;
    right: 5%;
    padding: 15px 20px;
    font-size: medium;
    text-align: center;
  }
}
