/* Premium UI for VHHC Link Shortener */
:root {
  --bg-gradient: linear-gradient(135deg, hsl(210, 30%, 12%), hsl(210, 30%, 18%));
  --card-bg: rgba(255, 255, 255, 0.08);
  --text-color: #e0e0e0;
  --accent: hsl(200, 80%, 55%);
  --border-radius: 12px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.logo {
  width: 80px;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

h1 {
  margin: 0.5rem 0 1.5rem;
  font-size: 1.8rem;
  color: var(--accent);
}

form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

input[type="url"] {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255,255,255,0.12);
  color: var(--text-color);
  font-size: 0.95rem;
}

button {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover { background: hsl(200, 80%, 45%); }
button:active { transform: scale(0.97); }

#result {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

#result.hidden { display: none; }

#short-url {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255,255,255,0.12);
  color: var(--text-color);
}

#copy-btn {
  padding: 0.5rem 0.8rem;
  background: var(--accent);
  border: none;
  border-radius: var(--border-radius);
  color: #fff;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: var(--border-radius);
  opacity: 0;
  transition: opacity 0.3s;
}

.toast.show { opacity: 1; }
