/* Modern Online Downloader - Design Fixo e Profissional */

.online-downloader {
    background: linear-gradient(45deg, 
        #0f55b1 0%, 
        #1a73e8 12%, 
        #0f6be4 25%, 
        #1a73e8 37%, 
        #0d47a1 50%, 
        #1a73e8 62%, 
        #0f6be4 75%, 
        #1a73e8 87%, 
        #0f55b1 100%);
    background-size: 400% 400%;
    animation: snowFall 15s ease-in-out infinite, snowGlow 8s ease-in-out infinite;
    position: relative;
    padding: 60px 0;
    margin: 0;
    z-index: 1;
    overflow: hidden;
}

.online-downloader::before {
    content: '';
    position: absolute;
    top: -222%;
    left: -50%;
    width: 220%;
    height: 247%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 30%, transparent 70%);
    animation: snowParticles 12s ease-in-out infinite;
    z-index: 1;
}

.online-downloader::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.9), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: snowFlakes 18s ease-in-out infinite;
    z-index: 1;
}

.online-downloader .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.online-downloader h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Modern Download Form */
.download-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(26, 115, 232, 0.15),
        0 0 0 1px rgba(26, 115, 232, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.download-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #1557b0, #0d47a1, #1976d2);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Input de Busca - Design Completamente Novo */
.search-input-wrapper {
    margin-bottom: 2rem;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background-color: #f8f9fa;
    color: #202124;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #9e9e9e;
    font-weight: 400;
    transition: all 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0.7;
    transform: translateX(10px);
}

/* Mensagens de Modo - Design com Efeitos */
.mode-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border-left: 4px solid;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.08);
    animation: slideInDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.mode-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: shimmer 2s ease-in-out infinite;
}

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Modo Busca - Cor Verde */
.search-mode-info {
    border-left-color: #1ae824;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(10, 226, 125, 0.315), rgba(44, 122, 224, 0.568));
}

.search-mode-info .info-icon {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Modo Download - Cor Azul */
.download-mode-info {
    border-left-color: #16d31f;
    color: #f0f0f0;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(28, 168, 82, 0.1));
}

.download-mode-info .info-icon {
    font-size: 24px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.info-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
}

.info-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Indicador de Plataforma - Design Compacto */
.platform-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 2px solid;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.1);
    animation: slideInUp 0.5s ease-out;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.platform-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.platform-indicator:hover::before {
    left: 100%;
}

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

/* Ícone da Plataforma - Compacto */
.platform-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.platform-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Informações da Plataforma - Compacto */
.platform-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.platform-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.platform-status {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Cores e Efeitos por Plataforma */

/* YouTube - Vermelho */
.platform-indicator.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-color: #ff0000;
    color: white;
}

.platform-indicator.youtube:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

/* Spotify - Verde */
.platform-indicator.spotify {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    border-color: #1db954;
    color: white;
}

.platform-indicator.spotify:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.3);
}

/* SoundCloud - Laranja */
.platform-indicator.soundcloud {
    background: linear-gradient(135deg, #ff8800 0%, #ff7700 100%);
    border-color: #ff8800;
    color: white;
}

.platform-indicator.soundcloud:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(255, 136, 0, 0.3);
}

/* Deezer - Roxo */
.platform-indicator.deezer {
    background: linear-gradient(135deg, #ff0066 0%, #cc0052 100%);
    border-color: #ff0066;
    color: white;
}

.platform-indicator.deezer:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(255, 0, 102, 0.3);
}

/* Apple Music - Rosa */
.platform-indicator.apple-music {
    background: linear-gradient(135deg, #fa243c 0%, #c41e3a 100%);
    border-color: #fa243c;
    color: white;
}

.platform-indicator.apple-music:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(250, 36, 60, 0.3);
}

/* Estado de Erro */
.platform-indicator.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: white;
}

.platform-indicator.error:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

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

/* Modern Download Options */
.download-options {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.select-container {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.format-select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right 1.2rem center;
    background-repeat: no-repeat;
    background-size: 1.2rem;
    padding-right: 3rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    color: #202124;
    font-weight: 500;
}

.format-select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}

.format-select:hover {
    border-color: #1a73e8;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
    transform: translateY(-1px);
}

