@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

body{
  overflow-x:hidden;
  scroll-behavior:smooth;
  background:
  radial-gradient(circle at top left,#1d4ed8,#020617 40%),
  radial-gradient(circle at bottom right,#7c3aed,#020617 35%);

  min-height:100vh;

  font-family:'Poppins',sans-serif;
}

/* LOGIN PAGE */

.login-page{
  width:100%;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  background:linear-gradient(135deg,#07152f,#142c67);
  padding:20px;
}

.login-container{
  width:100%;
  max-width:1200px;
  display:grid;
  grid-template-columns:1fr 420px;
  gap:40px;
  align-items:center;
}

.login-left h1{
  color:white;
  font-size:72px;
  line-height:1;
}

.login-left h2{
  color:#8ea7ff;
  margin-top:10px;
  font-size:34px;
}

.login-left p{
  margin-top:25px;
  color:#d6e0ff;
  line-height:1.8;
  max-width:500px;
  font-size:17px;
}

/* LOGIN CARD */

.login-card{
  background:rgba(255,255,255,0.1);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:30px;
  padding:40px;
  box-shadow:0 20px 50px rgba(0,0,0,0.3);
}

.login-card h2{
  color:white;
  margin-bottom:30px;
  font-size:30px;
}

.login-card input{
  width:100%;
  padding:16px;
  border:none;
  border-radius:16px;
  margin-bottom:18px;
  outline:none;
  font-size:15px;
}

.login-card button{
  width:100%;
  padding:16px;
  border:none;
  border-radius:16px;
  background:linear-gradient(90deg,#5b5ef7,#8f6fff);
  color:white;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.login-card button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(91,94,247,0.3);
}

/* DASHBOARD */

#dashboardPage{
  padding:40px;
}

.dashboard-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px;
}

.dashboard-header h1{
  color:#16213e;
  font-size:40px;
}

.dashboard-header button{
  border:none;
  padding:14px 24px;
  border-radius:14px;
  background:#16213e;
  color:white;
  cursor:pointer;
  font-weight:600;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:25px;
}

.card{
  background:white;
  border-radius:28px;
  padding:30px;
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
  border:1px solid #edf0f7;
  transition:0.3s;
}

.card:hover{
  transform:translateY(-5px);
}

.card h3{
  color:#7a859d;
  margin-bottom:15px;
  font-size:16px;
}

.card h2{
  font-size:42px;
  color:#16213e;
}

/* RESPONSIVE */

@media(max-width:900px){

  .login-container{
    grid-template-columns:1fr;
  }

  .login-left h1{
    font-size:48px;
  }

  .dashboard-header{
    flex-direction:column;
    align-items:flex-start;
    gap:15px;
  }

}

/* SIDEBAR */

.sidebar{
  width:280px;
  height:100vh;

  background:rgba(255,255,255,0.08);

  backdrop-filter:blur(20px);

  border-right:1px solid rgba(255,255,255,0.08);

  position:fixed;
  left:0;
  top:0;

  padding:30px 20px;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  box-shadow:0 8px 32px rgba(0,0,0,0.2);
}

/* LOGO */

.sidebar-logo h1{
  color:white;
  font-size:30px;
  line-height:1;
}

.sidebar-logo p{
  color:#8ea7ff;
  margin-top:10px;
  font-size:15px;
  letter-spacing:2px;
}

/* MENU */

.sidebar-menu{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:40px;
}

.menu-item{
  text-decoration:none;
  color:#d7e1ff;
  padding:16px 18px;
  border-radius:18px;
  transition:0.3s;
  font-size:15px;
  font-weight:500;
}

.menu-item:hover{
  background:rgba(255,255,255,0.08);
}

.menu-item.active{
  background:linear-gradient(
    90deg,
    #5b5ef7,
    #8f6fff
  );

  color:white;

  box-shadow:0 10px 20px rgba(91,94,247,0.3);
}

/* PROFILE */

.sidebar-profile{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:24px;
  padding:18px;
  display:flex;
  align-items:center;
  gap:15px;
}

.profile-avatar{
  width:50px;
  height:50px;
  border-radius:50%;
  background:linear-gradient(
    135deg,
    #5b5ef7,
    #8f6fff
  );

  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-weight:bold;
}

.sidebar-profile h3{
  color:white;
  font-size:16px;
}

.sidebar-profile p{
  color:#b7c7ef;
  font-size:13px;
  margin-top:3px;
}

/* MAIN */

.main-content{
  margin-left:280px;
  width:calc(100% - 280px);
  min-height:100vh;
  padding:35px;
  padding-bottom:80px;

  overflow-x:hidden;
}
.dashboard-grid{

  display:grid;

  grid-template-columns:1fr;

  gap:25px;

  width:100%;

}

.activity-card{

  width:100%;

  max-width:100%;

  overflow:hidden;

}



/* TOPBAR */

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.topbar h1{
  color:#16213e;
  font-size:42px;
}

.topbar p{
  color:#7a859d;
  margin-top:5px;
}

.logout-btn{
  border:none;
  padding:14px 24px;
  border-radius:16px;
  background:#16213e;
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.logout-btn:hover{
  transform:translateY(-2px);
}

/* STATISTIC */

.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:25px;
  margin-top:40px;
}

.stat-card{
  background:rgba(255,255,255,0.12);

  backdrop-filter:blur(18px);

  border-radius:28px;
  padding:28px;

  border:1px solid rgba(255,255,255,0.08);

  box-shadow:0 8px 32px rgba(0,0,0,0.15);

  transition:0.3s;

  position:relative;
  overflow:hidden;
}

.stat-card::before{
  content:'';
  position:absolute;
  width:120px;
  height:120px;
  background:rgba(91,94,247,0.08);
  border-radius:50%;
  top:-40px;
  right:-40px;
}

.stat-card:hover{
  transform:translateY(-6px);
}

.stat-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.stat-top span{
  color:#7a859d;
  font-size:15px;
  font-weight:500;
}

.stat-icon{
  width:52px;
  height:52px;
  border-radius:18px;
  background:linear-gradient(
    135deg,
    #5b5ef7,
    #8f6fff
  );

  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
}

.stat-card h2{
  margin-top:20px;
  font-size:42px;
  color:#16213e;
}

.stat-card p{
  margin-top:10px;
  color:#7a859d;
}

/* MAIN PANELS */

.main-panels{
  display:grid;
  grid-template-columns:2fr 1.2fr;
  gap:25px;
  margin-top:30px;
}

/* BIG PANEL */

.big-panel{

  background:rgba(255,255,255,0.10);

  backdrop-filter:blur(18px);

  border-radius:30px;

  padding:30px;

  border:1px solid rgba(255,255,255,0.08);

  box-shadow:0 8px 32px rgba(0,0,0,0.15);

  width:100%;

  overflow:hidden;

}

/* HEADER */

.panel-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px;
}

.panel-header h2{
  color:white;
  font-size:24px;
  display:flex;
  align-items:center;
  gap:10px;
}
}

