/* ============================================================================
   IMPLANTA BASE CSS
   Estilos globais, tipografia, resets e configurações base do projeto
   ============================================================================ */

/* =================== CONFIGURAÇÕES GLOBAIS =================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ebebeb;
    padding-bottom: 0;
    overflow-x: hidden;
}

/* =================== TIPOGRAFIA =================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--implanta-dark-gray);
    font-weight: 700;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--implanta-dark-gray);
    font-weight: 700;
}

/* Títulos de seção (padrão Prospects) */
.section-title {
    color: var(--implanta-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--implanta-light-gray);
    text-transform: uppercase;
}

/* =================== LINKS =================== */

a {
    color: var(--implanta-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--implanta-secondary);
}

/* =================== FORMULÁRIOS =================== */

.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.6rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--implanta-primary);
    box-shadow: 0 0 0 0.2rem rgba(20, 175, 204, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.6rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-select:focus {
    border-color: var(--implanta-primary);
    box-shadow: 0 0 0 0.2rem rgba(20, 175, 204, 0.25);
}

.form-check-input:checked {
    background-color: var(--implanta-primary);
    border-color: var(--implanta-primary);
}

.form-label {
    font-weight: 600;
    color: var(--implanta-dark-gray);
    margin-bottom: 0.5rem;
}

/* =================== TABELAS =================== */

.table {
    color: var(--implanta-dark-gray);
}

.table thead th {
    background-color: var(--implanta-very-light-gray);
    color: var(--implanta-dark-gray);
    font-weight: 600;
    border-bottom: 2px solid var(--implanta-light-gray);
}

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

.table tbody tr:hover {
    background-color: var(--implanta-very-light-gray);
}

/* Tabela de dados (padrão Prospects) */
.data-table {
    width: 100%;
}

.data-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: 600;
    color: #495057;
    min-width: 250px;
    flex-shrink: 0;
}

.data-label::after {
    content: ":";
    margin-left: 4px;
}

.data-value {
    color: #212529;
    flex: 1;
}

.empty-value {
    color: #999;
    font-style: italic;
}

/* Tabela relacionada (padrão Prospects) */
.table-related {
    width: 100%;
    margin-top: 15px;
    border-collapse: separate;
    border-spacing: 0;
}

.table-related thead {
    background: var(--implanta-primary);
    color: white;
}

.table-related th {
    padding: 12px;
    font-weight: 600;
    text-align: left;
}

.table-related td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
}

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

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

.no-data {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* =================== PAGINAÇÃO =================== */

.pagination {
    margin-top: 20px;
    margin-bottom: 0;
}

.pagination .page-link {
    color: var(--implanta-primary);
    border-color: var(--implanta-light-gray);
    transition: all 0.15s ease;
}

.pagination .page-link:hover {
    background-color: var(--implanta-very-light-gray);
    border-color: var(--implanta-primary);
    color: var(--implanta-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--implanta-primary);
    border-color: var(--implanta-primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    border-color: var(--implanta-light-gray);
}

/* =================== SCROLLBAR CUSTOMIZADA =================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--implanta-light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--implanta-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--implanta-secondary);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--implanta-primary) var(--implanta-light-gray);
}

/* =================== ESTADOS DE FOCO E ACESSIBILIDADE =================== */

:focus-visible {
    outline: 2px solid var(--implanta-primary);
    outline-offset: 2px;
}

/* =================== RESPONSIVIDADE MOBILE =================== */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .data-label {
        min-width: 150px;
    }
    
    .form-control, .form-select {
        min-height: 44px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 576px) {
    .data-row {
        flex-direction: column;
    }
    
    .data-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .table-related {
        font-size: 0.9rem;
    }
    
    .table-related th,
    .table-related td {
        padding: 8px;
    }
}

