:root {
  --primary: #6d28d9;
  --secondary: #8b5cf6;
  --dark: #1e293b;
  --light: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f3e8ff, #ede9fe);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 600px;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 3rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

h1 span {
  color: var(--primary);
}

.form-container {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
}

input {
  flex: 1;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

button {
  padding: 0 25px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

.result-box {
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#shortUrl {
  flex: 1;
  padding: 15px;
  color: var(--primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copyBtn {
  border-radius: 0;
}

.stats {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 150px;
}

.stat-card span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card p {
  color: var(--dark);
  opacity: 0.8;
}

@media (max-width: 600px) {
  .form-container {
    flex-direction: column;
  }
  
  button {
    padding: 15px;
  }
}