* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #f8fafc;
}

.card {
  background: #1e293b;
  padding: 32px;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="url"] {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  font-size: 0.95rem;
}

input[type="url"]:focus {
  outline: 2px solid #38bdf8;
}

button {
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.9;
}

.result-box {
  margin-top: 20px;
  padding: 14px;
  background: #0f172a;
  border-radius: 6px;
  border: 1px solid #334155;
}

.result-box.hidden {
  display: none;
}

.label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 8px;
}

.result-row a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

#copy-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  background: #334155;
  color: #fff;
}

#copy-btn:hover {
  background: #475569;
}

#status-msg {
  margin-top: 12px;
  font-size: 0.85rem;
  text-align: center;
}

