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

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 42rem;
}

.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: #eab308;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.header p {
    color: #6b7280;
}

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

.input-group {
    position: relative;
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s;
    color: #1f2937;
}

input:focus {
    outline: none;
    border-color: #eab308;
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.1);
}

input::placeholder {
    color: #9ca3af;
}

button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    background: #eab308;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover:not(:disabled) {
    background: #ca8a04;
    box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.3);
}

button:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.spinner {
    animation: spin 1s linear infinite;
    width: 1.25rem;
    height: 1.25rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.result {
    margin-top: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.result-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.short-url {
    font-weight: 500;
    color: #1f2937;
}

.copy-btn {
    padding: 0.5rem;
    background: transparent;
    box-shadow: none;
}

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

.hidden {
    display: none;
}

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

@media (max-width: 640px) {
    .card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .short-url {
        font-size: 0.875rem;
    }
}