/* ===== BIP+ Brand Identity ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --verde-bip: #27F4D2;
    --preto-bip: #000000;
    --cinza-escuro: #333333;
    --cinza-claro: #F5F5F5;
    --branco: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--cinza-claro);
    color: var(--cinza-escuro);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--preto-bip);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-b {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--branco);
    font-style: italic;
    letter-spacing: -1px;
}

.logo-plus {
    color: var(--verde-bip);
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--branco);
    letter-spacing: 0.5px;
}

.navbar-links {
    display: flex;
    gap: 4px;
}

.navbar-links a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #aaa;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-links a:hover {
    color: var(--branco);
    background: rgba(255,255,255,0.08);
}

.navbar-links a.active {
    color: var(--preto-bip);
    background: var(--verde-bip);
}

.nav-icon {
    font-size: 16px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-right a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #aaa;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-right a:hover {
    color: var(--branco);
    background: rgba(255,255,255,0.08);
}

.nav-logout:hover {
    color: #f87171 !important;
    background: rgba(248,113,113,0.1) !important;
}

/* ===== Content Area ===== */
.content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* ===== Cards (CNPJ Biz style) ===== */
.card {
    background: var(--branco);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== Badges ===== */
.badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f3f4f6; color: #374151; }

/* ===== Table ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    padding: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}
.data-table td {
    padding: 10px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--cinza-escuro);
}
.data-table tr:hover {
    background: #f9fafb;
}

/* ===== Buttons ===== */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--preto-bip);
    color: var(--branco);
}
.btn-primary:hover {
    background: #1a1a1a;
}
.btn-accent {
    background: var(--verde-bip);
    color: var(--preto-bip);
}
.btn-accent:hover {
    background: #1ed8b8;
}
.btn-secondary {
    background: #e5e7eb;
    color: var(--cinza-escuro);
}
.btn-secondary:hover {
    background: #d1d5db;
}

/* ===== Inputs ===== */
.input, .select {
    font-family: 'Roboto', sans-serif;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: var(--branco);
    color: var(--cinza-escuro);
}
.input:focus, .select:focus {
    border-color: var(--verde-bip);
    box-shadow: 0 0 0 3px rgba(39,244,210,0.15);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    gap: 4px;
}
.page-btn {
    padding: 6px 12px;
    background: var(--branco);
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: var(--cinza-escuro);
    cursor: pointer;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
}
.page-btn.active {
    background: var(--preto-bip);
    color: var(--branco);
    border-color: var(--preto-bip);
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== KPI Cards (Dashboard) ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.kpi-card {
    background: var(--branco);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.kpi-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.kpi-value {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--preto-bip);
}
.kpi-sub {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 12px;
    }
    .navbar-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
    .brand-name {
        display: none;
    }
}
