body {
  font-family: Arial;
  background: #0f172a;
  color: white;
  text-align: center;
}
input, button {
  padding: 10px;
  margin: 10px;
}
.navbar{

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

background:#020617;

padding:15px;

border-bottom:2px solid #22c55e;

}

.navbar a{

color:white;
margin:0 15px;
text-decoration:none;

}

.navbar a:hover{

color:#22c55e;

}

.username{

margin-right:15px;

font-weight:bold;

}

.logo{

font-weight:bold;

color:#22c55e;

}

.nav-right button{

background:#dc2626;

padding:8px 12px;

border:none;

color:white;

cursor:pointer;

}

.nav-right button:hover{

background:#b91c1c;

}
.player-stats{

display:inline-block;
margin-right:20px;

}

.xp{

margin-left:10px;
color:#22c55e;

}

.rank{

margin-left:10px;
color:#facc15;

font-weight:bold;

}

.progress-bar{

width:150px;
height:8px;
background:#1e293b;

border-radius:5px;

margin-top:5px;

}

.progress-fill{

height:100%;
background:#22c55e;

border-radius:5px;

}
.badge{

padding:5px 10px;
border-radius:5px;
font-weight:bold;

}

.badge.Beginner{
background:#64748b;
}

.badge.Intermediate{
background:#22c55e;
}

.badge.Advanced{
background:#3b82f6;
}

.badge.Expert{
background:#a855f7;
}

.badge.Elite{
background:#facc15;
color:black;
}

.progress-bar-small{

width:100px;
height:8px;
background:#1e293b;
border-radius:5px;
display:inline-block;
margin-right:5px;

}

.progress-fill-small{

height:100%;
background:#22c55e;
border-radius:5px;

}



/* NAVBAR */

.navbar{

position:sticky;
top:0;

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

padding:12px 30px;

background:rgba(15,23,42,0.85);

backdrop-filter:blur(10px);

border-bottom:1px solid rgba(255,255,255,0.1);

z-index:1000;

}


/* LEFT */

.logo{

font-size:20px;
font-weight:600;

color:#22c55e;

letter-spacing:0.5px;

}


/* CENTER */

.nav-center{

display:flex;
gap:30px;

}

.nav-center a{

text-decoration:none;
color:#e2e8f0;

font-size:15px;

transition:0.2s;

}

.nav-center a:hover{

color:#22c55e;

}


/* RIGHT */

.nav-right{

display:flex;
align-items:center;
gap:20px;

}


/* USER BOX */

.user-box{

display:flex;
flex-direction:column;
align-items:flex-end;

}

.user-name{

font-size:14px;
font-weight:600;
color:#f8fafc;

}

.user-stats{

font-size:12px;
color:#94a3b8;

display:flex;
gap:10px;

}

.rank{

background:#22c55e;
color:#022c22;

padding:2px 6px;
border-radius:4px;

font-weight:600;

}


/* LOGOUT */

.logout-btn{

background:#ef4444;
border:none;

padding:6px 12px;

color:white;
border-radius:6px;

cursor:pointer;

transition:0.2s;

}

.logout-btn:hover{

background:#dc2626;

}

.run-btn{

background:#3b82f6;
color:white;
padding:8px 16px;
border:none;
cursor:pointer;

}

.submit-btn{

background:#22c55e;
color:white;
padding:8px 16px;
border:none;
cursor:pointer;

}

#queryResult{

margin-top:20px;
max-height:300px;
overflow:auto;

background:white;
color:black;

padding:10px;

}
.game-container{

display:flex;

gap:20px;

padding:20px;

}


.game-hud{

width:180px;

background:#020617;

color:white;

padding:15px;

border-radius:10px;

height:fit-content;

position:sticky;

top:80px;

}


.hud-item{

margin-bottom:15px;

}


.hud-label{

display:block;

font-size:12px;

color:#94a3b8;

}


.game-main{

flex:1;

}
/* Result container */

.result-container{

margin-top:20px;
background:#020617;
border-radius:10px;
padding:10px;
overflow:auto;
max-height:400px;

box-shadow:0 4px 20px rgba(0,0,0,0.4);

}

.result-table{

width:100%;
border-collapse:collapse;
font-family:Consolas,monospace;
color:#e2e8f0;

}

.result-table th{

padding:10px;
background:#020617;
color:#22c55e;
border-bottom:2px solid #22c55e;

}

.result-table td{

padding:8px;
border-bottom:1px solid rgba(255,255,255,0.05);

}

.result-table tbody tr:nth-child(even){

background:#0f172a;

}

.result-table tbody tr:hover{

background:#134e4a;

}

.result-info{

margin-top:8px;
font-size:12px;
color:#94a3b8;

}

.result-error{

color:#ef4444;
padding:10px;

}
