/* --- Reset & Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; 
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212; 
  color: #e0e0e0; 
  line-height: 1.6;
}

/* --- Header & Navigation --- */
header {
  background-color: #1f1f1f;
  position: sticky; 
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #00bcd4; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem 0;
  flex-wrap: wrap;
}

nav li {
  margin: 0 15px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

/* Active State Indicator */
nav a.active {
  color: #00bcd4;
}

nav a.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #00bcd4;
}

nav a:hover {
  color: #00bcd4; 
}

/* --- Layout Sections --- */
section {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  min-height: 80vh; /* Agar konten tidak terlalu pendek */
}

h1, h2 {
  color: #00bcd4;
  margin-bottom: 20px;
}

h2 {
  border-left: 5px solid #00bcd4;
  padding-left: 15px;
  font-size: 2rem;
}

/* --- Styling Buku Tamu (Adapted for Dark Theme) --- */
#guestForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 50px;
  background-color: #1f1f1f;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

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

input, textarea {
  padding: 15px;
  border: 1px solid #444; /* Warna border disesuaikan dengan tema gelap */
  background-color: #121212; /* Background gelap untuk input */
  color: #e0e0e0; /* Teks terang */
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  padding: 12px 25px;
  background-color: #00bcd4;
  color: #121212; /* Teks gelap di atas tombol terang */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

button:hover {
  background-color: #ffffff;
  color: #00bcd4;
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.6);
}

.entry {
  background: #1f1f1f; /* Mengubah background dari hijau terang ke gelap */
  color: #e0e0e0;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #00bcd4;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  animation: fadeIn 0.5s ease-in-out;
}

.entry strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.entry p {
  color: #bbb;
  font-size: 0.95rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 30px;
  background-color: #1f1f1f;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  margin-top: 50px;
}

/* --- Responsiveness --- */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav li {
    margin: 10px 0;
  }

  #guestForm {
    padding: 20px;
  }
}

/* Animasi Masuk */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}