/* NEXUS SST - Estilos Profissionais Customizados para Apresentação em Licitação */
:root {
    --nexus-primary: #1e3a8a;
    --nexus-primary-hover: #172554;
    --nexus-secondary: #0f766e;
    --nexus-accent: #0284c7;
    --nexus-dark: #0f172a;
    --nexus-sidebar-bg: #0b1329;
    --nexus-sidebar-hover: #1e293b;
    --nexus-sidebar-active: #2563eb;
    --nexus-light: #f8fafc;
    --nexus-card-border: #e2e8f0;
}

body {
    background-color: #f1f5f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    min-height: 100vh;
}

/* Sidebar */
.nexus-sidebar {
    background-color: var(--nexus-sidebar-bg);
    min-height: 100vh;
    color: #94a3b8;
    width: 280px;
    transition: all 0.2s ease-in-out;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
}

.nexus-sidebar .brand-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nexus-sidebar .brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.nexus-sidebar .brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: white;
    padding: 2px 8px;
    border-radius: 9999px;
}

.nexus-nav-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 1rem 1.25rem 0.35rem 1.25rem;
}

.nexus-nav-link {
    display: flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.15s ease;
}

.nexus-nav-link i {
    font-size: 1.1rem;
    width: 24px;
    margin-right: 10px;
    color: #94a3b8;
}

.nexus-nav-link:hover {
    background-color: var(--nexus-sidebar-hover);
    color: #ffffff;
}

.nexus-nav-link:hover i {
    color: #38bdf8;
}

.nexus-nav-link.active {
    background-color: var(--nexus-sidebar-active);
    color: #ffffff;
    font-weight: 600;
}

.nexus-nav-link.active i {
    color: #ffffff;
}

.nexus-subnav {
    padding-left: 2.2rem;
}

.nexus-subnav-link {
    display: block;
    padding: 0.35rem 0.75rem;
    color: #94a3b8;
    font-size: 0.82rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s;
}

.nexus-subnav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.nexus-subnav-link.active {
    color: #38bdf8;
    font-weight: 600;
}

/* Topbar */
.nexus-topbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--nexus-card-border);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Cards & Content */
.nexus-card {
    background: #ffffff;
    border: 1px solid var(--nexus-card-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

.nexus-card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--nexus-card-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nexus-kpi-card {
    background: #ffffff;
    border: 1px solid var(--nexus-card-border);
    border-radius: 10px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nexus-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.nexus-kpi-value {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.nexus-kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.03em;
}

.nexus-kpi-icon {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    font-size: 2rem;
    opacity: 0.15;
}

/* Cards dos Módulos do Sistema */
.nexus-module-card {
    background: #ffffff;
    border: 1px solid var(--nexus-card-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nexus-module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    color: inherit;
}

.nexus-module-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.25;
    min-height: 2.2rem;
}

.nexus-module-metric {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin: 0.35rem 0 0.15rem 0;
}

.nexus-module-desc {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.3;
}

/* Tabelas */
.nexus-table th {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #cbd5e1;
    white-space: nowrap;
}

.nexus-table td {
    vertical-align: middle;
    font-size: 0.86rem;
    color: #334155;
}

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

/* Badges */
.badge-nexus {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Assinatura Digital Canvas */
.signature-pad-container {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    position: relative;
    cursor: crosshair;
}

.signature-pad-container canvas {
    width: 100%;
    height: 180px;
}

/* Matriz de Riscos */
.matriz-cell {
    width: 60px;
    height: 60px;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.1s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.matriz-cell:hover {
    transform: scale(1.08);
    opacity: 0.9;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Print Layout */
@media print {
    .nexus-sidebar, .nexus-topbar, .no-print, .btn, .pagination, .alert {
        display: none !important;
    }
    body {
        background-color: #ffffff;
        color: #000000;
    }
    .container-fluid {
        padding: 0 !important;
    }
    .nexus-card {
        border: none !important;
        box-shadow: none !important;
    }
}

