* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  color: #111827;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

h1 {
  margin-bottom: 10px;
}

.subtitle {
  margin-bottom: 25px;
  color: #6b7280;
  line-height: 1.5;
}

.input-box {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

#urlInput {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  outline: none;
  font-size: 15px;
}

#urlInput:focus {
  border-color: #2563eb;
}

button {
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: #1d4ed8;
}

.message {
  min-height: 22px;
  font-size: 14px;
  color: #dc2626;
  margin-bottom: 10px;
}

.result {
  margin-top: 10px;
  display: none;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #f3f4f6;
  padding: 12px;
  border-radius: 10px;
}

#shortUrl {
  font-size: 14px;
  word-break: break-all;
  color: #2563eb;
  text-decoration: none;
  text-align: left;
  flex: 1;
}

#shortUrl:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .input-box {
    flex-direction: column;
  }

  .result {
    flex-direction: column;
    align-items: stretch;
  }

  #shortUrl {
    text-align: center;
  }
}
