/* Estilos gerais - Tema odontologia unifié */
:root {
    --primary-color: #0d6efd; /* Bleu principal unifié */
    --primary-dark: #0d6efd; /* Même bleu que primary-color */
    --secondary-color: #0d6efd; /* Même bleu que primary-color */
    --accent-color: #0d6efd; /* Même bleu que primary-color */
    --light-bg: #f8fafc; /* Fundo claro */
    --lighter-bg: #ffffff; /* Fundo mais claro */
    --dark-text: #2c3e50; /* Texto escuro */
    --medium-text: #4a5568; /* Texto médio */
    --light-text: #f8f9fa; /* Texto claro */
    --border-color: #e2e8f0; /* Cor de borda */
    --success-color: #2ecc71; /* Verde sucesso */
    --danger-color: #e74c3c; /* Vermelho perigo */
    --warning-color: #f39c12; /* Amarelo aviso */
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Estilos para o upload de arquivos */
.upload-container {
    border-style: dashed !important;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-container:hover {
    background-color: var(--bs-dark-bg-subtle);
}

.upload-container.highlight {
    border-color: var(--bs-primary) !important;
    background-color: var(--bs-dark-bg-subtle);
}

/* Estilo para a lista de arquivos */
#selected-files .file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#selected-files .remove-file {
    cursor: pointer;
    color: var(--bs-danger);
    font-size: 1.2rem;
}

/* Estilização da tabela de dados */
.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

.collapsed-table {
    max-height: 200px;
}

/* Estilização dos links de download */
.download-link {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* ===== ESTILOS PARA LANDING PAGE - TEMA ODONTOLOGIA ===== */

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* Hero section */
.hero-section {
    background-color: var(--primary-color);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    color: var(--light-text);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1606818616331-32bb5324f7b3?q=80&w=2070');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Feature sections */
.feature-section {
    padding: 5rem 0;
}

.feature-section.bg-light {
    background-color: var(--lighter-bg);
}

.feature-section.bg-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.bg-primary .section-title {
    color: var(--light-text);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--medium-text);
}

.bg-primary .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.1);
}

.bg-primary .feature-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
}

.feature-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--lighter-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(rgba(255,255,255,0.9));
}

.bg-primary .feature-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    padding: 5rem 0;
    position: relative;
    color: var(--light-text);
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.btn-cta {
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #ffffff;
    padding: 3rem 0 1.5rem;
    color: var(--primary-color);
}

.footer p {
    color: var(--primary-color);
}

.footer .small {
    color: var(--primary-color);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 0.75rem;
    display: block;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
    opacity: 0.8;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    margin-right: 0.75rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Style pour le bouton "Nous contacter" dans le footer */
.footer .btn-outline-light {
    background-color: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer .btn-outline-light:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Override des autres classes de texte blanc qui pourraient affecter le footer */
.footer .text-white, 
.footer .text-white-50 {
    color: var(--primary-color) !important;
}

/* Animações */
.fade-in {
    animation: fadeIn 1s ease;
}

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

/* Estilos para formulários */
.form-floating > label {
    color: #495057;
    opacity: 1;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    opacity: 0.8;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    border-color: var(--primary-color);
}

.form-floating > .form-control::placeholder {
    color: #6c757d;
    opacity: 0.5;
}

/* Boutons personnalisés pour la hero section */
.hero-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #fff;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
}

.hero-btn:hover {
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.2);
}

.hero-btn:active {
    transform: scale(0.98);
}

/* Ajustement des boutons pour mobile */
@media (max-width: 600px) {
    .hero-btn {
        padding: 10px 18px;
        font-size: 0.95rem;
        min-width: 160px;
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-section {
        text-align: center;
    }
    
    #upload-area {
        padding: 2rem !important;
    }
    
    .table-responsive {
        max-height: 400px;
    }
    
    .collapsed-table {
        max-height: 150px;
    }
}