body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('../images/bckg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav-button-wrapper {
  background-color: #022a4f;
  padding: 15px 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px; /* a logó és gombok között legyen kis tér */
}

.nav-logo-container {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 217px;
  width: auto;
  object-fit: contain;
}


.nav-buttons {
  display: flex;
  gap: 0px;
  flex-wrap: nowrap;
}

.button2 {
  display: inline-block;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #ffffff;
  padding: 0.8em 1.8em;
  cursor: pointer;
  font-size: 16px;
  border-radius: 0em;
  background: #034c8c;
  border: 1px solid #034c8c;
  margin: 0;
  font-weight: bold;
}

.button2:first-child {
  border-top-left-radius: 0.5em;
  border-bottom-left-radius: 0.5em;
}

.button2:last-child {
  border-top-right-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
}

.button2:active {
  color: #ccc;
  background: #04607d;
}

.button2:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.button2:after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: #00a97f;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.button2:hover {
  color: #ffffff;
  border: 1px solid #00a97f;
}

.button2:hover:before,
.button2:hover:after {
  top: -40%;
  background-color: #00a97f;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  flex: 1;
  align-items: start;
}

.tile {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 
    inset 0 0 5px rgba(255, 255, 255, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 
    inset 0 0 5px rgba(255, 255, 255, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.5);
}

.tile h2 {
  color: #fff39c;
  margin-bottom: 10px;
}


.news-box ul {
  list-style: none;
  padding: 0;
}

.news-box li {
  margin-bottom: 10px;
}

.user-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.user-card {
  background-color: #034c8c;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.footer {
  background-color: #000;
  color: #ccc;
  font-size: 14px;
  width: 100%;
  margin-top: 40px;
}

.footer-top {
  text-align: center;
  padding: 0;
  line-height: 1;
  font-size: 13px;
  background-color: #000;
  font-weight: bold;
  color: #fff;
  border-bottom: 1px solid #222;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}



.footer-columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  background-color: #001627;
  padding: 30px 20px;
}

.footer-col {
  flex: 1 1 200px;
  margin: 10px;
  padding: 0 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col:first-child {
  border-left: none;
}

.footer-col h4 {
  color: #00d5f0;
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-col a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}
.nav-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.nav-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-wrapper {
  display: flex;
  gap: 20px;
  padding: 30px;
  color: white;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-tab-button {
  background-color: #034c8c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.admin-tab-button:hover {
  background-color: #0463a0;
}

.admin-tab-button.active {
  background-color: #00a97f;
}

.admin-content {
  flex: 1;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  min-height: 400px;
  display: flex;
  flex-direction: column; /* <<< EZ A FONTOS!!! */
  gap: 30px; /* opcionális: térköz a form és a hírek között */
}


.admin-content > form {
  display: flex;
  flex-direction: column;
}



#admin-iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  background: transparent;
}

.admin-news-item {
  margin-bottom: 25px;
  border-bottom: 1px solid #444;
  padding-bottom: 15px;
}

.success-message {
  color: #4caf50;
  font-weight: bold;
}

.error-message {
  color: #ff6666;
  font-weight: bold;
}

.admin-news-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  width: 100%;
  margin: 0 auto 30px auto; /* középre igazít és alulra térközt ad */
  gap: 10px;
}

.admin-news-form label {
  align-self: flex-start;
  color: #fff;
  font-weight: bold;
}

.admin-news-form .textInput {
  width: 100%;
}
.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0 auto 30px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.02); /* opcionális háttér */
  border-radius: 10px;
}
.form-wrapper label,
.form-wrapper input,
.form-wrapper textarea,
.form-wrapper .ck-editor,
.form-wrapper button {
  width: 100%;
  max-width: 100%;
}
.admin-news-content {
  font-size: 17px;
  line-height: 1.6;
  margin-top: 5px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
  word-wrap: break-word;
  text-align: center; /* 🔄 ez lett center a justify helyett */
}
/* 🔹 Új, összevont belépési box stílus */
.large-entry-box {
  grid-column: span 2;
  text-align: center;
  padding: 40px 30px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 169, 127, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 169, 127, 0.3);
}

/* 🔹 Belépés gomb */
.entry-button {
  margin-top: 20px;
  padding: 12px 30px;
  background-color: #00a97f;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s;
}

