/* Estilos gerais */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Estilos do cartão digital */
.card-digital {
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.card-digital:hover {
    transform: translateY(-5px);
}

.card-header {
    padding: 40px 20px 10px;
    text-align: center;
    position: relative;
    border-bottom: none;
}

.card-profile-img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 0px 30px 30px 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links .whatsapp {
    background-color: #25d366;
}

.card-digital a {
    color: inherit;
    transition: opacity 0.3s ease;
}

.card-digital a:hover {
    opacity: 0.8;
}

/* Estilos do formulário */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Estilos do dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-muted1 {
    background-color: #ffffff; /* Cor de fundo  */
    color: #000000; /* Cor do texto (opcional) */;
    border-radius: 20px; /* Arredonda todos os cantos com 20px */
    padding: 0px; /* Adiciona espaço interno */
    text-align: center;
    width: 50%;
    align-items: center;
}

.text-center1 .mt-4 {
    align-items: center;
}

.imagem-venda {
    width: 200px;
    height: 29px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .error-404 h1 {
        font-size: 80px;
    }
    
    .error-404 .lead {
        font-size: 20px;
    }
    
    .card-profile-img {
        width: 180px;
        height: 180px;
        margin-top: 15px;
    }
    
    .card-digital .card-header {
        padding: 10px 15px;
    }
    
    .card-digital .card-body {
        padding: 0px 20px 20px 20px;
    }
    .card-header {
        padding: 40px 20px 10px;
        
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .img-fluid {
        margin-top: 20px;
    }
    .text-muted1 {
    background-color: #ffffff; /* Cor de fundo  */
    color: #000000; /* Cor do texto (opcional) */;
    border-radius: 20px; /* Arredonda todos os cantos com 20px */
    padding: 0px; /* Adiciona espaço interno */
    text-align: center;
    width: 50%;
}
.text-center1 .mt-4 {
    align-items: center;
}

.imagem-venda {
    width: 200px;
    height: 29px;
}

}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Estilos para mensagens de alerta */
.alert {
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Estilos para botões */
.btn-custom {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para a página 404 */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-404 .lead {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Estilos do footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer h5 {
    color: #212529;
    font-weight: 600;
}

.footer .social-links {
    display: flex;
    gap: 10px;
}

.footer .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease;
}

.footer .social-links a:hover {
    transform: translateY(-3px);
}

.footer .social-links .facebook {
    background-color: #1877f2;
}

.footer .social-links .linkedin {
    background-color: #0a66c2;
}

/* Estilos para tabelas */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table th {
    background-color: #f8f9fa;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    min-height: 60px; /* Altura mínima para as células */
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Estilo para a coluna de ações */
.table .acoes {
    white-space: nowrap;
    min-width: 150px; /* Largura mínima para a coluna de ações */
}

.table .acoes .btn {
    padding: 0.375rem 0.75rem;
    margin: 0 0.25rem;
    font-size: 0.875rem;
}

/* Responsividade da tabela */
@media (max-width: 768px) {
    .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table td, 
    .table th {
        padding: 0.75rem;
    }
    
    .table .acoes {
        min-width: 120px;
    }
}

/* Estilos específicos para a tabela de cartões */
.table-cartoes {
    width: 100%;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-cartoes th {
    background-color: #f8f9fa;
    padding: 0.75rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-cartoes td {
    padding: 0.55rem;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.table-cartoes .cartao-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.table-cartoes .cartao-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.table-cartoes .cartao-detalhes {
    flex: 1;
    min-width: 0; /* Permite que o texto quebre corretamente */
}

.table-cartoes .cartao-nome {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-cartoes .cartao-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.table-cartoes .status-ativo {
    background-color: #d4edda;
    color: #155724;
}

.table-cartoes .status-inativo {
    background-color: #f8d7da;
    color: #721c24;
}

.table-cartoes .acoes {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.table-cartoes .btn-acao {
    padding: 0.375rem;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.table-cartoes .btn-acao:hover {
    transform: translateY(-2px);
}

.table-cartoes .btn-editar {
    background-color: #e3f2fd;
    color: #0d6efd;
}

.table-cartoes .btn-visualizar {
    background-color: #e8f5e9;
    color: #198754;
}

.table-cartoes .btn-excluir {
    background-color: #fbe9e7;
    color: #dc3545;
}

/* Estilos específicos para botões de ação no painel admin */
.table-cartoes .btn-acao.btn-warning {
    background-color: #fff3cd;
    color: #856404;
}

.table-cartoes .btn-acao.btn-success {
    background-color: #d4edda;
    color: #155724;
}

.table-cartoes .btn-acao.btn-warning:hover {
    background-color: #ffeeba;
}

.table-cartoes .btn-acao.btn-success:hover {
    background-color: #c3e6cb;
}

/* Estilo para informações do usuário */
.table-cartoes .usuario-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.table-cartoes .usuario-info .usuario-nome {
    font-weight: 600;
    color: #212529;
}

.table-cartoes .usuario-info .usuario-email {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Ajuste para o container da tabela no painel admin */
.table-cartoes-container {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

/* Responsividade para telas menores */
@media (max-width: 1200px) {
    .table-cartoes th:nth-child(4),
    .table-cartoes td:nth-child(4),
    .table-cartoes th:nth-child(6),
    .table-cartoes td:nth-child(6) {
        display: none;
    }
}

@media (max-width: 992px) {
    .table-cartoes th:nth-child(3),
    .table-cartoes td:nth-child(3),
    .table-cartoes th:nth-child(7),
    .table-cartoes td:nth-child(7) {
        display: none;
    }
}

@media (max-width: 768px) {
    .table-cartoes-container {
        max-height: none;
    }
    
    .table-cartoes {
        display: block;
        overflow-x: auto;
    }
    
    .table-cartoes .cartao-info {
        min-width: 200px;
    }
    
    .table-cartoes .acoes {
        min-width: 180px;
    }
} 