/* 🧼 RESET & BASE */
body {
  background: linear-gradient(to bottom right, #f4efe9, #fffaf5);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  color: #1b1f40;
  background-repeat: no-repeat;
  background-size: cover;
}




/*============================ 🧭 NAVIGATION ============================*/
.navbar {
  background-color: rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid #eaeaea;
  padding: 1rem 2rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: #1b1f40 !important;
  display: flex;
  align-items: center;
}

.navbar-brand:hover {
  text-shadow: 0 0 4px #26a67d;
  transform: scale(1.02);
}

.navbar-brand img {
  height: 36px;
  margin-right: 10px;
}

.navbar-nav {
  margin-left: auto;
}

.navbar-nav .nav-link {
  color: #1b1f40 !important;
  font-size: 1.05rem;
  margin-left: 1rem;
  transition: all 0.2s ease-in-out;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
}

.navbar-nav .nav-link:hover {
  background-color: #e5f8f0;
  color: #26a67d !important;
}

.navbar .btn-outline-success {
  border-radius: 12px;
  font-weight: 600;
  margin-left: 1rem;
  border: 2px solid #26a67d;
  color: #26a67d;
  transition: all 0.2s ease-in-out;
  padding: 0.4rem 1rem;
}

.navbar .btn-outline-success:hover {
  background-color: #26a67d;
  color: white;
}





/*============================ FRONTPAGE ============================*/

/* 🎯 HERO-SECTION */
.hero-section {
  padding: 4rem 2rem;
  position: relative;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-section .sub {
  font-weight: 600;
  text-transform: none;
  font-size: 2.2rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.quiz-buttons .btn {
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
}

.brain-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 270px;
}

.brain-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 0 20px #ff7a18);
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.brain2-img {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-width: 180px;
  z-index: 1;
  opacity: 0.95;
}

@keyframes float {
  0%, 100% { transform: translateY(-40px); }
  50% { transform: translateY(-30px); }
}

.level-bar .progress {
  height: 16px;
  border-radius: 20px;
  background-color: #e0d8ce;
  overflow: hidden;
}

.level-bar .progress-bar {
  background: linear-gradient(90deg, #f9a03f, #fd5d93);
  transition: width 0.5s ease;
}

.level-label span {
  font-weight: 600;
  color: #1b1f40;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 6rem 6rem;
    max-width: 1600px;
    margin: 0 auto;
    text-align: left;
  }

  .hero-section h1 {
    font-size: 4rem;
  }

  .hero-section .sub {
    font-size: 2.8rem;
  }

  .hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    padding-left: 0.52rem;
  }

  .quiz-buttons {
    justify-content: flex-start;
  }

  .brain-img {
    max-width: 320px;
    position: relative;
    top: -10px;
    z-index: 2;
    display: block;
    margin: 0 auto;
  }

  .brain2-img {
    max-width: 250px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    z-index: 1;
    display: block;
  }

  .brain-container {
    position: relative;
    height: 280px;
  }

  .level-bar {
    position: relative;
    top: 27px;
  }
}


/* 🔘 QUIZ-KNAPPER */
.quiz-buttons .btn {
  margin: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-weight: bold;
}

/* ✅ KNAPSTYLING */
.btn-success {
  background-color: #9fe5c4;
  color: #1b1f40;
  border: none;
  font-weight: 600;
}

.btn-success:hover {
  background-color: #7ecfa9;
  color: #1b1f40;
}



/* 🧠 HACK-SEKTIONEN */
.hacks-intro {
  background-color: transparent;
  margin-top: 4rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  text-align: center;
}

.hacks-intro h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1b1f40;
}

.hacks-intro p {
  font-size: 1.1rem;
  color: #333;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.9;
}

.hacks-intro::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #f9a03f, #fd5d93);
  margin: 2rem auto 0;
  border-radius: 4px;
  opacity: 0.6;
}

.categories {
  background-color: #fffdfb;
  padding: 6rem 2rem;
  border-radius: 20px;
  border-top: 2px solid #f0e9e2;
}

.category-card {
  background-color: #fff;
  color: #1b1f40;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 16px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.05);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;

  /* 👇 Scroll-effekt */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-card.fade-up-visible {
  opacity: 1;
  transform: translateY(0);
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02); /* tilføj scale for at undgå konflikt */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.category-card h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
  font-weight: bold;
}

.category-card p,
.category-desc {
  font-size: 0.95rem;
  color: #333;
  margin-top: 0.5rem;
  line-height: 1.4;
  text-align: center;
}