.format-select option {
    padding: 1rem;
    font-size: 1rem;
    background: white;
    color: #202124;
    transition: all 0.2s ease;
}

.format-select option:checked {
    background: #1a73e8;
    color: white;
    font-weight: 600;
}

.format-select option:hover {
    background-color: #f0f7ff;
}

.format-select option[value=""] {
    color: #9e9e9e;
    font-style: italic;
}

/* Modern Download Button */
.download-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-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.6s;
}

.download-btn:hover::before {
    left: 100%;
}

/* Download Mode Button - AZUL (seguindo padrão do site) */
.download-btn:not(.search-mode) {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
    animation: downloadPulse 2s ease-in-out infinite;
}

@keyframes downloadPulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(26, 115, 232, 0.5);
        transform: scale(1.02);
    }
}

/* Botão Bloqueado - VERMELHO */
.download-btn.locked {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
    position: relative;
    cursor: not-allowed;
    opacity: 0.9;
    animation: lockedPulse 2s ease-in-out infinite;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn.locked svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: lockShake 2s ease-in-out infinite;
}

@keyframes lockShake {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
    }
    25% { 
        transform: rotate(-8deg) scale(1.1);
    }
    50% { 
        transform: rotate(0deg) scale(1.05);
    }
    75% { 
        transform: rotate(8deg) scale(1.1);
    }
}

@keyframes lockedPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(229, 62, 62, 0.5);
        transform: scale(1.02);
    }
}

/* Removido - ícones de cadeado não são mais necessários */

/* Removido - animações de cadeado não são mais necessárias */

.download-btn.locked:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
    background: linear-gradient(135deg, #e53e3e, #c53030);
}

.download-btn.locked:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.5);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.download-btn.locked.clicked {
    animation: lockClickShake 0.6s ease-in-out;
}

@keyframes lockClickShake {
    0%, 100% { 
        transform: scale(0.98);
    }
    25% { 
        transform: scale(0.95) translateX(-2px);
    }
    50% { 
        transform: scale(0.95) translateX(2px);
    }
    75% { 
        transform: scale(0.95) translateX(-1px);
    }
}

/* Removido - animação de balanço dos cadeados não é mais necessária */

/* Animação de desbloqueio */
.download-btn.unlocking {
    animation: unlockAnimation 1s ease-in-out;
}

@keyframes unlockAnimation {
    0% {
        background: linear-gradient(135deg, #e53e3e, #c53030);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        transform: scale(1.1);
    }
    100% {
        background: linear-gradient(135deg, #1a73e8, #1557b0);
        transform: scale(1);
    }
}

.download-btn:not(.search-mode):hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(26, 115, 232, 0.4);
    background: linear-gradient(135deg, #1557b0, #1a73e8);
}

/* Search Mode Button - AZUL (seguindo padrão do site) */
.download-btn.search-mode {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
    }
    50% { 
        box-shadow: 0 6px 30px rgba(26, 115, 232, 0.5);
    }
}

.download-btn.search-mode:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(26, 115, 232, 0.4);
    animation: none;
    background: linear-gradient(135deg, #1557b0, #1a73e8);
}

.download-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Modern Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Notificação de Botão Bloqueado */
.locked-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
    font-weight: 600;
    z-index: 1000;
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 300px;
    border-left: 4px solid #ff6b6b;
}

