* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  overflow: hidden;
  background-color: #f4f4f4;
  padding: 0px;
  position: relative;
}

.style4 {
  position: relative;
  color: #FFFFFF;
  font-size: 36px;
}

.style6 {
  font-size: 14px;
}

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #007bff, #ff5722, #ffeb3b, #4caf50);
  background-size: 400% 400%;
  animation: backgroundAnimation 10s infinite;
  z-index: -1;
}

@keyframes backgroundAnimation {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

.app-title {
  padding-top:20px;
  margin-bottom: 10px;
  text-align: center;
  z-index: 1;
}

.app-title h1 {
  color: #fff;
  font-size: 28px;
}

.notification {
  margin-bottom: 20px;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  text-align: center;
  display: none;
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Notifikasi di section login */
.form-notification {
  background-color: #007bff;
  color: white;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
  display: none;
  position: absolute; /* Notifikasi tetap di posisi absolut */
  top: 10px; /* Jarak dari atas formulir */
  left: 50%; /* Rata tengah horizontal */
  transform: translateX(-50%);
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0; /* Tidak terlihat secara default */
  visibility: hidden; /* Disembunyikan secara default */
}

/* Ketika notifikasi aktif */
.form-notification.visible {
  opacity: 1; /* Notifikasi terlihat */
  visibility: visible;
}

/* Form Login Responsif */
.right-panel {
  background-color: #f9f9f9;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.right-panel h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.5rem;
}

#loginForm {
  width: 100%;
  max-width: 400px; /* Batas maksimal untuk form */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  width: 100%;
}

input {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #007bff;
}

button {
  padding: 10px;
  font-size: 1rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  #loginForm {
      padding: 15px;
      box-shadow: none; /* Hapus bayangan untuk layar kecil */
      border: none; /* Hapus border pada layar kecil */
  }

  .right-panel {
      padding: 10px;
  }

  h2 {
      font-size: 1.25rem;
  }

  input, button {
      font-size: 0.9rem;
  }
}




.container {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  max-width: 900px;
  border: 1px solid #ddd;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.left-panel, .right-panel {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-panel {
  background-color: #007bff;
  color: #fff;
}

.left-panel h2 {
  margin-bottom: 20px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.module-btn {
  background-color: #fff;
  color: #007bff;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.module-btn img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.module-btn span {
  font-size: 14px;
  font-weight: bold;
}

/* Efek untuk tombol aktif */
.module-btn.active {
  background-color: #4e08f1;
  color: white;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}


.external-icon {
  font-size: 0.9rem;
  color: #007bff;
  margin-left: 5px;
}

.module-btn:hover:not(.active) {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.module-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.right-panel {
  background-color: #f9f9f9;
}

.right-panel h2 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button {
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

@keyframes shake {
  0%, 100% {
      transform: translateX(0);
  }
  25% {
      transform: translateX(-5px);
  }
  75% {
      transform: translateX(5px);
  }
}

.invalid-form {
  animation: shake 0.5s;
  border: 2px solid red;
}

@media (max-width: 768px) {
  .container {
      flex-direction: column;
  }
}


/* Gaya untuk dropdown */
.module-select {
  display: none;
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 10px 0;
  background-color: #fff;
}

/* Tampilkan select box hanya pada layar kecil (ponsel) */
@media (max-width: 768px) {
  .module-select {
      display: block; /* Tampilkan dropdown pada mode ponsel */
  }

  .modules-grid {
      display: none; /* Sembunyikan tombol modul pada mode ponsel */
  }
}


/* Gaya Footer */
.footer {
  width: 100%;
  background-color: #007bff;
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .footer {
      font-size: 0.8rem;
      padding: 8px 15px;
  }
}
