/* 🌿 Estilo geral dos modais */
#modalComponente .modal-content,
#modalHabilidade .modal-content {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
    background-color: #fdfdfd;
}

/* 🌿 Cabeçalho do modal */
#modalComponente .modal-header,
#modalHabilidade .modal-header {
    background-color: #fdfdfd;
    color: #6C737F;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #D7D9DE;
    font-family: 'Inter', sans-serif;
}

#modalComponente .modal-title,
#modalHabilidade .modal-title {
    font-size: 1.25rem;
    font-weight: 400;
}

/* 🌿 Corpo do modal */
#modalComponente .modal-body,
#modalHabilidade .modal-body {
    padding: 1.5rem;
    background-color: #fdfdfd;
    max-height: 65vh;
    overflow-y: auto;
}

/* 🌿 Rodapé do modal */
#modalComponente .modal-footer,
#modalHabilidade .modal-footer {
    background-color: #fdfdfd;
    border-top: none;
    padding: 1rem 1.5rem;
}

/* 🌿 Tabela dos modais com estilo do boletim */
#modalComponente .modal-body .table,
#modalHabilidade .modal-body .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #333;
    box-shadow: 0 0 0 1px #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

/* 🌿 Cabeçalho da tabela com fundo suave e texto roxo */
#modalComponente .modal-body thead,
#modalHabilidade .modal-body thead {
    background-color: #6366F1 !important;
    color: #ffffff !important;
}

/* 🌿 Células do cabeçalho */
#modalComponente .modal-body th,
#modalHabilidade .modal-body th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    background-color: #6366F1 !important;
    color: #ffffff !important;
}

/* 🌿 Células do corpo */
#modalComponente .modal-body td,
#modalHabilidade .modal-body td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #ffffff;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 🌿 Última linha sem borda inferior */
#modalComponente .modal-body tbody tr:last-child td,
#modalHabilidade .modal-body tbody tr:last-child td {
    border-bottom: none;
}

/* 🌿 Zebra striping */
#modalComponente .modal-body tbody tr:nth-child(even) td,
#modalHabilidade .modal-body tbody tr:nth-child(even) td {
    background-color: #f9f9fc;
}

/* 🌿 Hover: aumento leve com sombra, sem mudar cor */
#modalComponente .modal-body tbody tr:hover td,
#modalHabilidade .modal-body tbody tr:hover td {
    transform: scale(1.01);
    cursor: pointer;
    z-index: 1;
    position: relative;
}


/* 🌿 Botão de fechar no rodapé dos modais */
#modalComponente .modal-footer .btn-secondary,
#modalHabilidade .modal-footer .btn-secondary {
    background-color: #6366F1;
    color: #F5F5F5;
    padding: 8px 36px;
    font-size: 14px;
    border-radius: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s ease-in-out;
    border: none;
    text-decoration: none;
    margin-top: 20px !important;
    max-width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
}

/* 🌿 Hover do botão de fechar */
#modalComponente .modal-footer .btn-secondary:hover,
#modalHabilidade .modal-footer .btn-secondary:hover {
    transform: scale(1.02);
}

#modalComponente .modal-footer .btn-secondary i,
#modalHabilidade .modal-footer .btn-secondary i {
    color: #F5F5F5 !important;
    font-size: 20px !important;
    margin-right: 10px;
}