* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e293b;
    color: #e2e8f0;
}
.app {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
}
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
/*bagian 3  */
h1 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

input {
    flex: 1;
    padding: 10px;
    border:1px solid #475569;
    border-radius: 8px;
    background-color: #334155;
    color: #f1f5f9;
    font-size:1rem;
    width: 100%;
    outline: none;
}

input::placeholder {
    color: #94a3b8;
}

button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #0ea5e9;
    color: white;
    cursor: pointer;
    margin-left: 8px;
}

button:hover {
    background-color: #0284c7;

}

.temp {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

.desc {
    text-transform: capitalize;
    color: #94a3b8;
    margin-bottom: 16px;
}

.details {
    display: flex;
    justify-content: space-around;
    background-color: rgb(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px;
}

.details p {
    font-size: 0.85rem;
    color: #cbd5e1;
}

#result {
    margin-top: 20px;
}

#result h2 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.error {
  color: #f87171;
  background-color: rgba(239, 68, 68, 0.1);
  padding: 12px;
  border-radius: 8px;
}

.reco-btn {
  margin-top: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: #8b5cf6;
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
}

.reco-btn:hover {
  background-color: #7c3aed;
}

#modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#modal {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
}

.close-btn:hover {
  color: #f1f5f9;
}

#modal-title {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #c4b5fd;
}

#modal-content {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #cbd5e1;
}