.copy-btn {
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.result-box {
    transition: all 0.2s ease;
}

.result-box:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

.auto-gen-btn {
    transition: all 0.3s ease;
}

.auto-gen-btn:hover {
    transform: translateY(-2px);
}

.typing-animation {
    overflow: hidden;
    border-right: 3px solid transparent;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#floatingTopBtn {
    box-shadow: 
        0 20px 40px rgba(30, 58, 138, 1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 30px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#floatingTopBtn:hover {
    box-shadow: 
        0 30px 60px rgba(30, 58, 138, 1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 40px rgba(255, 255, 255, 0.2) inset;
    animation: float 3s ease-in-out infinite;
}

#floatingTopBtn:active {
    transform: scale(0.95) translateY(0);
    transition: transform 0.1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}