:root{ --bg:#0b0b0f; --accent-fuchsia:#ff2d9c; --accent-green:#39ff14; --text:#ffffff; }
a { cursor: pointer; }
main { margin-left: 240px; }
body.theme-dark{background:var(--bg); color:var(--text); font-family:Inter,Segoe UI,Arial,sans-serif;}

*::-webkit-scrollbar {height: 8px; width: 8px;}
*::-webkit-scrollbar-track {background: rgba(255, 255, 255, 0.05);border-radius: 10px;}
*::-webkit-scrollbar-thumb {background: #a30017; border-radius: 10px; box-shadow: 0 0 6px var(--fuchsia);}
*::-webkit-scrollbar-thumb:hover {background: #ff0024;}

.sysmi-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:#070709;box-shadow:0 2px 8px rgba(0,0,0,.6)}
.logo{font-weight:800;letter-spacing:1px}
a.btn{display:inline-block;padding:10px 14px;background:var(--accent-fuchsia);border-radius:8px;color:#fff;text-decoration:none}

#app-shell{display:flex;min-height:80vh}
#app-content{flex:1; margin-left: 250px;}
#left-bar {position: fixed; top: 0; left: 0; height: 100vh; width: 220px; padding: 12px; border-right: 1px solid rgba(255, 255, 255, 0.04);
  background-color: #121212; overflow-y: auto; z-index: 1000;}

.avatar-large{width:96px;height:96px;border-radius:50%;background:linear-gradient(135deg,#ff2d9c,#39ff14);display:flex;align-items:center;justify-content:center;font-size:32px;color:#000}
.online { background-color:#00cc36;}
.offline {background-color: #3c3c3c;}

/*-----------------------------------------*/
/*                  navbar                 */
/*-----------------------------------------*/

.nav-link {display: flex;flex-direction: column;}
.logo-img {max-width: 120px; height: auto; display: block; margin: 0 auto; border-radius: 10px; 
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);}
nav .logo {display: flex; align-items: center; justify-content: center; margin-bottom: 30px;}
nav .logo-img {max-width: 40px;margin-right: 10px;}
nav .logo-text {    font-size: 22px; font-weight: bold; text-transform: uppercase; font-family: 'Orbitron', sans-serif;
    text-align: center; background: linear-gradient(90deg, #0ff, #f0f, #0ff);-webkit-background-clip: text; -webkit-text-fill-color: transparent;}

a.menu-item {position: relative; display: flex; align-items: center; color: white; text-decoration: none;
	font-size: 18px; padding: 15px 20px; margin: 5px 0; transition: all 0.3s ease; border-radius: 10px;}
a.menu-item i,
a.menu-item svg {margin-right: 10px; font-size: 20px;}
a.menu-item:hover { background: #1b1b1b; color: #ff0096; font-weight: 700;}
a.menu-item.active {color: #ff0096; font-weight: 700;}

.notification-banner {position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #222;
  	color: #fff; padding: 10px 20px; border: 2px solid #f0f; border-radius: 10px; font-weight: bold;
	box-shadow: 0 0 10px #f0f; z-index: 9999; animation: fadeInOut 4s ease forwards;}
.notif-badge {background: red; color: white; font-size: 0.7em; border-radius: 50%; padding: 2px 6px; margin-left: 4px;}


.search-box { display: flex; align-items: center; background: #252525; border: 1px solid #222; border-radius: 30px;
    padding: 2px 10px; box-shadow: 0 0 10px rgb(0 0 0); transition: all 0.3s ease; flex-direction: row; margin-bottom: 10px; color: white;}
.search-box:hover {box-shadow: 0 0 15px var(--fuchsia); border-color: var(--fuchsia);}
.search-box input {flex: 1; background: transparent; border: none; outline: none; color: var(--green);font-size: 0.95em;
  padding-left: 5px; width: 120px;}
.search-box input::placeholder {color: #999; font-style: italic;}
.search-btn {background: none; border: none; color: var(--fuchsia); cursor: pointer;transition: 0.3s; margin-top: 5px;}
.search-btn:hover {color: var(--green); transform: scale(1.1);}
#prefixSelector {background: transparent; border: none;color: #f0f0f0; font-weight: bold; font-size: 16px;
    outline: none;margin-right: 6px; cursor: pointer;}
#prefixSelector option {background: #111; color: white;}

.search-box input::placeholder {color: #aaa; opacity: 1; font-style: italic;}
.search-box input {padding-left: 8px;}

@media (max-width: 768px) { .search-box {display : none;} }

/*-----------------------------------------*/
/*                  loader                 */
/*-----------------------------------------*/

.sysmi-loader {display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 12px; height: 100%; width: 100%; padding-top: 80px; animation: fadeIn 0.3s ease-out;}

.loader-circle {
  width: 50px;
  height: 50px;
  border: 4px solid #ff00ff44;
  border-top-color: #ff00ff;
  border-radius: 50%;
  animation: rotate 0.8s linear infinite, glowPulse 1.2s infinite;
}

.loader-text {
  color: white;
  font-size: 1.1rem;
  letter-spacing: 2px;
  animation: textPulse 1.8s infinite;
  text-shadow: 0 0 6px #ff00ff;
}

/* Animations */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px #ff00ff50, 0 0 20px #ff00ff20;
  }
  50% {
    box-shadow: 0 0 15px #ff00ff80, 0 0 30px #ff00ff40;
  }
}

@keyframes textPulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    height: 50px;
    cursor: pointer;
    transition: 0.25s ease;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: 0.25s ease;
    border-radius: 10px;
}

/*-----------------------------------------*/
/*                  loader                 */
/*-----------------------------------------*/

/* ---------------------------------------------------
   🔥 CONTENEUR PRINCIPAL — Glassmorphism + Glow
--------------------------------------------------- */
#login-container,
.register-container {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.2s both;
    margin: 200px auto;
}

/* Halo coloré mouvant */
#login-container::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    filter: blur(70px);
    z-index: -1;
    animation: auraMove 6s ease-in-out infinite;
    background: linear-gradient(135deg, rgb(209 216 255 / 15%), rgba(59, 130, 246, 0.05));
}

@keyframes auraMove {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(20px, -10px) scale(1.2); }
}

/* ---------------------------------------------------
   🔥 TITRE
--------------------------------------------------- */
#login-container h2 {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-align: center;
}

/* ---------------------------------------------------
   🔥 GROUPE D'INPUT AVEC ICÔNE
--------------------------------------------------- */
.form-group {
    margin-bottom: 1.6rem;
    position: relative;
}

.form-group i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

/* ---------------------------------------------------
   🔥 INPUTS — Glow + Glass
--------------------------------------------------- */
#login-container input[type="text"],
#login-container input[type="password"] {
    width: 95%;
    padding: 10px 10px;
    background: rgb(239 26 26 / 6%);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.03);
}

#login-container input[type="text"]:focus,
#login-container input[type="password"]:focus {
    border-color: #ff00ff;
    box-shadow: 0 0 12px #ff00ff, inset 0 0 6px rgba(255, 0, 255, 0.4);
}

/* Petit glow vert au hover */
#login-container input:hover {
    border-color: #00ff55;
    box-shadow: 0 0 12px #00ff5577;
}

/* ---------------------------------------------------
   🔥 BOUTON — Ultra Glow
--------------------------------------------------- */
#login-container button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: #004eff85;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: 0.25s;
}

#login-container button:hover {
    background: #00921b82;
}

/* ---------------------------------------------------
   🔥 MESSAGE D'ERREUR
--------------------------------------------------- */
#errorMsg {
    margin-top: 12px;
    font-size: 14px;
    color: #ff3b3b;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
    font-weight: 600;
}