.locked-notification::before {
    content: '🔒';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.error-message {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

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

/* Download Status */
.download-status {
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    color: #202124;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 115, 232, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .online-downloader {
        padding: 40px 0;
        min-height: auto;
    }
    
    .online-downloader h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .download-form {
        padding: 2rem;
        margin: 0 10px;
    }
    
    .download-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .select-container {
        min-width: 100%;
    }
    
    .download-btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Removido - ícones de cadeado não são mais necessários */
    
    .search-input-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .mode-info {
        padding: 14px 18px;
        margin-bottom: 18px;
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
    
    .info-content h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .info-content p {
        font-size: 14px;
        line-height: 1.4;
        margin: 0;
    }
    
    .info-icon {
        font-size: 24px;
        flex-shrink: 0;
    }
    
    .info-content {
        flex: 1;
    }
    
    .platform-indicator {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .online-downloader h2 {
        font-size: 2rem;
    }
    
    .download-form {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .url-input, .format-select, .download-btn {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .download-btn.locked {
        font-size: 0.9rem;
    }
    
    .download-btn.locked svg {
        width: 16px;
        height: 16px;
    }
    
    .locked-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .mode-info {
        padding: 10px 12px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .info-content h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .info-content p {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .info-icon {
        font-size: 22px;
    }
    
    .platform-indicator {
        max-width: 100%;
        padding: 8px 12px;
        margin-bottom: 12px;
    }
    
    .platform-icon {
        width: 32px;
        height: 32px;
    }
    
    .platform-icon-img {
        width: 20px;
        height: 20px;
    }
    
    .platform-name {
        font-size: 13px;
    }
    
    .platform-status {
        font-size: 9px;
    }
}

/* Loading States */
.download-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.download-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Removed floating elements and parallax effects */

/* Micro-interactions Aprimoradas */
.url-input-container:focus-within .paste-button {
    transform: scale(1.02);
}

/* Garantir que o botão fique perfeitamente alinhado */
.url-input-container {
    align-items: stretch;
}

.input-with-icon {
    align-items: stretch;
}

.format-select:focus {
    transform: translateY(-2px) scale(1.02);
}

/* Efeito de loading no input */
.url-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.url-input:disabled + .input-icon {
    opacity: 0.5;
}

/* Animação sutil para o container */
@keyframes subtlePulse {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }
    50% { 
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12);
    }
}

.url-input-container.loading {
    animation: subtlePulse 2s ease-in-out infinite;
}

/* Accessibility */
.download-btn:focus,
.url-input:focus,
.format-select:focus,
.paste-button:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .download-form {
        background: rgba(0, 0, 0, 0.3);
        color: white;
    }
    
    .url-input, .format-select {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .url-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
}

/* Efeito de neve caindo */
@keyframes snowFall {
    0% {
        background-position: 0% 0%;
        transform: translateY(0);
    }
    20% {
        background-position: 20% 20%;
        transform: translateY(-5px);
    }
    40% {
        background-position: 40% 40%;
        transform: translateY(-10px);
    }
    60% {
        background-position: 60% 60%;
        transform: translateY(-15px);
    }
    80% {
        background-position: 80% 80%;
        transform: translateY(-10px);
    }
    100% {
        background-position: 100% 100%;
        transform: translateY(0);
    }
}

/* Efeito de brilho da neve */
@keyframes snowGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.2),
            0 0 40px rgba(255, 255, 255, 0.1),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(255, 255, 255, 0.4),
            0 0 80px rgba(255, 255, 255, 0.2),
            inset 0 0 40px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.2),
            0 0 40px rgba(255, 255, 255, 0.1),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

/* Efeito de partículas de neve */
@keyframes snowParticles {
    0% {
        transform: translateY(-100%) translateX(0) scale(0.3);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    15% {
        opacity: 1;
        transform: translateY(-80%) translateX(10px) scale(0.5);
    }
    85% {
        opacity: 1;
        transform: translateY(80%) translateX(40px) scale(0.8);
    }
    95% {
        opacity: 0.6;
        transform: translateY(100vh) translateX(50px) scale(1);
    }
    100% {
        transform: translateY(120vh) translateX(60px) scale(1.1);
        opacity: 0;
    }
}

/* Efeito de flocos de neve individuais */
@keyframes snowFlakes {
    0% {
        transform: translateY(-100%) translateX(0);
        opacity: 0;
    }
    8% {
        opacity: 0.7;
        transform: translateY(-90%) translateX(5px);
    }
    15% {
        opacity: 1;
        transform: translateY(-80%) translateX(15px);
    }
    25% {
        transform: translateY(-60%) translateX(25px);
    }
    50% {
        transform: translateY(0%) translateX(50px);
    }
    75% {
        transform: translateY(60%) translateX(75px);
    }
    85% {
        opacity: 1;
        transform: translateY(80%) translateX(85px);
    }
    92% {
        opacity: 0.5;
        transform: translateY(100vh) translateX(95px);
    }
    100% {
        transform: translateY(120vh) translateX(100px);
        opacity: 0;
    }
}