.panel-header span{
  background:#eef2ff;
  color:#5b5ef7;
  padding:10px 16px;
  border-radius:14px;
  font-size:13px;
  font-weight:600;
}

/* TABLE */

.leaderboard-table{
  width:100%;
  border-collapse:collapse;
}

.leaderboard-table th{
  text-align:left;
  padding-bottom:15px;
  color:#7a859d;
  font-size:14px;
}

.leaderboard-table td{
  padding:18px 0;
  border-top:1px solid #eef1f7;
  color:#16213e;
  font-weight:500;
}

/* ACTIVITY */

.activity-list{

  display:flex;
  flex-direction:column;

  gap:14px;

  width:100%;

  max-height:400px;

  overflow-y:auto;

  padding-right:5px;

}

.activity-item{

  display:flex;

  align-items:flex-start;

  gap:12px;

  background:rgba(255,255,255,0.05);

  border:1px solid rgba(255,255,255,0.08);

  padding:14px;

  border-radius:16px;

  width:100%;

}

.activity-dot{

  width:12px;
  height:12px;

  border-radius:50%;

  background:#7c5cff;

  margin-top:8px;

  flex-shrink:0;

  box-shadow:0 0 12px rgba(124,92,255,0.7);

}

.activity-item h4{

  color:white;

  font-size:15px;

  font-weight:700;

  margin:0;

}

.activity-item p{

  color:#94a3b8;

  margin-top:4px;

  font-size:13px;

}

/* RESPONSIVE */

@media(max-width:1100px){

  .main-panels{
    grid-template-columns:1fr;
  }

}

/* EVENT HERO */

.event-hero{
  margin-top:35px;
  background:linear-gradient(
    135deg,
    #091a3a,
    #132b61
  );

  border-radius:35px;
  padding:40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  position:relative;
  overflow:hidden;
}

/* GLOW */

.event-hero::before{
  content:'';
  position:absolute;
  width:300px;
  height:300px;
  background:rgba(91,94,247,0.18);
  border-radius:50%;
  right:-100px;
  top:-100px;
}

/* LEFT */

.event-left{
  position:relative;
  z-index:2;
}

.live-badge{
  display:inline-block;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.15);
  padding:10px 18px;
  border-radius:18px;
  color:#c7d7ff;
  font-size:13px;
  margin-bottom:25px;
}

.event-left h1{
  color:white;
  font-size:48px;
  line-height:1.1;
}

.event-left h2{
  color:#8ea7ff;
  margin-top:10px;
  font-size:30px;
}

.event-left p{
  margin-top:20px;
  color:#d4defd;
  max-width:550px;
  line-height:1.7;
}

