@import url('https://fonts.googleapis.com/css2?family=Boldonse&family=Montserrat:ital,wght@0,100..900;1,100..900&family=New+Rocker&family=Pixelify+Sans:wght@400..700&family=Poppins:wght@300;400;500;600&family=Share+Tech&family=Uncial+Antiqua&display=swap');

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #000000;
  overflow: hidden;
}

/* CANVAS BACKGROUND */

#space {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* NAVBAR */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  /* background:rgba(10,10,20,0.7); */
  /* backdrop-filter:blur(6px); */
  /* border-bottom:2px solid #b026ff; */
  /* box-shadow:0 0 15px #b026ff; */
}

/* LEFT */

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  transform: none;
  font-weight: 700;
  color: #ffffff;
  font-family: "Uncial Antiqua", system-ui;
}

/* LINKS */

.nav-links {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  /* text-decoration: none; */
  color: #aaa;
}

/* RIGHT */

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-right a {
  
  color: #aaa;
}

/* BUTTON */

a.parallelogram {
  display: inline-block;
  padding: 6px 16px;
  /* transform: none;  */
  border: 1px solid transparent;
  border-radius: 18px;  
   text-decoration: none;
  transition: all 0.3s ease;
}

a.parallelogram span {
  display: inline-block;
  transform: none; 
}

/* HOVER */

a.parallelogram:hover {
  /* background: #9615ff; */
  color: #fff;
  text-decoration: underline;

}

/* USER MENU */

.user-menu {
  position: relative;
}

/* DROPDOWN */

.dropdown {
  position: absolute;
  top: 10px;
  right: 0;
  background: #0b0016;
  border-radius: 12px;
  border: 1px solid #b026ff;
  list-style: none;
  padding: 8px 0;
  display: none;
  min-width: 220px;
}

.dropdown li {
  padding: 10px 20px;
  color: #ddd;
  transition: 0.25s;
  cursor: pointer;
}

.dropdown li:hover {
  background: #b026ff;
  color: #fff;
}

.user-menu:hover .dropdown {
  display: block;
}



/* DASHBOARD LAYOUT */ 

.hero-section {
  display: flex;
  gap: 30px;
  padding: 30px;
  height: calc(100vh - 90px);
  box-sizing: border-box;
}

/* PANELS */

.panel {
  background: transparent;
  /* border: 1px solid #a020f0; */
  /* backdrop-filter:blur(1px); */
  border-radius: 20px;
  /* box-shadow: 0 0 25px rgba(160, 32, 240, 0.35); */
  padding: 5px;
}

/* LEFT MAIN PANEL */

.main-panel {
  flex: 2;
  display: flex;
  gap: 10px;
}


/* RIGHT PANEL */

.leaderboard-panel {
  flex: 1;
}

.start_card{
  flex: 1;
  background:black;
  /* backdrop-filter: blur(8px); */
  border-radius: 14px;
  overflow: hidden;
  /* box-shadow: 0 0 15px rgba(0,255,255,0.25); */
  border: 1px solid #5b0094;
  text-align: center;
}

img {
  width: 100%;
  /* border-bottom: 1px solid rgba(0,255,255,0.1); */
}



.start_card .card-body .card-title{
  font-family: "Uncial Antiqua", system-ui;
  /* font-family: "Pixelify Sans", sans-serif; */
  font-size: 32px;
  color:#ffffff;

}

.start_card .card-body .score-stars{
  display: flex;
  justify-content:space-around;
}

.start_card .card-body .score-stars p{
  color: #aaa;
}

.start_card .card-body .start_card-footer{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  /* padding: 10px 0; */
  gap: 20px;
}

.start_card .card-body .start_card-footer .start-btn{
  width: 100%;
  margin: 0;
  font-family: "Pixelify Sans", sans-serif;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 18px;
  background:#ffffff;
  color:#8700b8;
  /* box-shadow:0 0 12px #bb46ff; */
  display:inline-block;
  transform: none;
  border:1px solid transparent;
  border-radius: 15px;
  transition:all .3s ease;
  cursor: pointer;
}

.start_card .card-body .start_card-footer .start_card-buttons{
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 10px;
  padding: 0 40px;
  box-sizing: border-box;
}

.start_card .card-body .start_card-footer .Take_Test{
  
  background-color: rgb(191, 15, 255);
  color: #fff;
}

/* buttons hover effect */

/* .start_card .card-body .start_card-footer .start-btn:hover,.start_card .card-body .start_card-footer .Take_Test{
  background: #e16ef3;
  color: #fff;
  box-shadow:0 0 12px #e16ef3;
} */
.start_card .card-body .start_card-footer .start-btn:hover{
  transform: translateY(-3px);
}

