:root {
    --bg-color: #0f0a1e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary-color: #9d4edd;
    --primary-hover: #7b2cbf;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #c77dff;
    --danger-color: #ff4d4d;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(157, 78, 221, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(199, 125, 255, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

p.subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.shortener-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="url"], input[type="text"] {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    text-align: center;
}

input[type="url"]:focus, input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
}

button {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: var(--primary-hover);
}

button:active {
    transform: scale(0.98);
}

.result {
    margin-top: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.result.active {
    display: flex;
}

.result p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.error-message {
    color: var(--danger-color);
    margin-top: 1rem;
    display: none;
}

p.subtitle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

p.subtitle a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.4);
}

footer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.4);
}