/* RIGHT */

.event-right{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  position:relative;
  z-index:2;
}

.hero-card{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:24px;
  padding:22px;
  min-width:220px;
}

.hero-card span{
  color:#b7c7ef;
  font-size:13px;
}

.hero-card h3{
  margin-top:10px;
  color:white;
  font-size:28px;
}

.status-live{
  color:#66ff99 !important;
}

/* RESPONSIVE */

@media(max-width:1100px){

  .event-hero{
    flex-direction:column;
    align-items:flex-start;
  }

  .event-left h1{
    font-size:38px;
  }

}

/* QUICK ACTION */

.quick-action{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:25px;
  margin-top:30px;
}

.action-card{
  background:rgba(255,255,255,0.10);

  backdrop-filter:blur(18px);

  border-radius:30px;

  padding:30px;

  border:1px solid rgba(255,255,255,0.08);

  box-shadow:0 8px 32px rgba(0,0,0,0.15);

  transition:0.3s;
}

.action-card:hover{
  transform:translateY(-6px);
}

.action-icon{
  width:70px;
  height:70px;
  border-radius:24px;
  background:linear-gradient(
    135deg,
    #5b5ef7,
    #8f6fff
  );

  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
}

.action-card h3{
  margin-top:25px;
  color:#16213e;
  font-size:22px;
}

.action-card p{
  margin-top:12px;
  color:#7a859d;
  line-height:1.6;
}

.action-card button{
  margin-top:25px;
  width:100%;
  border:none;
  padding:15px;
  border-radius:18px;
  background:#16213e;
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.action-card button:hover{
  background:#5b5ef7;
}


/* LIVE MATCH */

.live-match-panel{
  margin-top:30px;

  background:rgba(255,255,255,0.10);

  backdrop-filter:blur(18px);

  border-radius:35px;

  padding:35px;

  border:1px solid rgba(255,255,255,0.08);

  box-shadow:0 8px 32px rgba(0,0,0,0.15);
}

/* HEADER */

.match-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px;
}

.live-now{
  display:inline-block;
  background:#ffe5e5;
  color:#ff3b3b;
  padding:10px 16px;
  border-radius:16px;
  font-size:13px;
  font-weight:700;
  margin-bottom:15px;
  animation:pulse 1.5s infinite;
}

@keyframes pulse{

  0%{
    opacity:1;
  }

  50%{
    opacity:0.5;
  }

  100%{
    opacity:1;
  }

}

.match-header h2{
  color:#16213e;
  font-size:28px;
}

.match-status{
  background:#eef2ff;
  color:#5b5ef7;
  padding:12px 18px;
  border-radius:16px;
  font-weight:600;
}

/* MATCH LIST */

.match-list{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* ITEM */

.match-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px;
  border-radius:24px;
  background:#f8faff;
  transition:0.3s;
}

.match-item:hover{
  transform:translateY(-4px);
}

/* PLAYER */

.player-info{
  display:flex;
  align-items:center;
  gap:18px;
}

.player-avatar{
  width:70px;
  height:70px;
  border-radius:22px;
  background:linear-gradient(
    135deg,
    #5b5ef7,
    #8f6fff
  );

  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:22px;
  font-weight:700;
}

.player-info h3{
  color:#16213e;
  font-size:20px;
}

.player-info p{
  margin-top:5px;
  color:#7a859d;
}

/* SCORE RESULT */

.score-result{
  padding:16px 24px;
  border-radius:18px;
  color:white;
  font-weight:700;
  font-size:18px;
}

.score-result.head{
  background:#28c76f;
}

.score-result.body{
  background:#ff9f43;
}

/* RESPONSIVE */

@media(max-width:900px){

  .match-item{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
  }

}


/* MENU ICON */

.menu-item{
  display:flex;
  align-items:center;
  gap:16px;
}

.menu-item i{
  width:22px;
  font-size:18px;
}

.menu-item span{
  flex:1;
}

/* FIX TEXT GLASSMORPHISM */

/* TEXT GLOBAL */

.stat-card h2,
.stat-card h3,
.big-panel h2,
.big-panel h3,
.live-match-panel h2,
.live-match-panel h3,
.action-card h3,
.player-info h3,
.panel-header h2,
.topbar h1{
  color:white !important;
}

/* PARAGRAF */

.stat-card p,
.action-card p,
.player-info p,
.activity-item p,
.topbar p,
.leaderboard-table td,
.leaderboard-table th{
  color:#cbd5e1 !important;
}

/* TABLE */

.leaderboard-table td{
  border-top:1px solid rgba(255,255,255,0.08);
}

/* CARD ICON */

.stat-top span{
  color:#dbe4ff !important;
}

/* ACTION BUTTON */

.action-card button{
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.08);
}

.action-card button:hover{
  background:#5b5ef7;
}

