/* Alap színek és változók */
:root {
  --primary-color: #1565c0;
  --background-overlay: rgba(255, 255, 255, 0.85);
  --text-color: #333333;
  --text-muted: #555555;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --header-footer-bg: #1565c0; /* kék háttér */
  --header-footer-text: #ffffff; /* fehér szöveg */
}

html, body {
    font-family: Arial, sans-serif;
    background: none; 
    width: 100%; 
    height: 100vh;
    display: flex;
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
    flex-direction: column;
    color: var(--text-color);
}

/* Testreszabott alap testreszabások 
body {
  font-family: Arial, sans-serif;
  background: none; 
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column; 
  color: var(--text-color);
}*/

/* --- HEADER és NAV --- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--header-footer-bg);
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 0 15px var(--shadow-color);
  color: var(--header-footer-text);
}

.logo img {
  height: 60px;
}

.logo-container {
  display: flex;
  align-items: center; /* függőleges középre igazítás */
  gap: 12px;
  text-decoration: none;
}

.logo-container img {
  display: block;
  height: 60px;
}

.company-name {
  color: var(--header-footer-text);
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* ========== Menü alap és mobil hamburger menü ========== */
.menu {
  list-style: none;
  display: flex; /* asztali menü alapból látszik */
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: var(--header-footer-text);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.menu li a:hover,
.menu li a:focus {
  background-color: var(--primary-color);
  color: #fff;
  outline: none;
}

/* Hamburger animáció */
.menu-toggle {
  display: none; /* alapból asztalin rejtve */
  position: relative;
  width: 30px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1100; /* mindig a menü fölött */
}

.menu-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--header-footer-text);
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Toggle X állapot */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- MODAL --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--background-overlay);
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary-color);
}

/* --- RESZPONZÍV (mobil + tablet) --- */
@media (max-width: 1024px) {
  /* Hamburger gomb látszik mobilon/tableten */
  .menu-toggle {
    display: block;
  }

  /* Menü mobil/tablet nézetre */
  .menu {
    display: none; /* alapból rejtve */
    flex-direction: column;
    position: absolute;
    top: 80px; /* a hamburger alatt */
    right: 20px;
    width: 200px; /* menü szélesség */
    padding: 10px 0;
    background: transparent;
    z-index: 1000;
  }

  .menu.show {
    display: flex;
  }

  .menu li {
    margin: 0px 0; /* gombok közti távolság */
  }

  .menu li a {
    display: block;
    padding: 6px 10px;
    background: #007BFF; /* gomb színe */
    color: #fff;
    text-align: center;
    border-radius: 20px; /* kerekített gomb */
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .menu li a:hover,
  .menu li a:focus {
    background: #0056b3; /* hover szín */
  }

  /* Hamburger menü overlay */
  #menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0); /* kezdő átlátszó */
    z-index: 900;
    opacity: 0;
    pointer-events: none; /* alapból ne blokkolja a kattintást */
    transition: background 0.3s ease, opacity 0.3s ease;
  }

  #menu-overlay.show {
    opacity: 1;
    background: rgba(0,0,0,0.8); /* végső sötétítés */
    pointer-events: auto; /* kattintható lesz, ha látszik */
  }

  /* Tartalom és layout mobilra/tabletre */
  body {
    background-attachment: scroll;
  }

  h1 {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  p {
    font-size: 20px;
  }

  a {
    font-size: 16px;
    padding: 8px 16px;
  }

  .container {
    padding: 30px 20px;
    max-width: 90%;
  }

  footer {
    font-size: 12px;
    padding: 10px 5px;
  }

  footer p {
    max-width: 100%;
  }
}

/* ========== Regisztrációs form és modal form rendezése ========== */
.modal form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* nagyobb térköz a mezők között */
}

.modal form label {
  font-weight: 600;
  text-align: left;
  margin-bottom: 4px;
}

/* FONTOS: input, select, textarea, button egymás alatt */
.container form label,
.container form input,
.container form select,
.container form textarea,
.container form button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.container form input,
.container form select,
.container form textarea {
  padding: 10px 12px;
  font-size: 16px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.container form input:focus,
.container form select:focus,
.container form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 6px var(--primary-color);
}

.container form button {
  margin-top: 10px;
  padding: 12px 0;
  background-color: var(--primary-color);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.container form button:hover,
.container form button:focus {
  background-color: #b71c1c;
  outline: none;
}

.password-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding-right: 40px;  /* Hely az ikon számára */
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  color: #666;
  /* a háttér eltüntetéséhez, vagy árnyékot adhatunk az ikon köré */
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
}
/* ========== regiasztrácio vége ========== */

