@charset "UTF-8";
/*
 style.scss (m4u3)
 Syfte: Samlad styling för login, register, admin + gästbok.
 */
.pwchange-wrap {
  max-width: 400px;
  margin: 50px auto;
  background: #f7f7fa;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 28px 32px 22px 32px;
  color: #333;
  text-align: center;
}
.pwchange-wrap h2 {
  margin-top: 0;
  color: #7c5a5a;
  font-size: 1.3rem;
  font-weight: 600;
}
.pwchange-wrap form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.pwchange-wrap form input[type=password] {
  padding: 12px;
  font-size: 1.08rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #f9f6f6;
}
.pwchange-wrap form button {
  background: #a67c7c;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.pwchange-wrap form button:hover {
  background: #7c5a5a;
}

/* Guestbook page styling – gästbokskort + formulär */
.guestbook-wrap {
  max-width: 500px;
  margin: 25px auto;
  margin-bottom: 5px;
  background: #f7f7fa;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 28px 32px 22px 32px;
  color: #333;
  text-align: center;
}
.guestbook-wrap h2 {
  margin-top: 0;
  color: #7c5a5a;
  font-size: 1.3rem;
  font-weight: 600;
}
.guestbook-wrap form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.guestbook-wrap form input[type=text] {
  padding: 12px;
  font-size: 1.08rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #f9f6f6;
}
.guestbook-wrap form textarea {
  padding: 8px;
  font-size: 1.08rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #f9f6f6;
  min-height: 70px;
  resize: vertical;
}
.guestbook-wrap form button {
  background: #a67c7c;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.guestbook-wrap form button:hover {
  background: #7c5a5a;
}

.guestbook-entries {
  margin-top: 18px;
  text-align: left;
}

.guestbook-entry {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  width: 100%;
  padding: 10px;
  padding-bottom: 8px;
  box-sizing: border-box;
  position: relative;
  min-width: 0;
  white-space: pre-line;
  margin-bottom: 10px;
  font-size: 0.98rem;
  color: #444;
}
.guestbook-entry .gb-btn-group {
  display: flex;
  gap: 6px !important;
  margin-top: 2px !important;
  justify-content: flex-start;
}

.gb-btn {
  background: #f3eaea;
  color: #7c5a5a;
  border: none;
  border-radius: 4px;
  font-size: 0.85em !important;
  min-width: unset !important;
  margin-bottom: -10px !important;
  padding: 10px !important;
  margin-top: 3px !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  outline: none;
}
.gb-btn:hover {
  background: #a67c7c;
  color: #fff;
}

.gb-delete {
  background: rgba(228, 22, 22, 0.2588235294) !important;
  color: #a72927 !important;
}
.gb-delete:hover {
  background: #a94442;
  color: #fff;
}

.gb-edit {
  background: rgba(39, 239, 39, 0.3529411765) !important;
  color: #256029 !important;
}
.gb-edit:hover {
  background: #256029;
  color: #fff;
}

.gb-save {
  background: #fff3cd;
  color: #856404;
  position: absolute;
  top: 10px;
  right: 30px;
  padding: 2px 10px;
  font-size: 0.85em;
  border-radius: 4px;
  border: 1px solid #ffeeba;
}
.gb-save:hover {
  background: #856404;
  color: #fff;
}

.back-link {
  display: inline-block;
  margin-top: 14px;
  color: #7c5a5a;
  background: #f3eaea;
  border-radius: 5px;
  padding: 7px 18px;
  font-size: 1.05rem;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: background 0.2s, color 0.2s;
}
.back-link:hover {
  background: #a67c7c;
  color: #fff;
  text-decoration: underline;
}

/* Admin welcome and info styling */
.admin-welcome {
  max-width: 500px;
  margin: 25px auto 0 auto;
  background: #f7f7fa;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 24px 32px 18px 32px;
  color: #333;
  text-align: center;
}
.admin-welcome h2 {
  margin-top: 0;
  color: #7c5a5a;
  font-size: 1.5rem;
  font-weight: 600;
}
.admin-welcome h3 {
  color: #4a2c2a;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.admin-welcome p {
  font-size: 1.08rem;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
}
.admin-actions a:nth-child(-n+2) {
  margin-bottom: 16px;
}
.admin-actions a,
.admin-actions button {
  background: #a67c7c;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.admin-actions a:hover,
.admin-actions button:hover {
  background: #7c5a5a;
}

.notice {
  max-width: 350px;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#top-notice {
  position: relative;
  top: 60px;
  margin-bottom: -90px !important;
  padding: 10px !important;
  z-index: 2;
  display: block;
}

/* Notice variants (error/success/warning) */
.notice.error {
  background: #ffeaea;
  color: #a94442;
  border: 1.5px solid #f5c6cb;
  padding: 5px !important;
  margin-bottom: 20px !important;
}

.notice.success {
  background: #eaffea;
  color: #256029;
  border: 1.5px solid #b7f5c6;
}

#sparat {
  background: #eaffea;
  color: #256029;
  border: 1.5px solid #b7f5c6;
  margin-top: 20px;
  margin-bottom: 10px !important;
  padding: 8px !important;
  max-width: 250px !important;
}

.notice.warning {
  background: #fff3cd;
  color: #856404;
  border: 1.5px solid #ffeeba;
}

.infowall {
  max-width: 500px;
  margin: 20px auto;
  background: #f7f7fa;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 24px 32px;
  color: #333;
  font-size: 1.08rem;
  text-align: left;
}
.infowall h2 {
  margin-top: -10px;
  color: #7c5a5a;
  font-size: 1.3rem;
  text-align: center;
}
.infowall ul {
  text-decoration: none;
  list-style-type: none;
}

/*
  Responsivitet för olika skärmar (breakpoints)
   */
@media (max-width: 900px) {
  #frm1 {
    width: 40%;
    margin-top: 100px;
    padding: 20px 10px 30px 10px;
  }
}
@media (max-width: 600px) {
  #frm1 {
    width: 90%;
    margin-top: 40px;
    padding: 10px 2vw 20px 2vw;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  #frm1 form h3 {
    font-size: 1.1rem;
  }
  #frm1 form input,
  #frm1 form button {
    font-size: 1rem;
    padding: 8px;
  }
}
#frm1 {
  margin: auto;
  width: 17.5%;
  margin-top: 200px;
  background-color: rgba(253, 209, 209, 0.75);
  padding: 30px 40px 50px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
#frm1 form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#frm1 form h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #4a2c2a;
  letter-spacing: 1px;
  font-size: 24px;
}
#frm1 form h3 .sp {
  font-size: 1rem;
}
#frm1 form input[type=text],
#frm1 form input[type=password] {
  margin-bottom: 10px;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 1rem;
  background: #f9f6f6;
  transition: border 0.2s;
}
#frm1 form input[type=text]:focus,
#frm1 form input[type=password]:focus {
  border: 1.5px solid #a67c7c;
  outline: none;
}
#frm1 form button {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  background: #a67c7c;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
#frm1 form button:hover {
  background: #7c5a5a;
}
#frm1 form #chk {
  margin-left: 0;
  accent-color: #a67c7c;
}
#frm1 form #lbl {
  margin-top: -10px !important;
  font-size: 0.95rem;
  color: #4a2c2a;
}

.check {
  font-size: 20px;
  color: rgba(87, 99, 121, 0.84);
}