/* lobby.css */

/* Background and general style */
body.lobby {
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(circle, #065c2f 60%, #003d1f 100%);
  color: white;
  min-height: 100vh;
  padding: 2em;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1,
h2 {
  text-align: center;
  color: white;
  text-shadow: 0 0 10px black;
}

.primary-btn {
  background-color: #4caf50;
  border: 0.1vw solid #2e7d32;
  font-size: 1.1em;
  padding: 0.6em 1.2em;
  border-radius: 0.4vw;
  color: white;
  cursor: pointer;
}

.primary-btn:hover {
  filter: brightness(1.1);
}

.room-table {
  width: 80%;
  max-width: 800px;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.5em;
  overflow: hidden;
  margin-top: 1em;
}

.room-table th,
.room-table td {
  padding: 1em;
  text-align: center;
  font-size: 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.room-controls {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  align-items: center;
}

.join-btn {
  background-color: #2196f3;
  border: none;
  padding: 0.5em 1em;
  color: white;
  border-radius: 0.3em;
  cursor: pointer;
}

.join-btn:hover {
  background-color: #1976d2;
}

.delete-btn {
  background-color: darkred;
  border: none;
  padding: 0.5em 1em;
  color: white;
  border-radius: 0.3em;
  cursor: pointer;
}

.delete-btn:hover {
  background-color: #a00;
}

#room-status {
  max-height: 25vh;
  overflow-y: auto;
  margin-top: 2em;
}



.room-action-btn {
    background: #333;
    color: white;
    padding: 0.4em 1em;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    margin: 0 0.2em;
  }
  
  .room-action-btn:hover {
    background: #555;
  }
  
  .room-action-join {
    background: #1e88e5;
  }
  
  .room-action-join:hover {
    background: #1565c0;
  }
  
  .room-action-delete {
    background: #b71c1c;
  }
  
  .room-action-delete:hover {
    background: #7f0000;
  }
  
  td.no-padding {
    padding: 0;
  }
  