/* --- FŐOLDAL / Fejlesztés alatt box --- */
.container {
  background-color: var(--background-overlay);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px var(--shadow-color);
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-sizing: border-box;
  margin: 40px auto; /* középre az oldalon */
  font-size: 20px;
  font-weight: 600;
  color: black;  /* explicit fekete szöveg */
  user-select: none;
}

/* ========== Alert doboz ========== */
.alert {
  background-color: #ffffff; /* fehér */
  color: #000000; /* fekete szöveg */
  border-radius: 12px;
  padding: 16px 24px;
  margin: 20px auto;
  max-width: 400px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  box-sizing: border-box;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  text-align: left;
  user-select: none;
  position: relative;
  z-index: 9999;
  border: none;
}

/* Sikeres üzenet - világos zöld háttér, fekete szöveg */
.alert-success {
  background-color: #d4f9d4; /* világos zöld */
  color: #000000; /* fekete szöveg */
  border: 1.5px solid #4caf50; /* zöld keret */
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
}

/* Hiba üzenet - világos piros háttér, fekete szöveg */
.alert-error {
  background-color: #f9d4d4; /* világos piros */
  color: #000000; /* fekete szöveg */
  border: 1.5px solid #e53935; /* piros keret */
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.4);
}

.alert-error ul {
  list-style-type: none; /* eltünteti a pontokat */
  padding-left: 0;       /* eltávolítja a bal oldali behúzást */
  margin-left: 0;        /* opcionális: margin eltávolítása */
}

/* Overlay stílus fix középre pozícionált üzenethez */
.alert.overlay-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  width: 400px;
  text-align: center;
  user-select: none;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  color: inherit;
  border: none;
}

/* Overlay siker */
.alert.overlay-message.alert-success {
  background-color: #d4f9d4;
  color: #000000;
  border: 1.5px solid #4caf50;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
}

/* Overlay hiba */
.alert.overlay-message.alert-error {
  background-color: #f9d4d4;
  color: #000000;
  border: 1.5px solid #e53935;
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.4);
}
/* ========== Alert vége ========== */

/* Specifikus stílus a login oldalon a checkbox + label közvetlen közeléhez */
.login-remember-container {
  display: flex;
  align-items: center;
  gap: 4px; /* kis távolság a checkbox és a felirat között */
  margin: 12px 0;
}

/* Fontos: felülírjuk a .container form input és label blokkszintű megjelenítését */
.login-remember-container input[type="checkbox"],
.login-remember-container label {
  display: inline-block !important;
  width: auto !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  user-select: none;
  line-height: 1.2;
}

.login-remember-container label {
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  user-select: none;
  line-height: 1.2;
}


.login-remember-container label {
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
}

/* --- FOOTER --- */
footer {
  flex-shrink: 0; 
  background-color: var(--header-footer-bg);
  padding: 15px 10px;
  text-align: center;
  color: var(--header-footer-text);
  font-size: 14px;
  box-shadow: 0 -2px 8px var(--shadow-color);
  margin-top: auto;
  box-sizing: border-box;
  width: 100%;
}

footer p {
  max-width: 600px;
  margin: 0 auto;
  white-space: normal;
  word-wrap: break-word;
}

/* --- H1 CÍMEK --- */
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  word-break: break-word;
  color: var(--text-color); /* fekete szín minden h1-nek */
}

/* --- RANG SZÍNEK --- */
.rang-tulajdonos {
  color: #800000; /* bordó */
  font-weight: bold;
}

.rang-admin {
  color: #1565c0; /* kék */
  font-weight: bold;
}

.rang-moderator {
  color: #d32f2f; /* piros */
  font-weight: bold;
}

.rang-helpdesk {
  color: #6a1b9a; /* lila */
  font-weight: bold;
}

.rang-vip {
  color: #2e7d32; /* zöld */
  font-weight: bold;
}

.rang-user {
  color: #000000; /* fekete */
}

/* --- Üzenetdoboz overlay stílus --- */
.overlay-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--background-overlay); /* áttetsző fehér háttér */
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px var(--shadow-color);
  color: var(--text-color);
  font-size: 1.2rem;
  max-width: 90%;
  z-index: 9999;
  text-align: center;
  user-select: none;
  box-sizing: border-box;
}

.custom-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  background-color: #e2e2e2;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.custom-button:hover {
  background-color: #ccc;
  border-color: #999;
}

/* =========== Admin beállítások oldal stílus ========== */
.admin-container {
  max-width: 800px;
  margin: 30px auto;
  background: #fefefe;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.admin-container h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #004080;
  font-weight: 700;
  font-size: 2.4rem;
}

