
    *{
      margin:0;
      padding:0;
      box-sizing:border-box;
      font-family:'Poppins',sans-serif;
    }

    body{
      background: radial-gradient(circle at top,#101a5a,#050b2e 70%);
      min-height:100vh;
      color:white;
    }
    .logo-img{
  width:40px;
  height:40px;
  object-fit:contain;
  margin-right:10px;
}
    /* NAVBAR */

    .navbar{
      width:100%;
      padding:20px 8%;
      display:flex;
      justify-content:space-between;
      align-items:center;
      border-bottom:1px solid rgba(255,255,255,0.08);
      background:rgba(0,0,0,0.15);
      backdrop-filter:blur(10px);
    }
    

    .logo{
      display:flex;
      align-items:center;
      gap:10px;
      font-size:22px;
      font-weight:600;
    }

    .logo i{
      color:#4ea3ff;
    }

    .nav-btns{
      display:flex;
      gap:15px;

  white-space: nowrap;

    }

    .btn{
      padding:5px 22px;
      border:none;
      border-radius:30px;
      cursor:pointer;
      color:white;
      transition:0.3s;
      font-weight:500;
        
    }


    .login-submit {
  width:100%;
  padding:14px;
  border:none;
  border-radius:30px;
  background:linear-gradient(90deg,#4ea3ff,#9b5cff);
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.login-submit:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

    .signup-btn,
    .start-btn{
      padding-top: 15px;
      background:linear-gradient(90deg,#4ea3ff,#9b5cff);
      box-shadow:0 0 15px rgba(111,128,255,0.5);
    }
    .start-btn {
  margin-top:35px;
  padding:15px 40px;
  font-size:17px;
  border:none;
  border-radius:30px;
  cursor:pointer;
  transition:0.3s;
}

.start-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

    .btn:hover{
      transform:translateY(-2px);
      opacity:0.9;
    }

    /* HERO */

    .hero{
      width:100%;
      text-align:center;
      padding:80px 20px;
    }

    .hero h1{
      font-size:60px;
      margin-bottom:15px;
    }

    .hero p{
      color:#c8c8c8;
      max-width:700px;
      margin:auto;
      line-height:1.7;
    }

    .hero .start-btn{
      margin-top:35px;
      padding:15px 40px;
      font-size:17px;
    }

    /* ICON BOX */

    .icon-box{
      width:500px;
      max-width:90%;
      margin:50px auto;
      background:#0d153f;
      border:1px solid rgba(255,255,255,0.08);
      border-radius:20px;
      padding:40px;
      display:flex;
      justify-content:center;
      gap:50px;
      font-size:55px;
      color:#8d68ff;
      box-shadow:0 0 30px rgba(0,0,0,0.3);
    }

    /* STATS */

    .stats{
      width:90%;
      max-width:1100px;
      margin:50px auto;
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
      gap:25px;
    }

    .card{
      background:#0d153f;
      border-radius:18px;
      padding:35px;
      border:1px solid rgba(255,255,255,0.08);
      text-align:center;
      transition:0.3s;
      box-shadow:0 0 20px rgba(0,0,0,0.25);
    }

    .card:hover{
      transform:translateY(-5px);
      box-shadow:0 0 25px rgba(90,130,255,0.2);
    }

    .card i{
      font-size:28px;
      color:#4ea3ff;
      margin-bottom:15px;
    }

    .card h2{
      font-size:34px;
    }

    .card p{
      margin-top:10px;
      color:#c4c4c4;
    }

    /* LOGIN PAGE */

    .login-container{
      width:100%;
      min-height:100vh;
      display:flex;
      justify-content:center;
      align-items:center;
      padding:20px;
    }

    .login-box{
      width:400px;
      background:#0d153f;
      border-radius:20px;
      padding:40px;
      border:1px solid rgba(255,255,255,0.08);
      box-shadow:0 0 30px rgba(0,0,0,0.3);
    }

    .login-box h2{
      text-align:center;
      margin-bottom:30px;
    }

    .input-box{
      margin-bottom:20px;
    }

    .input-box label{
      display:block;
      margin-bottom:8px;
      font-size:14px;
    }

    .input-box input{
      width:100%;
      padding:14px;
      border-radius:12px;
      border:none;
      outline:none;
      background:#121d52;
      color:white;
      border:1px solid rgba(255,255,255,0.05);
    }

  

    .login-submit{
      padding:14px;
      border:none;
      border-radius:30px;
      background:linear-gradient(90deg,#4ea3ff,#9b5cff);
      color:white;
      font-weight:600;
      cursor:pointer;
    }
    /* FORM BUTTON ONLY */

.form-btn{
  width:100%;
}

    /* TYPING TEST */

    .typing-section{
      width:90%;
      max-width:1000px;
      margin:60px auto;
    }

    .top-stats{
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
      gap:20px;
      margin-bottom:30px;
    }

    .mini-card{
      background:#0d153f;
      border-radius:16px;
      padding:25px;
      border:1px solid rgba(255,255,255,0.08);
    }

    .mini-card span{
      color:#c4c4c4;
      font-size:14px;
    }

    .mini-card h2{
      margin-top:10px;
      font-size:35px;
    }

    .typing-box{
      background:#0d153f;
      padding:30px;
      border-radius:20px;
      border:1px solid rgba(255,255,255,0.08);
    }

    .typing-text{
      color:#d4d4d4;
      line-height:2;
      margin-bottom:25px;
    }

    textarea{
      width:100%;
      height:120px;
      border-radius:15px;
      padding:20px;
      background:#121d52;
      border:2px solid #4ea3ff;
      color:white;
      resize:none;
      outline:none;
      font-size:16px;
    }

    .restart-btn{
      margin-top:20px;
      padding:12px 25px;
      border:none;
      border-radius:30px;
      background:#1b265f;
      color:white;
      cursor:pointer;
    }
.submit-btn {
  margin-top:20px;
  padding:12px 25px;
  border:none;
  border-radius:30px;
  background:linear-gradient(90deg,#4ea3ff,#9b5cff);
  color:white;
  cursor:pointer;
  font-weight:600;
  transition:0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
    .keyboard{
      margin:40px auto;
      text-align:center;
      font-size:80px;
      color:#4ea3ff;
    }
    .logout-icon {
  position: fixed;
  top: 18px;
  right: 20px;

  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(13,21,63,0.6);
  color: #4ea3ff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: 0.3s ease;
  font-size: 18px;
  z-index: 9999;
}
.logout-icon:hover {
  background: #4ea3ff;
  color: white;
  transform: translateY(-2px) rotate(-10deg);
  box-shadow: 0 0 15px rgba(78,163,255,0.5);
}
 /* LEADERBOARD */
  .leaderboard-section{ 
  width:90%; 
  max-width:1000px; 
  margin:60px auto;
 } 
 .leaderboard-section h1{
   text-align:center;
    margin-bottom:30px;
     font-size:45px; 
    } 
    .filter-box{
       display:flex;
        gap:20px;
         margin-bottom:25px;
          flex-wrap:wrap; 
        } 
        .filter-box input, .filter-box select{ 
          padding:14px;
           border:none; 
           border-radius:12px; 
           background:#121d52;
            color:white; 
            outline:none;
            min-width:220px; 
          } 
          .table-container{ 
            overflow-x:auto;
           } 
           table{ 
            width:100%; 
            border-collapse:collapse;
             background:#0d153f; 
             border-radius:20px;
              overflow:hidden;
             } 
             th{ 
              background:#4ea3ff; 
              padding:18px;
             }
               td{
                 padding:18px; 
                text-align:center;
                 border-bottom:1px solid rgba(255,255,255,0.08); 
                } 
                tr:hover{ 
                  background:#18245f; 
                  transition:0.3s; 
                }
  .typing-text{ 
    min-height:120px;
     transition:0.3s ease; 
    }
  
/* =========================
   RESPONSIVENESS
========================= */

/* LARGE TABLETS */
@media (max-width: 992px){

  .hero h1{
    font-size:48px;
  }

  .hero p{
    font-size:15px;
    padding:0 10px;
  }

  .navbar{
    padding:18px 5%;
  }

  .logo{
    font-size:18px;
  }

  .icon-box{
    width:90%;
    gap:30px;
    font-size:45px;
    padding:30px;
  }

  .card{
    padding:28px;
  }

  .card h2{
    font-size:28px;
  }

  .typing-box{
    padding:25px;
  }

  .leaderboard-section h1{
    font-size:38px;
  }

}

/* TABLETS */
@media (max-width: 768px){

  .navbar{
    flex-direction:column;
    gap:15px;
    padding:18px 20px;
    text-align:center;
  }

  .nav-btns{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
  }

  .btn{
    padding:10px 18px;
    font-size:14px;
  }

  .hero{
    padding:60px 20px;
  }

  .hero h1{
    font-size:36px;
    line-height:1.3;
  }

  .hero p{
    font-size:14px;
    line-height:1.6;
  }

  .start-btn{
    width:100%;
    max-width:300px;
  }

  .icon-box{
    flex-wrap:wrap;
    gap:20px;
    font-size:38px;
    padding:25px;
  }

  .stats{
    grid-template-columns:1fr;
  }

  .top-stats{
    grid-template-columns:1fr 1fr;
  }

  .login-box{
    width:100%;
    padding:30px 20px;
  }

  textarea{
    height:100px;
    font-size:15px;
    padding:15px;
  }

  .typing-box{
    padding:20px;
  }

  .typing-text{
    font-size:15px;
    line-height:1.8;
  }

  .keyboard{
    font-size:60px;
  }

  .leaderboard-section h1{
    font-size:32px;
  }

  th,
  td{
    padding:14px;
    font-size:14px;
  }

  .filter-box{
    flex-direction:column;
  }

  .filter-box input,
  .filter-box select{
    width:100%;
    min-width:100%;
  }

  .logout-icon{
    width:40px;
    height:40px;
    font-size:16px;
    top:15px;
    right:15px;
  }

}

/* MOBILE DEVICES */
@media (max-width: 480px){

  body{
    overflow-x:hidden;
  }

  .navbar{
    padding:15px;
  }

  .logo{
    font-size:16px;
    flex-direction:column;
    gap:5px;
  }

  .logo-img{
    width:35px;
    height:35px;
  }

  .hero{
    padding:45px 15px;
  }

  .hero h1{
    font-size:28px;
  }

  .hero p{
    font-size:13px;
  }

  .btn{
    width:100%;
    text-align:center;
  }

  .start-btn{
    font-size:15px;
    padding:13px 20px;
  }

  .icon-box{
    font-size:30px;
    gap:15px;
    padding:20px;
  }

  .card{
    padding:22px;
  }

  .card h2{
    font-size:24px;
  }

  .mini-card{
    padding:20px;
  }

  .mini-card h2{
    font-size:28px;
  }

  .top-stats{
    grid-template-columns:1fr;
  }

  .typing-section{
    width:95%;
  }

  .typing-box{
    padding:18px;
  }

  .typing-text{
    font-size:14px;
    line-height:1.7;
  }

  textarea{
    height:90px;
    font-size:14px;
  }

  .restart-btn,
  .submit-btn{
    width:100%;
  }

  .keyboard{
    font-size:45px;
  }

  .leaderboard-section h1{
    font-size:26px;
  }

  table{
    min-width:600px;
  }

  th,
  td{
    font-size:13px;
    padding:12px;
  }

  .logout-icon{
    width:38px;
    height:38px;
    font-size:14px;
  }

}
