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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff6b35 0%, #f72585 50%, #b5179e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: #666;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.btn-shorten {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-shorten:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(247, 37, 133, 0.4);
}

.btn-shorten:active {
    transform: translateY(0);
}

.btn-shorten:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.result {
    display: none;
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f0, #fff0f5);
    border-radius: 16px;
    border: 2px solid #ffe0e0;
}

.result.show {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.result-url {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.result-url input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.result-url input:focus {
    outline: none;
    border-color: #ff6b35;
}

.btn-copy {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    transform: scale(1.05);
}

.btn-copy.copied {
    background: #10b981;
}

.qr-container {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.qr-container img {
    max-width: 180px;
    height: auto;
    border-radius: 8px;
}

.qr-container p {
    margin-top: 8px;
    color: #666;
    font-size: 0.9rem;
}

.btn-download-qr {
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-qr:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
}

.original-url {
    margin-top: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    word-break: break-all;
    font-size: 0.85rem;
    color: #666;
}

.original-url strong {
    color: #333;
}

.error {
    display: none;
    padding: 16px;
    background: #fee2e2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    color: #dc2626;
    font-weight: 500;
    margin-top: 16px;
}

.error.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@media (max-width: 480px) {
    .card {
        padding: 24px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .result-url {
        flex-direction: column;
    }
    
    .btn-copy {
        width: 100%;
    }
}