fieldset {
  border: 2px solid #007acc;
  border-radius: 10px;
  margin-bottom: 25px;
  padding: 20px 25px;
  background: #f7fbff;
}

legend {
  font-weight: 700;
  color: #0059b3;
  font-size: 1.2rem;
  padding: 0 10px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #003366;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 18px;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus {
  border-color: #007acc;
  outline: none;
  background-color: #e6f0ff;
}

input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
  vertical-align: middle;
}

button.button {
  display: block;
  width: 160px;
  margin: 30px auto 0 auto;
  background-color: #007acc;
  color: white;
  border: none;
  padding: 12px 0;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.button:hover {
  background-color: #005f99;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1.8px solid #c3e6cb;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 600px) {
  .admin-container {
    padding: 20px 15px;
    margin: 15px;
  }
  button.button {
    width: 100%;
  }
}

/* ===== Admin Panel Alapbeállítások ===== */
.admin-container {
        max-width: 1000px;
        margin: 30px auto;
        padding: 20px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
    .admin-header {
        text-align: center;
        margin-bottom: 30px;
}
    .admin-header h1 {
        color: #003366;
        margin-bottom: 10px;
}
    .admin-header p {
        font-size: 1.1em;
        color: #555;
}
    .admin-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
}
    .admin-card {
        background: #f9f9f9;
        padding: 20px;
        border-radius: 10px;
        border-left: 5px solid var(--primary-color);
        transition: transform 0.2s ease;
}
    .admin-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
    .admin-card h2 {
        margin-top: 0;
        color: #003366;
        font-size: 1.2em;
}
    .admin-card p {
        color: #555;
        font-size: 0.95em;
}

/* ========== profil ========== */
.profile-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
  text-align: left; /* biztosítja, hogy ne középre igazodjon */
}

/* Avatar kép formázása */
.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #007acc;
}

/* Adatok formázása (jobb oldal) */
.profile-details {
  flex: 1;
  text-align: left; /* balra igazítjuk a szövegeket */
}

/* Label szorosra állítása */
.profile-details label {
  margin: 0 !important;
  padding: 0;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

/* Beviteli mezők stílusa */
.profile-details input[type="email"],
.profile-details input[type="password"],
.profile-details input[type="file"] {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  margin-top: 2px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
}

/* Bekezdések, sima szöveg */
.profile-details p {
  margin: 10px 0;
  font-size: 16px;
  text-align: left; /* külön a bekezdésekre is */
}

/* Kék gomb stílus */
.btn-edit-profile {
  display: inline-block;
  background-color: #007acc;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  margin-top: 15px;
}

.btn-edit-profile:hover {
  background-color: #005a99;
}

/* ==========Profil szerkesztés ========== */
.edit-profile-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: nowrap; /* fontos, hogy ne törjön sorba */
  overflow-x: auto;  /* ha túl szűk, legyen görgetés */
}

.edit-profile-avatar {
  flex-shrink: 0;
  width: 150px;
}

.edit-profile-avatar img.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 100px;
  object-fit: cover;
}

.edit-profile-details {
  flex-grow: 1;
  min-width: 300px;
}


.edit-profile-details label {
  margin-bottom: 0 !important;
  padding-bottom: 0;
  display: inline-block;
}

/* FONTOS módosítás: label és input szoros együtt */
.edit-profile-details p,
.edit-profile-details label {
  font-size: 1rem;
  margin: 0;           /* SEMMI margó, hogy szoros legyen */
  padding: 0;
  display: block;
  color: #333;
  font-weight: 600;    /* jobban látszik a label */
  text-align: left;
  line-height: 1.2;
}

.edit-profile-details input[type="email"],
.edit-profile-details input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  margin-top: 4px;     /* picit nagyobb távolság a label és input között */
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

.edit-profile-details input[type="email"]:focus,
.edit-profile-details input[type="password"]:focus {
  border-color: #007BFF;
  outline: none;
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

fieldset legend {
  padding: 0 10px;
  font-weight: bold;
  color: #555;
}

.btn-save-profile {
  background-color: #007BFF;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-save-profile:hover {
  background-color: #0056b3;
}

.message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}
/* ========== Profil szerkesztés vége ========= */

/* ========== Lebegő admin gomb ===========*/
#floating-admin-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007BFF;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
  font-size: 16px;
}

#floating-admin-btn:hover {
  background-color: #0056b3;
}
/* ========== lebegő admiongomb vége ========== */ 

@media (max-width: 480px) {
  #admin-button {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ========== Chat Toggle knézet =========== */ 
 .switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  transition: 0.4s;
  top: 0; left: 0;
  right: 0; bottom: 0;
  border-radius: 25px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(25px);
}