/* MATCH ITEM */

.match-item{
  background:rgba(255,255,255,0.05);
}

/* PANEL HEADER BADGE */

.panel-header span{
  background:rgba(255,255,255,0.08);
  color:#dbe4ff;
}

/* HERO CARD */

.hero-card{
  background:rgba(255,255,255,0.08);
}

/* FIX ICON BOX */

.action-icon,
.stat-icon{
  box-shadow:0 8px 20px rgba(91,94,247,0.35);
}

/* =========================
PREMIUM ANIMATION
========================= */

/* FADE UP */

@keyframes fadeUp{

  from{
    opacity:0;
    transform:translateY(40px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }

}

/* FLOAT */

@keyframes floating{

  0%{
    transform:translateY(0px);
  }

  50%{
    transform:translateY(-6px);
  }

  100%{
    transform:translateY(0px);
  }

}

/* SIDEBAR */

.sidebar{
  animation:fadeUp 0.8s ease;
}

/* HERO */

.event-hero{
  animation:fadeUp 1s ease;
}

/* STAT CARD */

.stat-card{
  animation:fadeUp 1s ease;
}

/* BIG PANEL */

.big-panel{
  animation:fadeUp 1.2s ease;
}

/* QUICK ACTION */

.action-card{
  animation:fadeUp 1.4s ease;
}

/* LIVE MATCH */

.live-match-panel{
  animation:fadeUp 1.6s ease;
}

/* FLOAT EFFECT */

.stat-card:hover,
.action-card:hover,
.big-panel:hover,
.live-match-panel:hover{
  transform:translateY(-8px);
}

/* SIDEBAR MENU HOVER */

.menu-item{
  transition:0.3s;
}

.menu-item:hover{
  transform:translateX(8px);
}

/* BUTTON EFFECT */

button{
  transition:0.3s;
}

button:hover{
  transform:scale(1.03);
}

/* LIVE BADGE */

.live-badge{
  animation:floating 3s ease-in-out infinite;
}

/* PLAYER AVATAR */

.player-avatar{
  animation:floating 4s ease-in-out infinite;
}


/* INPUT SCORE */

.input-score-section{
  margin-top:35px;
}

.input-header{
  margin-bottom:25px;
}

.input-header h2{
  color:white;
  font-size:32px;
  margin-top:15px;
}

/* FORM */

.score-form{
  background:rgba(255,255,255,0.10);

  backdrop-filter:blur(18px);

  border-radius:35px;

  padding:35px;

  border:1px solid rgba(255,255,255,0.08);

  box-shadow:0 8px 32px rgba(0,0,0,0.15);

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(220px,1fr));

  gap:25px;
}

/* GROUP */

.form-group{
  display:flex;
  flex-direction:column;
}

.form-group label{
  color:#dbe4ff;
  margin-bottom:12px;
  font-size:15px;
}

/* INPUT */

.form-group select,
.form-group input{
  height:58px;

  border:none;

  border-radius:18px;

  padding:0 18px;

  background:rgba(255,255,255,0.08);

  color:white;

  font-size:16px;

  outline:none;

  border:1px solid rgba(255,255,255,0.08);
}

/* BUTTON */

.submit-score-btn{
  height:58px;

  border:none;

  border-radius:18px;

  background:linear-gradient(
    135deg,
    #5b5ef7,
    #8f6fff
  );

  color:white;

  font-weight:700;

  cursor:pointer;

  margin-top:28px;

  box-shadow:0 8px 20px rgba(91,94,247,0.35);
}

/* DROPDOWN OPTION */

select option{
  background:#1e293b;
  color:white;
}


.sidebar-profile{

  margin-top:auto;

  display:flex;
  align-items:center;
  gap:14px;

  padding:20px;

  background:rgba(255,255,255,.05);

  border-radius:20px;

}

.profile-avatar{

  width:50px;
  height:50px;

  border-radius:50%;

  background:linear-gradient(
    135deg,
    #6366f1,
    #8b5cf6
  );

  display:flex;
  align-items:center;
  justify-content:center;

  font-weight:700;
  font-size:20px;

  color:white;

}

.sidebar-profile h3{

  color:white;
  font-size:16px;

}

.sidebar-profile p{

  color:#94a3b8;
  font-size:13px;

}


.ranking-grid{

  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:30px;

}

.ranking-card{

  background:#0f172a;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:20px;
  padding:25px;

}

.ranking-title{

  font-size:22px;
  font-weight:700;
  margin-bottom:20px;
  color:#facc15;

}

.ranking-item{

  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);

}

.ranking-item h3{

  color:white;
  font-size:16px;

}

.ranking-item span{

  color:#38bdf8;
  font-weight:700;
  font-size:18px;

}

@media(max-width:768px){

  .ranking-grid{

    grid-template-columns:1fr;

  }

}