/* Alap beállítások */
body {
    font-family: Arial, sans-serif;
    background: url('../images/bckg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Konténer a bejelentkezéshez */
.container {
    width: 100%;
	flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 🔼 Felülről indít */
    padding-top: 40px;        /* ⬇️ Távolság a tetejétől */
}

.login-box {
    background: rgba(51, 51, 51, 0.2);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4);
    width: 320px;

    margin-top: 0px; /* 👉 Ez tolja fel vagy le */
}


/* Hibaüzenetek */
p.error {
    color: red;
    font-weight: bold;
}

.error-message {
    color: red;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
}


/* Beviteli mezők */
.textInputWrapper {
    position: relative;
    width: 80%; /* A beviteli mező szélessége 80% */
    margin: 10px auto;
    --accent-color: #00A97F;
}

.textInputWrapper:before,
.textInputWrapper:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;  /* A vonalak most pontosan illeszkednek a mezőkhöz */
    bottom: -1px;
    z-index: 4;
    pointer-events: none;
}

.textInputWrapper:before {
    transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.textInputWrapper:focus-within:before {
    border-bottom: 1px solid var(--accent-color);
}

.textInputWrapper:focus-within:after {
    border-bottom: 2px solid var(--accent-color);
    transform: scaleX(1);
}

.textInputWrapper:after {
    transform: scaleX(0);
    transition: transform 250ms cubic-bezier(0, 0, 0.2, 1) 0ms;
    will-change: transform;
    border-bottom: 2px solid var(--accent-color);
}

.textInput::placeholder {
    transition: opacity 250ms cubic-bezier(0, 0, 0.2, 1) 0ms;
    opacity: 1;
    user-select: none;
    color: rgba(255, 255, 255, 0.6);
}

.textInputWrapper .textInput {
    border-radius: 5px 5px 0px 0px; /* Csak a felső sarkok kerekítettek */
    box-shadow: 0px 2px 5px rgba(35, 35, 35, 0.3);
    height: 30px; /* Csökkentett magasság */
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 200ms;
    color: #e8e8e8;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    width: 94%; /* A beviteli mező teljes szélessége a wrapperen belül */
    border: none;
}

.textInputWrapper .textInput:focus,
.textInputWrapper .textInput:active {
    outline: none;
    background-color: rgba(0, 0, 0, 0.6);
}

.textInputWrapper:focus-within .textInput::placeholder {
    opacity: 0;
}

/* Bejelentkezés gomb */
.button {
    --color: #00A97F;
    padding: 0.8em 1.7em;
    background-color: transparent;
    border-radius: .3em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .5s;
    font-weight: bold; /* Félkövér gombfelirat */
    font-size: 17px;
    border: 1px solid;
    font-family: inherit;
    text-transform: uppercase;
    color: var(--color);
    z-index: 1;
    width: 80%;
}

.button::before, .button::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    background-color: var(--color);
    transition: 1s ease;
}

.button::before {
    top: -1em;
    left: -1em;
}

.button::after {
    left: calc(100% + 1em);
    top: calc(100% + 1em);
}

.button:hover::before, .button:hover::after {
    height: 410px;
    width: 410px;
}

.button:hover {
    color: rgb(10, 25, 30);
}

.button:active {
    filter: brightness(.8);
}

/* Regisztrációs link */
.register {
    margin-top: 15px;
}

.register a {
    color: #00A97F;
    text-decoration: none;
    font-weight: bold; /* Félkövér */
}

.register a:hover {
    text-decoration: underline;
}

/* Nem kiválasztás (férfi/nő) */
.gender-selection {
    display: flex;
    justify-content: center; /* Pontosan középre helyezzük */
    gap: 15px;
    margin: 10px auto;
    width: fit-content; /* Csak akkora lesz, amennyire szükséges */
}

/* A felirat és a rádiógomb igazítása */
.gender-selection label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #e8e8e8;
    cursor: pointer;
}

/* Rádiógomb dizájn */
.gender-selection input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #00A97F;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: transparent;
}

.gender-selection input[type="radio"]:checked {
    background-color: #00A97F;
}

/* Ne legyen vonal az alatta lévő beviteli mező alatt */
.gender-selection + .textInputWrapper:before,
.gender-selection + .textInputWrapper:after {
    display: none;
}
/* Szoba- és felhasználólista fő konténere */
#room-container, #global-user-container {
    background: #011b34;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

/* Szoba és globális lista címek */
#room-container h3, #global-user-container h3 {
    font-size: 18px;
    color: #fff39c;
    padding-bottom: 8px;
    border-bottom: 2px solid #034c8c;
}

/* Szobák listája */
#room-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#room-container ul li {
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}

#room-container ul li a {
    text-decoration: none;
    color: #00d5f0;
    display: block;
    padding: 8px;
    border-radius: 5px;
    transition: 0.3s ease;
}

/* Szobák hover effekt */
#room-container ul li a:hover {
    background: #034c8c;
    color: #fff39c;
    box-shadow: 0px 0px 10px rgba(0, 170, 255, 0.5);
}


.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}
.modal button {
  margin-top: 10px;
  padding: 8px 16px;
  font-weight: bold;
}

/* 🎛️ Beállítások modal külön overlay */
.settings-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;  /* EZT NE HAGYD KI! */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}



/* ⚙️ Beállítások (Settings Modal) */
.settings-wrapper {
  background: #e0e6f4;
  border: 2px solid #395598;
  border-radius: 10px;
  width: 500px;
  max-width: 95vw;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin: auto;
}

.settings-header {
  background: #395598;
  padding: 10px 15px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.settings-body {
  padding: 20px;
  color: #000;
}

.settings-body label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.settings-body small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.settings-body input[type="text"] {
  width: 100%;
  font-size: 15px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 6px;
}

.settings-body input[type="color"] {
  width: 50px;
  height: 35px;
  border: none;
}

.settings-body .btn-row {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#colorError {
  color: #ff4444;
  font-weight: bold;
  margin-top: 10px;
  display: none;
}