.category-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  margin-bottom: 1rem;
}



/* SPECIFIKKE KATEGORI-FARVER */
.classic    { background: linear-gradient(145deg, #eafaf0, #d6f2e0); }
.sunshine   { background: linear-gradient(145deg, #fff5db, #ffeaba); }
.discipline { background: linear-gradient(145deg, #e8eafb, #d7dcf9); }
.chaos      { background: linear-gradient(145deg, #f8eaff, #fed6ff); }
.gentle     { background: linear-gradient(145deg, #ffeef0, #ffdce1); }
.dark       { background: linear-gradient(145deg, #eee, #ccc); }
.gamified   { background: linear-gradient(145deg, #e5f8ff, #d3effd); }
.meta       { background: linear-gradient(145deg, #edf7f6, #d9efed); }

/* SPECIFIKKE KATEGORI-FARVER GLOOOW */
.classic:hover .category-img {
  filter:
    drop-shadow(0 0 15px #a0eec2)
    drop-shadow(0 0 30px #40b77b)
    drop-shadow(0 0 60px #178557);
}

.sunshine:hover .category-img {
  filter:
    drop-shadow(0 0 15px #ffe5a7)
    drop-shadow(0 0 30px #ffc107)
    drop-shadow(0 0 60px #ffb300);
}

.discipline:hover .category-img {
  filter:
    drop-shadow(0 0 15px #a3bff5)
    drop-shadow(0 0 30px #7da9f2)
    drop-shadow(0 0 60px #4d90f0);
}

.chaos:hover .category-img {
  filter:
    drop-shadow(0 0 15px #ff99fc)
    drop-shadow(0 0 30px #e175ff)
    drop-shadow(0 0 60px #bd2ffa);
}

.gentle:hover .category-img {
  filter:
    drop-shadow(0 0 15px #ffc4d6)
    drop-shadow(0 0 30px #ff9dbb)
    drop-shadow(0 0 60px #b44969);
}

.dark:hover .category-img {
  filter:
    drop-shadow(0 0 15px #9e9e9e)
    drop-shadow(0 0 30px #5e5e5e)
    drop-shadow(0 0 60px #252525);
}

.gamified:hover .category-img {
  filter:
    drop-shadow(0 0 15px #8ee6f0)
    drop-shadow(0 0 30px #2591a2)
    drop-shadow(0 0 60px #0f7c8a);
}

.meta:hover .category-img {
  filter:
    drop-shadow(0 0 15px #98f3cd)
    drop-shadow(0 0 30px #40a179)
    drop-shadow(0 0 60px #0b504f);
}


.category-link {
  text-decoration: none;
  color: inherit;
  display: block;
}






/*============================ LOGIN PAGE ============================*/
/* 🔐 LOGIN SIDE */
.login-container {
  max-width: 420px;
  margin: 6rem auto;
  padding: 2.5rem 2rem;
  background: #fffdfb;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  color: #1b1f40;
  animation: fadeIn 0.4s ease-in-out;
}

.login-container h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #1b1f40;
}

.login-container p {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}

.login-container .form-label {
  font-weight: 600;
}

.login-container .form-control {
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 0.7rem 1rem;
}

.login-container .form-check-label {
  font-size: 0.9rem;
}

.login-container .btn-success {
  border-radius: 12px;
  font-weight: bold;
  padding: 0.75rem;
}

.login-container .signup {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
}

.login-container .signup a {
  color: #26a67d;
  font-weight: bold;
  text-decoration: none;
}

.login-container .signup a:hover {
  text-decoration: underline;
}

/* Fade in effect */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* 🔧 Fix dropdown-tekst-farve problem */
.navbar .dropdown-toggle.btn-outline-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent !important;
  color: #1b1f40 !important;
  border: 2px solid #26a67d !important;
  padding: 0.5rem 1rem;
}

.navbar .dropdown-toggle.btn-outline-success:hover,
.navbar .dropdown-toggle.btn-outline-success:focus {
  background-color: #26a67d !important;
  color: white !important;
  border-color: #26a67d !important;
}

/* Sikrer at ikonet og tekst vises klart uanset hover */
.navbar .dropdown-toggle .icon,
.navbar .dropdown-toggle span {
  color: inherit !important;
}







/*============================ PROFILE PAGE ============================*/

/* 👤 Avatar image + Brugerinfo box med floating effekt */
.profile-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 3rem;
  background-color: transparent;
  position: relative;
}

.profile-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem 2rem 2.5rem;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  position: relative;
  text-align: center;
  z-index: 1;
}

.avatar-wrapper {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 2;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#profile-username {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 3.5rem;
  color: #1b1f40;
}

.level-info {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.progress {
  height: 14px;
  background-color: #eeeae7;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar.bg-gradient-orange {
  background: linear-gradient(to right, #ffa94d, #ff6b6b);
  height: 100%;
}

.edit-profile-btn {
  background-color: #f3f0ee;
  color: #1b1f40;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: background-color 0.2s ease;
}

.edit-profile-btn:hover {
  background-color: #e8e4e2;
}

/* 👤 select avatar */

.select-avatar {
  border: 3px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.3s;
}

.select-avatar:hover {
  transform: scale(1.1);
  border-color: #26a67d;
}


.navbar-nav .dropdown-toggle {
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}







/*============================ TOOLS PAGE ============================*/

/*===General===*/

.tools-wrapper {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.tools-wrapper h1 {
  font-size: 2.8rem;
  text-align: center;
  color: #1b1f40;
  font-weight: 900;
  margin-bottom: 3rem;
}

.tool-section {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tool-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #1b1f40;
  font-weight: 800;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.tool-card {
  background-color: #fffaf0;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.03);
  border: 1px solid #f0e0d6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.tool-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1b1f40;
}

.tool-card p {
  font-size: 0.95rem;
  color: #444;
}




/*Notepad*/
.tool-card textarea {
  width: 100%;
  resize: vertical;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #ddd;
}

/*SPIN THE WHEEL*/
.wheel-animation {
  width: 80px;
  height: 80px;
  border: 6px solid #ccc;
  border-top: 6px solid #26a67d;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(1080deg); }
}



/*Checklist*/
.tool-checklist {
  background: transparent !important;
  border: none;
  padding: 0.5rem 0;
  margin-left: -15px;
  max-width: 310px;
  box-shadow: none;
}

.tool-checklist .task-list li {
  align-items: center;
  max-width: 100%;
}

.tool-checklist .input-row {
  justify-content: flex-start;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  
}

.tool-checklist .new-task-input {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  flex: 0 1 100%;
  min-width: 0;
}

.tool-checklist .add-task {
  background-color: #9fe5c4;
  color: var(--buttonText, #1b1f40);
  border: none;
  padding: 0.6rem 1.2rem;
  margin-right: -15px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}

.tool-checklist .add-task:hover {
  background-color: #7ecfa9;
}





/*POMODORO*/
.pomodoro-container {
  position: relative;
  width: 240px;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}



.pomodoro-base,
.pomodoro-hat {
  position: absolute;
  top: -35px;
  left: 0;
  width: 100%;
}

.pomodoro-circle {
  position: relative;
  margin: 0 auto;
  background-color: #4ecdc4;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(63, 4, 32, 0.707);
  top: 15px;
}


.timer-label{ 
  text-align: center; 
  margin-top: 1.8rem;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  margin-bottom: -1rem;
}

.timer {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0rem;
}


.pomodoro-btn {
  background-color: #ff89bb;
  border: none;
  border-radius: 20px;
  padding: 0.2rem 1.2rem;
  font-weight: bold;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 10px rgba(60, 10, 114, 0.464);
}

.pomodoro-btn:hover {
  background-color: #ff6ca6;
  transform: scale(1.05);
}

.pomodoro-btn:active {
  transform: scale(0.95);
  background-color: #ff4d95;
}


.pomodoro-hat {
  z-index: 3;
  pointer-events: none;
  
}

.settings-icon {
  position: absolute;
  bottom: -25px;
  right: 72px;
  font-size: 1.3rem;
  cursor: pointer;
  color: white;
  opacity: 1;
  transition: opacity 0.2s;
}
.settings-icon:hover {
  opacity: 2;
  transform: scale(1.2)
}

.pomodoro-settings-popup {
  position: absolute;
  /* ==Ved siden af uret==
  top: 64px;
  right: -93px;
  
  ==På uret==*/
  top: 20px;
  right: 46px;

  /*Under uret
  top: 253px;
  right: 46px;*/
  background: #fffaf0;
  border: 2px solid #f0e0d6;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.95rem;
  z-index: 10;
  width: 150px;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

.pomodoro-settings-popup label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1b1f40;
}

.pomodoro-settings-popup input[type="number"] {
  width: 60px;
  padding: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  background-color: #ffffff;
  color: #333;
}

.pomodoro-settings-popup button {
  background-color: #ff89bb;
  border: none;
  color: white;
  font-weight: bold;
  padding: 0.2rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.pomodoro-settings-popup button:hover {
  background-color: #ff6ca6;
  transform: scale(1.05);
}

.audio-toggle {
  font-weight: 500;
  color: #1b1f40;
  padding: 0rem 0.6rem;
}





/*============================ PROFILE PAGE ============================*/
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
}


.profile-grid section {
  background-color: #fff;
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  height: 310px; /* juster som du vil */
  display: flex;
  flex-direction: column;
}

.profile-grid .fav-hack-grid,
.profile-grid .tool-slide-container,
.profile-grid textarea {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/*PROFILE FAVORITE HACKS*/
.fav-hack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden; /* 👈 stop horisontal scroll */
  padding-right: 0.25rem;
  padding-bottom: 2px; /* ekstra plads til hover-scale */
}

.fav-hack-card {
 background-color: #fffaf0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  will-change: transform; /* 👈 vigtig */
}

.fav-hack-card:hover {
  transform: scale(1.01);
  margin-bottom: 1px; /* sikrer der er plads til skalering */
}


.fav-hack-card .info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.fav-hack-card img {
  width: 36px;
  height: 36px;
}

.fav-hack-card button.unsave-hack {
  background: none;
  border: none;
  color: #d33;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}

.fav-hack-card button.unsave-hack:hover {
  transform: scale(1.2);
}


.fav-hack-card button.unsave-hack > img.fav-heart {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;

}
.unsaved {
filter: saturate(300%);
}



/*PROFIL FAVORITE TOOLS*/
.tool-slide-container {
  position: relative;
}

.tool-slide-container {
  position: relative;
  overflow: hidden;
}

.tool-page-wrapper {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
  will-change: transform;
}

.tool-page {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2.2rem;
  padding: 1rem 0;
}


.tool-icon {
  width: 63px;
  height: 63px;
  background-color: #fffaf0;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
}

.tool-icon img {
  width: 90%;
  height: auto;
}

.tool-icon::after {
  content: attr(data-title);
  position: absolute;
  bottom: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1b1f40;
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tool-icon:hover::after {
  opacity: 1;
}



/*PROFILE- SCROOL*/
.scroll-dots {
  text-align: center;
  margin-top: 0.5rem;
  transition: opacity 0.3s ease;
}


.scroll-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 4px;
  transition: background 0.3s;
  cursor: pointer;
}

.scroll-dots span.active {
  background-color: #ffa94d;
  transform: scale(1.2);
}

/*PROFILE- XP JOURNAL*/

.xp-journal-section {
  height: 310px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.5rem 1.5rem 1rem;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.xp-journal-scroll {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.xp-journal-scroll::-webkit-scrollbar {
  width: 6px;
}
.xp-journal-scroll::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}








/*============================ QUIZ ============================*/



.quiz-card {
      max-width: 800px;
      margin: auto;
      background: #fffdfb;
      border-radius: 16px;
      padding: 2rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 2rem;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .quiz-card.fade-in {
      opacity: 0;
      transform: translateY(20px);
    }

    .quiz-img {
      max-width: 150px;
      height: auto;
      flex-shrink: 0;
    }

    .quiz-content {
      flex-grow: 1;
    }

    .quiz-progressbar {
      
      max-width: 75%;
      height: 12px;
      background-color: #eaeaea;
      border-radius: 999px;
      overflow: hidden;
      margin-top: 1rem;
    }
    .quiz-progressbar-fill {
      height: 100%;
      background-color: #26a67d;
      width: 0%;
      transition: width 0.3s ease;
    }

#quiz-result {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 65vh;
  padding: 3rem 1rem 4rem;
  text-align: center;
}

.result-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.result-wrapper:hover {
  transform: scale(1.02);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.result-name {
  font-size: 2rem;
  color: #1b1f40;
}

.result-icon {
  width: 100px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.result-icon:hover {
  transform: scale(1.08);
}



@media (max-width: 768px) {
  .quiz-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .quiz-img {
    max-width: 120px;
    margin: 0 auto;
  }

  .quiz-progressbar {
    max-width: 100%;
  }

  #quiz-options button {
    width: 100% !important;
  }
}




/*============================ 🦶 FOOTER ============================*/
footer {
  background-color: var(--card, #f3ede5);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #1b1f40;
  border-top: 2px solid var(--shadow,#e0d8ce);
}

footer a {
  color: #1b1f40;
  margin: 0 0.5rem;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 📱 RESPONSIV DESIGN */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }

  .brain-container {
  margin-top: 5rem;
  margin-bottom: -4rem;
}

}


