* { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ff9a56, #ff6a00);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  text-align: center;
  padding-bottom: 60px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
#result {
  font-size: 1.8rem;
  font-weight: bold;
  background: rgba(255,255,255,0.15);
  padding: 20px 40px;
  border-radius: 20px;
  margin: 30px 0 10px;
  min-height: 60px;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  cursor: pointer;
}
#copyHint {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 20px;
}
.btn-row { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
button {
  font-size: 1.1rem;
  padding: 14px 30px;
  border: none;
  border-radius: 50px;
  background: #ffffff;
  color: #ff6a00;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
button:active { transform: scale(0.95); }
button.secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
#history {
  margin-top: 30px;
  max-width: 500px;
  width: 90%;
}
#historyHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
#historyHeader h3 { margin: 0; font-size: 1rem; opacity: 0.9; }
#clearHistoryBtn {
  font-size: 0.75rem;
  padding: 6px 14px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  box-shadow: none;
}
#history ul { list-style: none; padding: 0; margin: 0; }
#history li {
  background: rgba(255,255,255,0.12);
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
#history li span.copyIcon { cursor: pointer; opacity: 0.7; margin-left: 10px; }
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.25);
  padding: 10px;
  font-size: 0.8rem;
  opacity: 0.85;
}