.error-box {
   max-width: 600px;
   margin: 100px auto;
   padding: 30px;
   border: 2px solid #cc0000;
   background-color: #ffe6e6;
   color: #cc0000;
   font-family: Arial, sans-serif;
   border-radius: 8px;
   text-align: center;
}

.error-box a {
   display: inline-block;
   margin-top: 20px;
   padding: 10px 20px;
   background-color: #cc0000;
   color: white;
   text-decoration: none;
   border-radius: 5px;
}

.error-box a:hover {
   background-color: #990000;
}

.users-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ========== felhasználok kezelése ========== */
.user-card {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.user-card:hover {
  transform: translateY(-3px);
}

.user-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.user-id {
  font-weight: bold;
  color: #888;
}

.user-rang {
  font-weight: bold;
}

.user-card-body p {
  margin: 4px 0;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-form input[type="text"],
.filter-form select,
.filter-form button {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.filter-form button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.filter-form button:hover {
  background-color: #0056b3;
}


@media (max-width: 768px) {
  .user-card {
    padding: 12px;
  }

  .user-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .user-id {
    font-size: 14px;
  }

  .user-rang {
    font-size: 14px;
  }

  .user-card-body p {
    font-size: 14px;
  }

  h1 {
    font-size: 22px;
    text-align: center;
  }

  .users-list {
    grid-template-columns: 1fr; /* csak 1 oszlop */
  }

  .alert.overlay-message {
    font-size: 14px;
    padding: 8px 12px;
  }
}

.btn-danger {
  background-color: #dc3545;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9em;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-edit {
  background-color: #007bff;  /* kék alap */
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9em;
  display: inline-block;
}

.btn-edit:hover {
  background-color: #0056b3;
}
/* ========== felhasználok kezelése vége ========== */

/* ========== edit_user.php ========== */
.edit-user-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.edit-user-flexbox {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Avatar konténer */
.edit-user-avatar {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 10px;
    border: 1px solid #ccc;
    overflow: hidden;
}

/* Maga a kép */
.edit-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edit-user-form label {
    display: block;
    margin-bottom: 6px; /* Kicsit nagyobb távolság a label és input között */
    font-weight: 600;
    text-align: left;
}

.edit-user-form input[type="text"],
.edit-user-form input[type="email"],
.edit-user-form input[type="password"],
.edit-user-form select,
.edit-user-form input[type="file"] {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 1em;
}

.edit-user-form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
}

/* Mobil nézet 600px alatt */
@media (max-width: 600px) {
    .edit-user-flexbox {
        flex-direction: column;
        gap: 20px;
    }

    .edit-user-avatar {
        width: 120px;
        height: 120px;
        margin: 0 auto; /* középre igazítás mobilon */
        border: 1px solid #ccc;
    }
}

/* Alert dobozok stílusa */
.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
/* ========== edit_user.php vége ========== */

/* Toggle kapcsoló konténer */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

/* Checkbox elrejtése */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* ========== A toggle háttere, csúszka ========== */
.switch {
  position: relative;
  display: inline-block;
  width: 35px !important;   /* kisebb szélesség */
  height: 18px !important;  /* kisebb magasság */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 18px;  /* a magasságával egyező */
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;       /* slider gomb magassága */
  width: 14px;        /* slider gomb szélessége */
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #2196F3;
}

.switch input:checked + .slider:before {
  transform: translateX(17px); /* a szélesség - gomb szélesség - 2px */
}

.switch:hover .slider {
  background-color: #b3d4fc;
}
/* ========== toggle kapcsolo vége ========== */
/* ========== log nézegető ========= */ 
.log-viewer {
  margin-top: 30px;
  padding: 15px;
  background: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.log-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.log-form input[type="text"],
.log-form select {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.log-output {
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  font-family: monospace;
  font-size: 14px;
  border-radius: 5px;
}

.log-line {
  padding: 3px 0;
  border-bottom: 1px solid #eee;
}

.log-line.error {
  color: red;
}
/* ========== log nézegető vége ========== */

@media (max-width: 768px) {
  #editor-toolbar {
    position: sticky !important;
    top: 100px; /* Ezt úgy állítsd be, hogy a toolbar a container tetejétől kezdve legyen a kívánt távolságra */
    left: 0;
    right: 0;
    margin: 0 20px; /* hogy ne lógjon ki a containerből */
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 8px 10px;
    background: #f0f0f0;
    z-index: 1100;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 8px;
  }

  .editor-container {
    padding-top: 20px; /* Csak annyi hely, amennyire a toolbar-nak szüksége van */
    margin-top: 60px;  /* Ez a hely a headernek */
  }
}
