

body {
  margin: 0;
  font-family: Arial;
  color: white;

  background: #0b1030;
}

/* <--- remove this to get background */
/*  <--- remove this to get background
body {
  background: url("479325-full-black-wallpaper.jpg") no-repeat center center fixed;
  background-size: cover;
}
*/

* {
    user-select: none;        /* 🔥 deaktiviert markieren überall */
    -webkit-user-select: none;
    -moz-user-select: none;
}

input, textarea {
    user-select: text;        /* 🔥 wieder erlauben */
}

.navbar{
  display:flex;
  justify-content:space-between;
  padding:20px 40px;
  background:#0b1030;
}

.btn{
  padding:10px 20px;
  border-radius:8px;
  border:2px solid transparent;
  background:none;
  color:white;
  font-weight:bold;
  margin-right:10px;
  cursor:pointer;
}

.admin{border-color:#2dc3ff}
.stats{border-color:#ffd43b}
.restart{border-color:#ff4d4d}
.manage{border-color:#28c76f}
.logout{border-color:#ff4d4d}

.welcome{
  margin-right:20px;
}

/* TABLE */

.table-container{
  margin:40px;
  border-radius:12px;
  padding:0;
  border:1px solid #ffffff;
  overflow:hidden;

  background: #0b1030;

  box-shadow:
    0 0 2px #ffffff,
    0 0 2px #ffffff,
    0 0 20px rgba(255, 255, 255, 0.6);
}

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

thead{
  background:#0b1030;
}

tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
th{
  text-align:center;
  padding:12px;
}

tbody tr:last-child {
    border-bottom: none;
}
td{
  text-align:center;
  vertical-align:middle;
  padding:14px;
  border-bottom:1px solid #0b1030;
}

.remove{
  color:#aaa;
  cursor:pointer;
}

.url{
  background:#4a7df0;
  padding:4px 10px;
  border-radius:6px;

  display:flex;
  align-items:center;
  justify-content:center;

  margin:0 auto;
  width:fit-content;
}

.alpha{color: #ff4d4d}        
.bravo{color:#4da3ff}        

.timeout{color:#ffcc00}
.refresh{color:#00ff88}
.loading{color:#ddd}
.glitched{color:#6ec6ff}
.clicking{color:#00ff88}

.unglitch{
  background:#ff4d4d;
  border:none;
  padding:6px 12px;
  border-radius:6px;
  color:white;
}

.unglitch-btn{
    background:transparent;
    border:2px solid #ff4d4d;
    color:#ff4d4d;

    padding:4px 12px;
    border-radius:6px;

    font-size:12px;
    font-weight:bold;

    cursor:pointer;
}

.click-mains,
.click-mults,
.chat-section,
.battle-section{
border:1px solid rgb(255, 255, 255);
border-radius:12px;
padding:20px;
background:#0b1030;
}

/* CHAT */
.chat-section{
  width:30%;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  height:280px;

  background: url("chat-bg.png") center center no-repeat;
  background-size: cover;
}


.chat-header{
padding:12px;
border-bottom:1px solid #0b1030;
}

.chat-messages{
flex:1;
padding:10px;
overflow-y:auto;
font-size:14px;
}

.chat-msg{
margin-bottom:6px;
opacity:0.9;
}

.chat-input-box{
display:flex;
border-top:1px solid #c2c5db;
}

.chat-input-box input{
flex:1;
padding:10px;
border:none;
background:#0b1030;
color:white;
}

.chat-input-box button{
padding:10px 15px;
border:none;
background:#3b3a3a;
color:white;
cursor:pointer;
}


.panel-title{
margin-bottom:20px;
}

.bottom-panel {
  margin:40px;
  padding:30px;
  border-radius:14px;

  background: transparent;
}

.click-layout{
display:flex;
gap:40px;
align-items:flex-start;
justify-content:space-between;
}

.click-mains{
width:15%;
}

/* LEFT */
.users-section{
width:20%;
}

.dropdown{
width:100%;
padding:14px;
background:#ffffff;
border:none;
border-radius:8px;
color:white;
}



.click-mults{
  position:relative;
}


.mults-header{
  position:absolute;
  top:-22px;

  left:50%;                 /* NEU */
  transform:translateX(-50%);  /* NEU */

  margin:0;
  opacity:1;
  font-weight:bold;
  font-size:18px;
}


.mults-box{
background:#303030;
border-radius:10px;
overflow:hidden;
}


.user{
padding:10px;
border-bottom:1px solid #464646;
cursor:pointer;
}

/* BATTLE */
.battle-section{
width:25%;
}

.dropdowns{
display:flex;
gap:20px;
margin-top:15px;
}

.dropdown{
background:#3b3a3a;
border:none;
padding:10px;
border-radius:6px;
color:white;
width:200px;
}

.mults-box{
background:#3b3a3a;
padding:10px;
border-radius:8px;
width:200px;
}

.mult{
padding:12px 15px;
border-bottom:1px solid #2c3259;
cursor:pointer;
}

.mult:hover{
background:#242a55;
}

.battle-input{
    width:100%;
    box-sizing:border-box;
    padding:14px;
    border-radius:8px;
    border:none;
    background:#2c3259;
    color:white;
    margin-bottom:15px;
}

.teams{
display:flex;
gap:10px;
margin-bottom:15px;
}

.team{
padding:12px 20px;
border:none;
border-radius:8px;
cursor:pointer;
}

.team.alpha{
background:#e60d31;
color:white;
}

.team.bravo{
background:#0716f0;
color:white;
}

.actions{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:10px;
}

.create{
border:2px solid #2eff7b;
background:transparent;
color:#2eff7b;
padding:10px 16px;
border-radius:8px;
}

.add{
border:2px solid #ffc400;
background:transparent;
color:#ffc400;
padding:10px 16px;
border-radius:8px;
}

.status{
margin-top:10px;
}

.online{
display:inline-block;
width:10px;
height:10px;
background:#2eff7b;
border-radius:50%;
margin-left:6px;
}

.btn:active{
transform:scale(0.92);
transition:0.1s;
}

.btn:hover{
opacity:0.85;
}

.modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
justify-content:center;
align-items:center;
}

.modal-box{
background:#1a214f;
padding:25px;
border-radius:10px;
width:300px;
display:flex;
flex-direction:column;
gap:10px;
}

.modal input{
padding:10px;
border:none;
border-radius:6px;
background:#2a2f55;
color:white;
}

.modal-buttons{
display:flex;
justify-content:space-between;
}

.btn:active{
transform:scale(0.92);
transition:0.1s;
}

.mult.selected{
  background:#4da3ff;
  color:white;
  border-radius:6px;
}

.button-click {
  transform: scale(0.96);
  box-shadow: 0 0 12px rgba(255,255,255,0.2) inset;
}

.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0f2c;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-box {
    background: #111a4d;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
    text-align: center;
}

.login-box input {
    display: block;
    margin: 10px auto;
    padding: 10px;
    width: 200px;
}

.login-box button {
    padding: 10px 20px;
    background: #00ff88;
    border: none;
    cursor: pointer;
}

.url {
    user-select: none;        /* 🔥 verhindert markieren */
    -webkit-user-select: none;
    -moz-user-select: none;
}


.admin-only {
    display: none;
}

.admin-mode .admin-only {
    display: inline-block;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,0.6); /* optional dim */
    z-index: 9999;
}

.manage-wrapper {
    position: relative;
    display: inline-block; /* 🔥 wichtig */
}

.manage-menu {
    position: absolute;
    top: 110%;
    left: 0;

    background: #2e2e2e;
    border-radius: 8px;
    padding: 5px 0;

    display: none;
    min-width: 150px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 999;
}

.manage-menu div {
    padding: 10px;
    cursor: pointer;
    color: white;
}

.manage-menu div:hover {
    background: #3f3f3f;
}
nav-left {
    display: flex;
    align-items: center;
    gap: 10px;   /* Abstand zwischen Buttons */
}


.manage-menu {
    position: absolute;
    top: 120%;
    left: 0;

    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px); /* 🔥 Glass Effekt */

    border-radius: 12px;
    padding: 6px 0;

    min-width: 180px;

    display: none;

    box-shadow: 
        0 10px 25px rgba(0,0,0,0.6),
        0 0 10px rgba(255, 255, 255, 0.2);

    border: 1px solid rgb(24, 207, 39);

    overflow: hidden;
}

/* Items */
.manage-item {
    padding: 12px 16px;
    color: #eaeaea;
    cursor: pointer;

    transition: all 0.2s ease;
}
/* Linie zwischen items */
.manage-item:not(:last-child) {
    border-bottom: 1px solid rgb(6, 211, 67);
}

/* Hover (wie dein Mults) */
.manage-item:hover {
    background: rgba(0, 150, 255, 0.15);
    color: #ffffff;
}
.manage-item {
    transition: transform 0.15s ease; /* 🔥 sonst ruckelig */
}


.admin-only {
    display: none;
}

.admin-mode .admin-only {
    display: block;
}

.timer {
    font-weight: bold;
    color: #ffffff;
    min-width: 60px;
}

/* optional states */
.timer.glitched {
    color: #6ec6ff;
}

.timer.timeout {
    color: #ffcc00;
}

.timer.danger {
    color: #ff4d4d;
}


.view-switch {
    display:flex;
    gap:10px;
    margin-bottom:10px;
}

.view-switch button {
    padding:8px 14px;
    background:#2c3259;
    border:none;
    color:white;
    cursor:pointer;
    border-radius:6px;
}

.teams-view {
    display:flex;
    gap:20px;
}

.team {
    flex:1;
    background:#1a1f4d;
    padding:10px;
    border-radius:10px;
}

.team.red { border:1px solid #ff4d4d; }
.team.blue { border:1px solid #4da3ff; }

.player {
    padding:6px;
    border-bottom:1px solid rgba(255,255,255,0.1);
}


#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.toast {
    width: 320px;
    background: #f5f5f5;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: slideIn 0.25s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
}

.toast-desc {
    font-size: 13px;
    opacity: 0.8;
}

.toast-progress {
    height: 3px;
    background: #ef4444;
    animation: progress 4s linear forwards;
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}
.login-screen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(0, 120, 255, 0.35), transparent 35%),
        linear-gradient(135deg, #020617, #071a52, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.login-card {
    width: 340px;
    padding: 34px;
    border-radius: 22px;
    background: rgba(5, 12, 40, 0.86);
    border: 1px solid rgba(120, 180, 255, 0.45);
    box-shadow: 0 0 45px rgba(0, 140, 255, 0.35);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

.login-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 4px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #00a2ff, #003bff);
    box-shadow: 0 0 28px rgba(0, 162, 255, 0.7);
}

.login-card h1 {
    margin: 4px 0 0;
    font-size: 28px;
}

.login-card p {
    margin: 0 0 10px;
    color: #9db7ff;
    font-size: 14px;
}

.login-card input {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(150, 190, 255, 0.35);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.login-card input::placeholder {
    color: rgba(255,255,255,0.55);
}

.login-card button {
    margin-top: 6px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #009dff, #002bff);
}

.login-error {
    min-height: 18px;
    color: #ff5d5d;
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.stat-card {
    background: rgba(0,120,255,.12);
    border: 1px solid rgba(70,140,255,.4);
    border-radius: 12px;
    padding: 16px;
}

.stat-card span {
    display: block;
    color: #8fb8ff;
    font-size: 13px;
    margin-bottom: 8px;
}

.stat-card b{
    color: white;
    font-size: 22px;   /* vorher 30px */
    font-weight: 700;
    line-height: 1.2;
}

.restart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 25, 0.82);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.restart-box {
    width: 360px;
    padding: 30px;
    border-radius: 16px;
    background: #1a214f;
    border: 1px solid rgba(120, 180, 255, 0.45);
    box-shadow: 0 0 35px rgba(0, 140, 255, 0.28);
    color: white;
    text-align: center;
}

/* MOBILE: nur Querformat erlauben */
@media (max-width: 900px) and (orientation: portrait) {

    body::before {
        content: "Bitte Handy quer drehen 📱";
        position: fixed;
        inset: 0;
        background: #0b1030;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 26px;
        font-weight: bold;
        z-index: 9999999;
        padding: 30px;
    }

    body > * {
        display: none !important;
    }
}

/* MOBILE QUERFORMAT: Desktop-Layout nutzbar machen */
@media (max-width: 900px) and (orientation: landscape) {

    body {
        min-width: 1500px;
        overflow-x: auto;
        overflow-y: auto;
    }

    .navbar,
    .table-container,
    .bottom-panel {
        min-width: 1450px;
    }
}

