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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f9fafb 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 480px;
    text-align: center;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a78bfa, #3b82f6, #10b981);
}

.card h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

#input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    outline: none;
    transition: all 0.2s ease;
    background: #fafbfc;
    color: #374151;
}

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

#input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 18px;
}

#btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

#btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#btn:hover::before {
    left: 100%;
}

#btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

#btn:active {
    transform: translateY(0);
}

#result {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: pre-wrap;
    position: relative;
}

#result::before {
    content: '✨';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 20px;
    opacity: 0.6;
}

#result.loading {
    color: #3b82f6;
    font-style: italic;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@media (max-width: 480px) {
    .card {
        padding: 32px 24px;
        margin: 12px;
    }
    
    #input, #btn {
        padding: 14px 18px 14px 44px;
        font-size: 16px;
    }
    
    .input-icon {
        left: 16px;
        font-size: 16px;
    }
}