/* RESET & UMUM */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* ...existing code... */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-container {
  background: #fff;
  max-width: 370px;
  margin: 48px auto 0 auto;
  padding: 32px 28px 24px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.07);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #2e8b57;
  font-weight: 600;
}

.login-container form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-container input {
  padding: 10px 12px;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  font-size: 1em;
  transition: border 0.2s;
}

.login-container input:focus {
  border: 1.5px solid #2e8b57;
  outline: none;
}

.login-container button {
  background: #2e8b57;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-container button:hover {
  background: #256d47;
}

.login-container .google-login {
  display: block;
  margin: 18px auto 0 auto;
  text-align: center;
  color: #2e8b57;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.login-container .google-login:hover {
  color: #256d47;
  text-decoration: underline;
}

/* ...existing code... */

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2ecc71;
  padding: 1rem 2rem;
  color: white;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img {
  width: 40px;
  height: 40px;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.navbar-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.navbar-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* CONTAINER UTAMA */
.container {
  flex: 1;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

/* FORM */
.form-box {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-box label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.form-box input,
.form-box select,
.form-box textarea,
.form-box button {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-box button {
  background-color: #2ecc71;
  color: white;
  border: none;
  margin-top: 1rem;
  cursor: pointer;
  font-weight: bold;
}

.form-box button:hover {
  background-color: #27ae60;
}

/* TABEL */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: white;
}

table th,
table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

table th {
  background-color: #2ecc71;
  color: white;
}

/* FOOTER */
.footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

/* CHAT BOX */
.chat-box {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
}

.message {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
}

.message.admin {
  background-color: #ecf0f1;
}

.message.user {
  background-color: #dff9fb;
  text-align: right;
}

/* LAPORAN */
.laporan-item {
  background-color: #fff;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .navbar-links {
    display: none;
    flex-direction: column;
    background-color: #27ae60;
    position: absolute;
    top: 60px;
    right: 0;
    padding: 1rem;
    border-radius: 0 0 0 10px;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .container {
    padding: 1rem;
  }

  table {
    font-size: 0.9rem;
  }
}
#chat-container, #admin-chat-messages {
  max-width: 600px;
  margin: auto;
  border: 1px solid #ccc;
  padding: 1rem;
  min-height: 400px;
  overflow-y: auto;
  background: #f9f9f9;
}

.bubble {
  padding: 8px 12px;
  margin: 8px;
  border-radius: 10px;
  max-width: 80%;
}

.bubble.left {
  background: #e0e0e0;
  text-align: left;
}

.bubble.right {
  background: #acf2bd;
  text-align: right;
  margin-left: auto;
}
    html, body {
      height: 100%;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background: #f7fafc;
    }
    header, footer {
      flex-shrink: 0;
    }
    #chat-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 100%;
      max-width: 800px;
      margin: 0 auto;
      padding: 32px 16px 16px 16px;
      box-sizing: border-box;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.07);
      min-height: 500px;
    }
    #chat-container h2 {
      margin-bottom: 16px;
      color: #2e7d32;
      font-weight: 700;
      font-size: 1.5rem;
      letter-spacing: 1px;
    }
    #chat-messages {
      width: 100%;
      height: 350px;
      overflow-y: auto;
      border: 1px solid #cfd8dc;
      padding: 16px;
      margin-bottom: 16px;
      background: #f5f5f5;
      border-radius: 10px;
      box-sizing: border-box;
    }
    .bubble {
      padding: 10px 16px;
      margin: 8px 0;
      border-radius: 16px;
      max-width: 70%;
      font-size: 1rem;
      word-break: break-word;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      transition: background 0.2s;
    }
    .left {
      background-color: #eee;
      text-align: left;
      align-self: flex-start;
    }
    .right {
      background-color: #a6e6a6;
      text-align: right;
      align-self: flex-end;
    }
    #chat-form {
      display: flex;
      gap: 12px;
      width: 100%;
      align-items: center;
      margin-top: 8px;
    }
    #contentInput {
      flex: 1;
      padding: 10px 14px;
      border: 1px solid #bdbdbd;
      border-radius: 8px;
      font-size: 1rem;
      background: #f9f9f9;
      transition: border 0.2s;
    }
    #contentInput:focus {
      border-color: #2e7d32;
      outline: none;
      background: #fff;
    }
    #imageInput {
      padding: 6px;
      border-radius: 8px;
      background: #f9f9f9;
      border: 1px solid #bdbdbd;
      font-size: 0.95rem;
      width: 140px;
    }
    button[type="submit"] {
      background: linear-gradient(90deg, #43ea7c 0%, #2e7d32 100%);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 10px 22px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(67,234,124,0.08);
      transition: background 0.2s, box-shadow 0.2s;
    }
    button[type="submit"]:hover {
      background: linear-gradient(90deg, #2e7d32 0%, #43ea7c 100%);
      box-shadow: 0 4px 16px rgba(67,234,124,0.15);
    }
    @media (max-width: 700px) {
      #chat-container {
        max-width: 98vw;
        padding: 12px 4px;
      }
      #chat-messages {
        height: 220px;
        padding: 8px;
      }
      #chat-form {
        flex-direction: column;
        gap: 8px;
      }
      #imageInput {
        width: 100%;
      }
    }