@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

:root{
  --base-clr: #F5F5F7;
  --text-clr: #1D1D1F;
  --line-clr: #5154db;
}

/* ===================== */
/* RESET */
/* ===================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: Poppins, sans-serif;
}

body {
  min-height: 100vh;
  background: var(--base-clr);
  color: var(--text-clr);
  display: grid;
  grid-template-columns: 250px 1fr;
}

#sidebar {
    grid-column: 1;
  }
  
  main {
    grid-column: 2;
  }

/* ===================== */
/* SIDEBAR */
/* ===================== */

#sidebar {
  height: 100vh;
  width: 250px;
  background: #1D1D1F;
  border-right: 1px solid rgba(81,84,219,0.3);

  position: sticky;
  top: 0;

  overflow-y: auto;
  overflow-x: visible;

  transition: width 0.3s ease;
  padding: 10px;
}

/* collapsed */
#sidebar.close {
  width: 60px;
}

/* ===================== */
/* LISTS */
/* ===================== */

#sidebar ul {
  list-style: none;
}

/* ===================== */
/* HEADER */
/* ===================== */

#sidebar .logo {
  color: white;
  font-weight: 600;
  padding: 10px;
}

/* toggle button */
#toggle-btn {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

#toggle-btn img {
  filter: invert(1);
  transition: transform 0.2s ease;
}

/* ===================== */
/* LINKS */
/* ===================== */

#sidebar a,
#sidebar .dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px;
  border-radius: 8px;

  color: white;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
}

/* hover */
#sidebar a:hover,
#sidebar .dropdown-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* active page */
#sidebar li.active > a {
  text-decoration: underline wavy white;
}

/* ===================== */
/* ICON ROTATION */
/* ===================== */

.rotate img:last-child {
  transform: rotate(180deg);
}

/* ===================== */
/* SUBMENU */
/* ===================== */

.sub-menu {
  display: none;
  padding-left: 15px;
}

.sub-menu.show {
  display: block;
}

/* ===================== */
/* COLLAPSED STATE */
/* ===================== */

#sidebar.close span {
  display: none;
}

#sidebar.close a,
#sidebar.close .dropdown-btn {
  justify-content: center;
}

/* Hide dropdown arrow when sidebar is collapsed */
#sidebar.close .dropdown-btn img:last-child {
    display: none;
  }




  #tooltip {
    position: fixed;
    background: #111;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: 0.15s ease;
    z-index: 9999;
  }
/* ===================== */
/* MAIN CONTENT */
/* ===================== */

main {
  padding: 20px;
  transition: margin-left 0.3s ease;
}

/* optional spacing sync */
#sidebar.close ~ main {
  margin-left: 60px;
}

/* ===================== */
/* MOBILE */
/* ===================== */

@media (max-width: 800px) {

  body {
    grid-template-columns: 1fr;
  }

  #sidebar {
    position: fixed;
    bottom: 0;
    top: unset;
    width: 100%;
    height: 60px;
    display: flex;
    overflow-x: auto;
  }

  #sidebar.close {
    width: 100%;
  }

  #sidebar ul {
    display: flex;
    align-items: center;
  }

  #sidebar a,
  #sidebar .dropdown-btn {
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
  }

  #sidebar span,
  #toggle-btn {
    display: none;
  }
}

#sidebar img{
    flex-shrink: 0;
    fill: var(--text-clr);
  filter:invert(100%);
  
  }
  
  #sidebar svg{
    flex-shrink: 0;
    fill: var(--text-clr);
  filter:invert(100%);
  }
  
  #sidebar img, #sidebar svg {
    transition: filter 0.3s ease, transform 0.3s ease;
  }

  .progress-container {
    padding: 10px 15px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #ccc;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #2c2c2c;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #00c6ff;
    transition: width 0.3s ease;
}

.progress-container {
    padding: 10px 15px;
    display: block;
}

/* Progress bar */
.progress-container {
    padding: 10px 15px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #ccc;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #2c2c2c;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #00c6ff;
    transition: width 0.3s ease;
}

/* Tick styles */
.tick {
    color: #00c853;
    margin-right: 6px;
    font-weight: bold;
}

.tick.empty {
    display: inline-block;
    width: 14px;
}