.start_card .card-body .start_card-footer .Take_Test:hover{
  transform: translateY(-3px);
}


.progress-line{
  width: calc(100%-60px);
  height:10px;
  background:rgba(255,255,255,0.08);
  margin: auto 30px 0 30px;
  border-radius: 50px;
  overflow:hidden;
  align-self: stretch;
}

.progress-fill{
  height:100%;
  width:20%;
  background:#ac26ff;
  border-radius:50px;
  transition:width 0.4s ease;
}

/* stats card styling */

.stats_card{
  flex: 1;
  max-height: calc(100vh - 180px);
  background:black;
  border-radius: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #5b0094;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Custom Scrollbar */
.stats_card::-webkit-scrollbar {
  width: 8px;
}

.stats_card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.stats_card::-webkit-scrollbar-thumb {
  background: #42006b;
  border-radius: 10px;
}

.stats_card::-webkit-scrollbar-thumb:hover {
  background: #6900a7;
}

/* Stats Sections */

.stats-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.speed-section {
  gap: 6px;
}

.time-section {
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(160, 32, 240, 0.3);
}

.section-title {
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  color: #ffffff;
  /* text-shadow: 0 0 8px #a020f0; */
  margin: 0 0 4px 0;
}

/* Speed Section */

.speed-item {
  
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(160, 32, 240, 0.2);
}



.speed-label {
  color: #ccc;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 12px;
}

.speed-bar-container {
  position: relative;
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.speed-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #b026ff, #ffbcf2);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.speed-value {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-weight: bold;
  font-size: 11px;
  /* text-shadow: 0 0 6px #00f7ff; */
  z-index: 1;
}

/* Time Spent Section */

.time-circles {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin: 8px 0;
}

.time-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.circle-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle-bg {
  fill: none;
  stroke: rgba(180, 80, 255, 0.15);
  stroke-width: 10;
}

.progress-ring-circle {
  fill: none;
  stroke: #e600ff;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 219.8;
  stroke-dashoffset: calc(219.8 - (219.8 * var(--progress) / 60));
  transition: stroke-dashoffset 0.5s ease;
}

.circle-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circle-goal {
  font-size: 9px;
  color: #888;
}

.circle-goal-time {
  font-size: 11px;
  color: #ddd;
  font-weight: 600;
}

.time-label {
  font-size: 11px;
  color: #ffffff;
  font-weight: 600;
}

.time-period {
  font-size: 10px;
  color: #aaa;
}

.overall-time {
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  color: #999;
  font-size: 11px;
  margin-top: 6px;
}

.time-highlight {
  color: #b700ff;
  font-weight: bold;
}

/* bottom stats */

.bottom-stats {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid rgba(160, 32, 240, 0.3);
  padding-top: 12px;
  margin-top: 5px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-divider {
  width: 1px;
  background: rgba(160, 32, 240, 0.3);
  margin: 0 12px;
}

.stat-label {
  font-size: 11px;
  color: #999;
  text-align: center;
}

.stat-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 24px;
  font-weight: bold;
}

.stat-value.positive {
  color: #09ff00;
}

.stat-value.negative {
  color: #ff6b9d;
}

.stat-value .arrow {
  font-size: 18px;
  font-weight: bold;
}

.stat-value .percentage {
  font-size: 28px;
}



/* leaderboard portion */

.leaderboard-title{
  margin-bottom:20px;
  text-align:center;
  font-family: "Uncial Antiqua", system-ui;
  color:#ffffff;

}

.leaderboard{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.leaderboard-header{
  display:grid;
  grid-template-columns:60px 1fr 120px;
  padding:10px 15px;
  font-size:14px;
  color:#888888;
  border-bottom:1px solid #ffffff;
}

.leaderboard-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  cursor: pointer;
}

.leaderboard-item{
  display:grid;
  grid-template-columns:60px 1fr 120px;
  align-items:center;
  padding:12px 15px;
  border:1px solid rgba(160,32,240,0.3);
  border-radius:12px;
  transition:all 0.3s ease;
  background:rgba(15,0,30,0.3);
}

.leaderboard-item:hover{
  transform:translateX(6px);
  border-color:#a200ffb0;
  box-shadow:0 0 15px rgba(176,38,255,0.4);
}

.rank{
  font-weight:bold;
  text-align:center;
  color:#aaa;
}

.gold{
  color:#ffd700;
  text-shadow:0 0 8px #ffd700;
}

.silver{
  color:#c0c0c0;
  text-shadow:0 0 8px #c0c0c0;
}

.bronze{
  color:#cd7f32;
  text-shadow:0 0 8px #cd7f32;
}

.user-name{
  color:#ddd;
}

.user-wpm{
  text-align:right;
  font-family: "Pixelify Sans", sans-serif;
  color:#ffffff;
}