/* ---------------------------------------------------
   🔥 ANIMATION D'APPARITION
--------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.register-link {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

#registerForm {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
}

.register-link a {
  color: #0083ff;
  text-decoration: none;
  font-weight: bold;
}

.register-link a:hover {
  text-decoration: underline;
}

.register-container {
  max-width: 800px;
  margin: 80px auto;
  padding: 30px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  text-align: center;
}

.register-container:before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    filter: blur(70px);
    z-index: -1;
    animation: auraMove 6s ease-in-out infinite;
    background: linear-gradient(135deg, rgb(209 216 255 / 15%), rgba(59, 130, 246, 0.05));
}

.register-container h1 {
  color: white;
  margin-bottom: 5px;
}

.register-container .accent {
  color: #ff2fff;
}

.subtitle {
  color: #aaa;
  margin-bottom: 25px;
}

.form-group {
  text-align: left;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #ccc;
}

.form-group input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.3s, box-shadow 0.3s, transform 0.2s;
    background: rgb(239 26 26 / 6%);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: white;
}

.form-group small {
  color: #666;
  font-size: 12px;
}

.full-width {
  grid-column: span 2;
}

.btn-fuchsia {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  background: #004eff85;
  border: none;
  color: white;
  cursor: pointer;
}

.error-msg {
  color: #ff4d4d;
  margin-bottom: 15px;
}

.login-link {
  margin-top: 20px;
  color: #aaa;
}

.login-link a {
  color: #0083ff;
  font-weight: bold;
  text-decoration: none;
}

#gameInfo {
    display: flex;
    gap: 10px;
    color: #c1c1ff;
    align-items: flex-end;
}

/* Texte de chargement */
#gameInfo .loading {
  font-size: 16px;
  color: #d6d6e6;
  opacity: 0.9;
  text-align: center;
  letter-spacing: 0.3px;
  position: relative;
  padding-left: 28px;
}

/* Petit spinner animé */
#gameInfo .loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 47, 208, 0.25);
  border-top-color: #ff2fd0;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 0.8s linear infinite;
}

/* Animation du spinner */
@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    margin-bottom: 20px;
}

.avatar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#creatorAvatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #b300ff;
}


#badge {
    padding: 2px 15px;
    background-color: #000000;
    border-radius: 20px;
    border: solid 1px #4d4d4d;
}

.game-title {
    font-size: 30px;
    font-weight: 600;
    color: #c1c1ff;
}

.msg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff0059;
    color: white;
    font-size: 11px;
    width: 17px;
    padding: 4px 2px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
}

.msg-badge.hidden {
  display: none;
}