.entry-button:hover {
  background-color: #009b74;
}

.entry-info-box {
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: rgba(0, 51, 102, 0.35);  /* 🔹 új szín: sötétkékes */
  border: 1px solid rgba(0, 153, 255, 0.2); /* finomabb kék keret */
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 
    inset 0 0 5px rgba(255, 255, 255, 0.05),
    0 6px 14px rgba(0, 0, 0, 0.3);

  grid-column: span 1;
  max-width: 420px;
  justify-self: center;

  /* 🔽 új sorok: fix magasság, ne nőjön együtt a hírekkel */
  max-height: 500px;
  overflow: auto;
}




.entry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
}

.entry-stats p {
  margin: 4px 0;
  color: #fff;
  font-size: 14px;
  text-align: left;
  padding-left: 5px; /* 🔹 Kis margó a szélétől */
}

.entry-button-wrapper {
  display: flex;
  align-items: center;
}

.entry-button.big {
  padding: 12px 26px;
  background: #ff8c00;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.entry-button.big:hover {
  background: #ff7300;
}

.entry-bottom {
  margin-top: 10px;
  text-align: left;
  padding-left: 5px;
}

.entry-bottom h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff39c;
}

.entry-bottom p {
  margin: 3px 0;
  font-size: 14px;
  color: #eee;
}

.entry-bottom a {
  color: #00d5f0;
  text-decoration: none;
  font-weight: bold;
}

.entry-bottom a:hover {
  text-decoration: underline;
}

.warning {
  color: #ffcc00;
  font-weight: bold;
}



.image-button-link {
  display: inline-block;
  transition: transform 0.1s ease-in-out;
  background: none !important;
  box-shadow: none !important;
  padding: 0;
}

.image-button-link:hover {
  transform: scale(1.05);
  filter: drop-shadow(0px 4px 10px rgba(0, 191, 255, 0.5)); /* 🌊 kék árnyék */
}

.image-button-link:active {
  transform: scale(0.95);
}

.image-button {
  width: 300px;
  height: auto;
  display: block;
  border: none;
  background: transparent !important;
}

.entry-greeting {
  font-size: 16px;
  font-weight: bold;
  color: #fff39c;
  margin-bottom: 16px;
  margin-top: -5px;
  padding: 0 4px;
}

.admin-tab-button {
  text-decoration: none;
  color: inherit;
}

.news-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.news-more-btn {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}

.news-more-btn:hover {
  text-decoration: underline;
}

      .welcome-modal-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background-color: rgba(0,0,0,0.75);
        z-index: 99999;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      .welcome-modal-box {
        background: #fff;
        max-width: 650px;
        width: 90%;
        padding: 30px;
        border-radius: 12px;
        position: relative;
        box-shadow: 0 0 20px rgba(0,0,0,0.4);
        font-family: sans-serif;
      }
      .welcome-modal-box h2 {
        margin-top: 0;
        color: #2563eb;
      }
      .welcome-modal-close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 22px;
        cursor: pointer;
        color: #999;
      }
.welcome-modal-box {
  background: linear-gradient(145deg, rgba(28, 46, 68, 0.97), rgba(17, 32, 50, 0.97));
  color: #fff;
  padding: 25px 30px;
  border-radius: 14px;
  max-width: 850px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.welcome-modal-box h2 {
  color: #fff39c;
  margin-bottom: 15px;
}

.welcome-modal-box textarea,
.welcome-modal-box .sun-editor {
  width: 100% !important;
  min-height: 300px;
  border-radius: 8px;
  background-color: rgba(255,255,255,0.03);
  color: white;
}

.welcome-modal-box .modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.welcome-modal-box button {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.welcome-modal-box .btn-cancel {
  background: #666;
  color: white;
}

.welcome-modal-box .btn-cancel:hover {
  background: #888;
}

.welcome-modal-box .btn-save {
  background: #3b82f6;
  color: white;
}

.welcome-modal-box .btn-save:hover {
  background: #2563eb;
}

.user-management-menu {
  margin-bottom: 25px;
}

.user-tab-button {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.user-tab-button:hover {
  background: #1c3c64;
}

.user-tab-button.active {
  background: #0c66a1;
  font-weight: bold;
  border-color: #fff39c;
}

