/* ═══════════════════════════════════════
   LOBBY REDESIGN — peste #screen-lobby
═══════════════════════════════════════ */
#screen-lobby{
  background:#0e2318;
  display:flex;flex-direction:column;
}
#screen-lobby .lobby-body{
  display:flex;
  max-width:1480px;width:100%;margin:0 auto;
  padding:24px 20px;gap:22px;
  flex-direction:row;
  align-items:flex-start;
}

/* ── Sidebar panel (Creează cameră) ── */
#screen-lobby .lobby-panel{
  background:#15331f;border:1px solid rgba(255,255,255,.07);
  border-radius:14px;box-shadow:0 4px 16px rgba(0,0,0,.3);
  padding:16px 18px 18px;
}
#screen-lobby .lobby-panel:first-child{
  width:340px;flex-shrink:0;
}
#screen-lobby .lobby-panel:nth-child(2){
  flex:1;min-width:0;display:flex;flex-direction:column;
}

#screen-lobby .lobby-panel h3{
  font-size:12px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;
  color:#f0b830;margin-bottom:14px;
  display:flex;align-items:center;justify-content:space-between;
}

#screen-lobby .form-row input,
#screen-lobby .form-row select{
  width:100%;background:rgba(0,0,0,.28);border:1.5px solid rgba(255,255,255,.08);
  border-radius:9px;padding:10px 13px;color:#f0ece0;font-size:14px;font-weight:600;
  font-family:'Nunito',sans-serif;transition:border .15s,background .15s;
}
#screen-lobby .form-row input::placeholder{color:#51594c;font-weight:500;}
#screen-lobby .form-row input:focus,
#screen-lobby .form-row select:focus{
  outline:none;border-color:#f0b830;background:rgba(0,0,0,.4);
}
#screen-lobby .form-row{margin-bottom:11px;}

#screen-lobby .checkbox-row{
  display:flex;align-items:center;gap:8px;
  background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.06);
  border-radius:9px;padding:10px 13px;margin-bottom:11px;
  font-size:13px;font-weight:700;color:#f0ece0;cursor:pointer;
}
#screen-lobby .checkbox-row input{width:auto;accent-color:#16a34a;}

#screen-lobby #ai-level-row select{
  background:rgba(0,0,0,.3);border:1.5px solid rgba(255,255,255,.1);
  border-radius:7px;padding:5px 10px;
}

#screen-lobby .btn-primary{
  width:100%;border:none;border-radius:10px;padding:13px;
  background:linear-gradient(135deg,#f0c020 0%,#c89010 100%);
  color:#1a1000;font-size:14px;font-weight:800;letter-spacing:.3px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;
  box-shadow:0 4px 16px rgba(240,192,32,.4);transition:filter .12s,transform .1s;
}
#screen-lobby .btn-primary:hover{filter:brightness(1.08);transform:translateY(-1px);}
#screen-lobby .btn-primary:active{transform:translateY(0);filter:brightness(.95);}

#screen-lobby .btn-sm{
  width:32px;height:32px;border-radius:9px;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);color:#8a9080;font-size:14px;
  cursor:pointer;transition:background .15s,transform .3s;
}
#screen-lobby .btn-sm:hover{background:rgba(255,255,255,.13);transform:rotate(50deg);}

/* Quick action buttons (Profilul Meu / Clasament) */
#screen-lobby .lobby-panel > button[onclick*="loadProfile"],
#screen-lobby .lobby-panel > button[onclick*="loadLeaderboard"]{
  display:flex;align-items:center;gap:10px;padding:11px 14px !important;
  border-radius:10px !important;font-size:13.5px;transition:background .15s,border .15s;
  margin-bottom:8px !important;
}
#screen-lobby .lobby-panel > button[onclick*="loadProfile"]:hover,
#screen-lobby .lobby-panel > button[onclick*="loadLeaderboard"]:hover{
  background:rgba(255,255,255,.08) !important;
}

/* Daily missions panel */
#missions-panel{
  background:#15331f !important;border:1px solid rgba(255,255,255,.07) !important;
  border-radius:12px !important;
}
#missions-panel > div:first-child > div:first-child{color:#f0b830 !important;}
.mission-item{padding:9px 0;border-top:1px solid rgba(255,255,255,.06);}
.mission-item:first-child{border-top:none;padding-top:0;}
.mission-bar-bg{height:6px;border-radius:3px;background:rgba(0,0,0,.35);overflow:hidden;margin-top:6px;}
.mission-bar-fill{height:100%;border-radius:3px;background:linear-gradient(90deg,#16a34a,#22c55e);transition:width .3s;}
.mission-count{font-size:10.5px;color:#8a9080;font-weight:600;margin-top:4px;}

/* ── Room list ── */
#lobby-rooms{
  display:flex;flex-direction:column;gap:9px;
  overflow-y:auto;padding-right:2px;flex:1;
}
#lobby-rooms .no-rooms{
  color:#51594c;font-size:13px;text-align:center;padding:30px 0;
}

.room-row{
  display:flex;align-items:center;gap:0;
  background:#1a3d26;border:1px solid rgba(255,255,255,.07);border-radius:12px;
  overflow:hidden;transition:border .15s,transform .12s,box-shadow .15s;
  position:relative;
}
.room-row:hover{
  border-color:rgba(255,255,255,.15);transform:translateX(2px);
  box-shadow:0 4px 16px rgba(0,0,0,.3);
}
.room-row::before{
  content:'';width:5px;align-self:stretch;flex-shrink:0;
  background:linear-gradient(180deg,#22c55e,#16a34a);
}
.room-row.is-full::before{background:linear-gradient(180deg,#f0b830,#c89020);}
.room-row.is-locked::before{background:linear-gradient(180deg,#a855f7,#7c2dd0);}

.room-info{
  flex:1;padding:13px 18px;min-width:0;
  display:flex;flex-direction:column;gap:4px;
}
.room-info strong{
  font-size:14.5px;font-weight:800;color:#f0ece0;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}
.room-info span{font-size:11.5px;color:#8a9080;font-weight:600;}

.room-row .btn-join{
  background:linear-gradient(135deg,#1e8a44,#16a34a);color:#fff;border:none;
  border-radius:8px;padding:9px 20px;font-size:13px;font-weight:800;
  cursor:pointer;white-space:nowrap;transition:filter .12s,transform .1s;
  box-shadow:0 3px 10px rgba(22,163,74,.35);
}
.room-row .btn-join:hover{filter:brightness(1.1);transform:translateY(-1px);}
.room-row .btn-join:disabled{
  background:rgba(255,255,255,.06);color:#51594c;cursor:not-allowed;box-shadow:none;
}
.room-row .btn-watch{
  width:36px;height:36px;border-radius:8px;background:rgba(147,51,234,.15);
  color:#c084fc;border:none;display:flex;align-items:center;justify-content:center;
  cursor:pointer;font-size:14px;transition:background .15s;flex-shrink:0;
}
.room-row .btn-watch:hover{background:rgba(147,51,234,.25);}
.room-row > div:last-child{padding-right:16px;}

@media (max-width: 860px){
  #screen-lobby .lobby-body{flex-direction:column;}
  #screen-lobby .lobby-panel:first-child{width:100%;}
}
