/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Página de idiomas */
.language-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.language-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 100%;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

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

.language-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.language-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.language-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.language-btn .flag {
    font-size: 1.5rem;
    margin-right: 1rem;
    display: inline-block;
    width: 2rem;
    text-align: center;
}

.language-btn .language-name {
    flex: 1;
}

.continue-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

/* Responsividade Mobile */
@media (max-width: 576px) {
    .language-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .language-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .language-btn .flag {
        font-size: 1.25rem;
        margin-right: 0.75rem;
        width: 1.5rem;
    }
    
    .continue-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 320px) {
    .language-card {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .language-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para acessibilidade */
.language-btn:focus,
.continue-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Animação suave de entrada */
.language-card {
    animation: fadeInUp 0.6s ease-out;
}

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