/* ============ Reset & Font ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

a {
  pointer-events: auto;
  z-index: 1;
  position: relative;
  text-decoration: none;
}

/* ============ Body ============ */
body {
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* ============ Header ============ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 10px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #0077ff;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: #0077ff;
}

/* ============ Dropdown ============ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 150px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 10px;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ============ Hero Section ============ */
.hero {
  background: linear-gradient(rgba(0, 119, 204, 0.7), rgba(0, 119, 204, 0.7)),
    url('hero-bg.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta {
  background: #00cc66;
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 1rem;
  display: inline-block;
}

/* ============ Section Umum ============ */
section {
  padding: 2rem;
}

h2 {
  margin-bottom: 1rem;
  text-align: center;
}

/* ============ Kegiatan ============ */
.kegiatan {
  background: #fff;
}

.kegiatan-list {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.kegiatan-item {
  background: #0077cc;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  min-width: 150px;
  text-align: center;
  transition: background 0.3s ease;
}

.kegiatan-item:hover {
  background: #005fa3;
}

/* ============ Formulir ============ */
main.form-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.form-section h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.form-section .desc {
  color: #777;
  margin-bottom: 30px;
}

.form-section form {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="password"],
.form-section select {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-section fieldset {
  border: none;
  margin: 1rem 0;
}

.form-section label {
  display: block;
  margin: 0.5rem 0;
}

.form-section button {
  background: #00cc66;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
}

.form-section p a {
  color: #0077cc;
}

.form-section p a:hover {
  text-decoration: underline;
}

/* ============ Checkbox Group ============ */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-item {
  flex: 1 1 45%;
  background: #f0f0f0;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============ Absensi ============ */
#absensi {
  background: #fff;
}

#absensi select {
  display: block;
  margin: 0 auto 1rem;
  padding: 0.5rem;
}

#absensi table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

#absensi th,
#absensi td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
}

/* ============ Galeri ============ */
#galeri {
  background: #eef2f7;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.img-card {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  background: white;
  transition: transform 0.3s;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.img-card:hover img {
  transform: scale(1.1);
}

/* ============ Footer ============ */
footer {
  text-align: center;
  padding: 20px;
  background: #fff;
  color: #555;
  font-size: 14px;
  margin-top: 40px;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

/* ============ Dark Mode ============ */
.dark-mode-toggle {
  color: white;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
}

body.dark {
  background: #1e1e1e;
  color: #eee;
}

body.dark header,
body.dark footer {
  background: #111;
  color: #fff;
}

body.dark .form-section,
body.dark #galeri,
body.dark #absensi,
body.dark .kegiatan {
  background: #2c2c2c;
}

body.dark .form-section form {
  background: #1a1a1a;
  color: #fff;
}

body.dark .form-section input,
body.dark .form-section select {
  background: #333;
  border-color: #555;
  color: #eee;
}

body.dark .kegiatan-item {
  background: #005fa3;
}

body.dark .galeri-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #00cc66;
}

/* ============ Tombol Umum ============ */
a.btn {
  padding: 6px 12px;
  background-color: #0077cc;
  color: white;
  border-radius: 5px;
  font-size: 0.9rem;
}

a.btn:hover {
  background-color: #005fa3;
}

.btn-danger {
  background-color: red;
}

.btn-danger:hover {
  background-color: darkred;
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.step {
  display: none;
}
.step.active {
  display: block;
}

.form-navigation {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.filter-form .form-group {
  display: flex;
  flex-direction: column;
}

.filter-form label {
  font-weight: 500;
  margin-bottom: 5px;
}

.filter-form input,
.filter-form select {
  padding: 10px;
  min-width: 200px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

@media (max-width: 600px) {
  .filter-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-form .form-group {
    width: 100%;
  }

  .filter-form input,
  .filter-form select {
    width: 100%;
  }
}