/* =========================
   🌐 Dashboard Page Styles
========================= */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

.main-content {
  margin-left: 250px;
  padding: 30px;
  min-height: 100vh;
  background-color: #e9e0ff;
  box-sizing: border-box;
}

/* Header */
.main-content header {
  display: flex;
  justify-content: left;
  align-items: center;
}

.gamified-header {
  font-family: 'Bungee', cursive;
  font-size: 40px;
  color: #3d2e91;
  text-align: center;
  text-shadow: 0 0 3px #9a8cfc, 0 0 6px #e9e0ff;

}

.date-text {
  font-size: 18px;
  color: rgba(61, 46, 145, 0.4); /* mas translucent violet */
  margin-left: 60px;
  text-align: left;
  font-family: 'Fredoka One', cursive;
  margin-bottom: 50px;
}


/* Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}

/* LEFT (Calendar - Gamified) */
.left-container {
  background: #ffffff;
  border-radius: 16px;
  border: 3px solid #9a8cfc;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12), inset 0 0 8px rgba(154,140,252,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 757px;          
  font-family: 'Bungee', cursive;
}

.left-container:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.2), inset 0 0 12px rgba(154,140,252,0.3);
}

/* Calendar Title */
.calendar-title {
  font-family: 'Baloo 2', cursive;
  font-size: 18px;
  color: #3d2e91;
  text-align: center;
  margin: 10px 0;
  padding: 6px 14px;
  border: 2px solid #9a8cfc;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1), inset 0 0 6px rgba(154,140,252,0.2);
}

.left-container i.fas.fa-calendar-alt {
  font-size: 24px;
  color: #9a8cfc; 
  margin-bottom: 8px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #3d2e91;
  margin: 15px 0;
  width: 100%;
  max-width: 600px;
}

.calendar-header button {
  background: #9a8cfc;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.calendar-header button:hover {
  background: #7f6df0;
  transform: scale(1.05);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px; 
  width: 100%;
  max-width: 780px; 
  margin-top: 10px;
  text-align: center;
}

.calendar-grid .date {
  padding: 22px; 
  border-radius: 15px;
  background: #f3f0ff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  font-weight: bold;
  font-size: 17px; 
  color: #3d2e91;
  cursor: pointer;
}

.calendar-grid .date:hover {
  background: #9a8cfc;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 7px 16px rgba(0,0,0,0.2);
}

.calendar-grid .today {
  background: #7f6df0;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(127,109,240,0.6);
  font-size: 18px;
}

.calendar-grid .day {
  font-weight: bold;
  padding: 5px 0;
  border-radius: 8px;
  color: #3d2e91;
  background: linear-gradient(135deg, #e9e0ff, #9a8cfc);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-transform: uppercase;
  font-size: 16px;
}

/* RIGHT → streak, badges, tasks, XP, quest */
.right-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-container .card {
  background: #fff;
  border: 3px solid #9a8cfc;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  font-family: 'Baloo 2', cursive;
}

.right-container .card:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.right-container .card i {
  font-size: 28px;
  margin-bottom: 8px;
  color: #9a8cfc;
}

.right-container .card h3 {
  margin: 0;
  margin-bottom: 8px;
  font-size: 18px;
  color: #3d2e91;
}

.right-container .card p {
  font-size: 16px;
  font-weight: bold;
  color: #7f6df0;
}

/* Task List */
.task-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  text-align: left;
  width: 100%;
  height: 125px;

  /* Scroll settings */
  overflow-y: auto;
  scrollbar-width: thin;           /* Firefox */
  scrollbar-color: #7b5cff #f3f0ff; /* Firefox: thumb color + track color */
}

/* Chrome, Edge, Safari */
.task-list::-webkit-scrollbar {
  width: 8px;
}

.task-list::-webkit-scrollbar-track {
  background: #f3f0ff;
  border-radius: 6px;
}

.task-list::-webkit-scrollbar-thumb {
  background-color: #7b5cff;
  border-radius: 6px;
  border: 2px solid #f3f0ff;
}

.task-list li {
  background: #f3f0ff;
  padding: 8px 12px;
  margin: 5px 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #3d2e91;
}
.task-list li:hover {
  background: #d9ccff;
}


/* XP Progress Bar */
.xp-bar {
  width: 100%;
  background: #f3f0ff;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  height: 25px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #9a8cfc, #7f6df0);
  text-align: center;
  color: white;
  font-size: 14px;
  font-weight: bold;
  line-height: 25px;
}

/* 🔹 XP Level Text */
#xpLevel {
  font-size: 16px;
  font-weight: bold;
  color: #3d2e91;
  margin-bottom: 5px;
}

/* 📌 NEW: XP + Streak + Badges Layout */
.xp-streak-badges {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.streak-badges-row {
  display: flex;
  gap: 20px;
}

.streak-badges-row .card {
  flex: 1;
}

/* 📌 Task Summary Layout */
.task-summary {
  display: flex;
  gap: 20px;
}

.task-summary .card {
  flex: 1;
}

/* 📌 XP Progress Bar */
/* 🔹 EXP Container */
.exp-container {
  width: 100%;
  height: 150px;
  text-align: center;
  font-family: 'Baloo 2', cursive;
  background: #fff;
  border: 3px solid #9a8cfc;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.exp-container:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

#levelLabel {
margin-top: 20px;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
  color: #3d2e91;
}

.exp-bar {
  width: 100%;
  height: 25px;
  background: #f3f0ff;
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0;
  border: 2px solid #9a8cfc;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}

#expFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5a3ec8, #8e6cf0);
  transition: width 0.3s ease-in-out;
}

#expText {
  font-size: 14px;
  font-weight: bold;
  color: #7f6df0;
}


