:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, #1e1b4b 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 480px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

h1 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #334155;
    border-radius: 0.75rem;
    background-color: #0f172a;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.result-card {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.short-url {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #818cf8;
    text-decoration: none;
    word-break: break-all;
    margin-bottom: 1rem;
}

.short-url:hover {
    text-decoration: underline;
}

.error-message {
    color: #f87171;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

.copy-btn {
    background-color: #334155;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.copy-btn:hover {
    background-color: #475569;
    box-shadow: none;
}

/* Mobile responsive layout */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
    }

    .container {
        min-height: 100vh;
        border-radius: 0;
        border: none;
        padding: 2.5rem 1.5rem;
        box-shadow: none;
    }
}
