/* Eteclog Operations OS — tema visual (Bootstrap 5)
   Portado da referência C:\xammp\htdocs\notion\clientes.php pro Etechlogs. */

:root {
    --eteclog-primary: #0f172a;
    --eteclog-accent: #2563eb;
    --eteclog-success: #10b981;
    --eteclog-warning: #f59e0b;
    --eteclog-info: #0ea5e9;
    --eteclog-danger: #ef4444;
    --bg-canvas: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-canvas);
    color: #1e293b;
    margin: 0;
    padding-bottom: 40px;
}

/* --- Navbar Moderna & Elegante (Cinza Claro) --- */
.navbar-eteclog {
    background-color: #f1f5f9; /* Cinza claro moderno e elegante */
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 1px 4px 0 rgba(15, 23, 42, 0.05);
}

.navbar-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.03);
}

.nav-link-custom {
    color: #334155;
    font-weight: 500;
    font-size: 0.86rem;
    padding: 7px 11px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link-custom i {
    font-size: 0.95rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-link-custom:hover {
    color: #0f172a;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-link-custom:hover i {
    transform: scale(1.15);
}

.nav-link-custom.active {
    color: #0284c7;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

.navbar-eteclog .dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    padding: 8px;
    background: #ffffff;
}

.navbar-eteclog .dropdown-item {
    border-radius: 7px;
    font-size: 0.85rem;
    color: #334155;
    padding: 8px 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
}

.navbar-eteclog .dropdown-item:hover {
    background-color: #f8fafc;
    color: #0284c7;
    padding-left: 15px;
}

.btn-sair-custom {
    color: #dc2626;
    border: 1px solid #fee2e2;
    background-color: #fef2f2;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.84rem;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-sair-custom:hover {
    color: #ffffff;
    border-color: #dc2626;
    background-color: #dc2626;
}

/* --- Cards --- */
.kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.kpi-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 6px 0 2px 0;
    line-height: 1;
}

.client-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.client-card:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

/* Card padrão de página (listagem/form) — mesma linguagem visual do
   client-card, usado no lugar do .card cru do Bootstrap em toda tela */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 14px 14px 0 0 !important;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Badges de status --- */
.badge-status-onboarding {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.badge-status-ativo {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-status-inativo {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Tabelas --- */
table.dataTable thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #e2e8f0 !important;
}

table.dataTable tbody td {
    font-size: 0.86rem;
    vertical-align: middle;
}

/* --- Botões --- */
.btn-primary {
    background-color: var(--eteclog-accent);
    border-color: var(--eteclog-accent);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* --- Formulários --- */
.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 4px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--eteclog-accent);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* --- Modais --- */
.modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

.modal-header {
    background: var(--eteclog-primary);
    color: #ffffff;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- Rodapé --- */
.app-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 20px 0;
}

/* --- Seção divisória dentro de forms grandes (ex: Mapeamento) --- */
.secao-titulo {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--eteclog-accent);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
    margin: 20px 0 15px;
    letter-spacing: 0.4px;
}

.secao-titulo:first-child {
    margin-top: 0;
}
