html, body {
    margin: auto;
    padding: auto;
    font-family: "Poppins", sans-serif;
    background: rgb(12, 12, 12) url('../../public/images/piwonie.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

/* 📌 Nagłówek Księgi Gości */
.guestbook-header {
    margin-top: 80px; /* Jeśli menu ma pozycję fixed */
    text-align: center;
    padding: 20px 0;
}
.book-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4em;
    color: #4a3e2c;
    text-align: center;
    margin-bottom: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.book-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.4em;
    color: #6a5944;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}
/* 📘 Sekcja z książką */
/* 📜 Kontener Księgi Gości */
/* 📘 Sekcja z książką */
.guestbook-pages {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background-size: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05); /* delikatna ramka */
  box-shadow:
    0 8px 24px rgba(42, 204, 10, 0.15),
    0 0 0 8px rgba(32, 39, 14, 0.6); /* dodatkowy efekt oddzielenia od tła */
  backdrop-filter: blur(2px); /* lekki rozmycie jeśli tło przezroczyste */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 500px;
}
.guestbook-entry {
  background: #fffdf8;
  padding: 32px 24px 24px;
  border-radius: 14px;
  border: 1px solid rgba(204, 184, 155, 0.3);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.07),
    inset 0 0 12px rgba(255, 245, 230, 0.6);
  font-family: 'Crimson Text', serif;
  color: #4a3e2c;
  font-size: 18px;
  line-height: 1.7;
  position: relative;
}
.guestbook-content {
  width: 100%;
  max-width: 880px;
  background:none;
  padding: 40px;
  border-radius: 16px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(2px);
}

/* 🎨 Ornament SVG u góry */
.guestbook-entry::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ccb89b" viewBox="0 0 100 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10 C 20 0, 30 20, 50 10 S 80 0, 100 10" fill="none" stroke="%23ccb89b" stroke-width="2"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
}



/* ✨ Nagłówek */
.guestbook-header {
  text-align: center;
  padding: 20px 0;
}

.book-title {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: #4a3e2c;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.book-subtitle {
  font-family: 'Crimson Text', serif;
  font-size: 1.4rem;
  color: #6a5944;
  margin-top: 10px;
}

/* 📜 Formularz */
.guestbook-form-wrapper {
    background: none;
    padding: 40px;
    margin: 50px auto;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 800px;
}

.guestbook-form-wrapper h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5em;
    color: #4a3e2c;
    text-align: center;
    margin-bottom: 30px;
}

#guestbook-form input, 
#guestbook-form textarea,
#guestbook-form button {
    font-family: 'Crimson Text', serif;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccb57a;
    background: rgba(255,255,255,0.8);
    font-size: 16px;
}

#guestbook-form button {
    background-color: #ccaa66;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#guestbook-form button:hover {
    background-color: #b28a4f;
}
/* 📌 Panel administratora */
.admin-login-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 99999; /* ✅ Podniesiony z-index, aby modal był na wierzchu */
    width: 300px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.admin-login-modal.active {
    display: flex !important; /* ✅ Wymuszone `display: flex` */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
}
.admin-login-modal.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.delete-btn {
    display: inline-block !important;
    background-color: red; /* 🔥 Dodaj kolor, aby łatwo je zobaczyć */
    color: white;
    padding: 5px;
    border-radius: 5px;
}

#guest-list .delete-btn, 
.admin-panel.active .delete-btn{
    display: inline-block !important;
    background-color: red; /* 🔥 Dodaj kolor, aby łatwo je znaleźć */
    color: white;
    padding: 5px;
    border-radius: 5px;
}
#admin-panel {
    display: none;
}

.admin-panel.active {
    display: block !important;
}
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@media screen and (max-width: 768px) {
  .guestbook-pages {
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
  }

  .guestbook-entry {
    padding: 20px 16px 20px;
    font-size: 16px;
    line-height: 1.6;
  }

  .guestbook-entry::before {
    width: 60px;
    height: 16px;
    top: 8px;
  }

  .guestbook-form-wrapper {
    padding: 20px;
    margin: 30px auto;
  }

  #guestbook-form input,
  #guestbook-form textarea,
  #guestbook-form button {
    font-size: 15px;
    padding: 10px;
  }

  .book-title {
    font-size: 2.2em;
  }

  .book-subtitle {
    font-size: 1.1em;
  }
}
