/* Layout base */
.pf-body-gradient {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #2f3bff 0, #121212 45%, #000000 100%);
    color: #f8f9fa;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pf-app-container {
    min-height: 100vh;
}

/* Sidebar */
.pf-sidebar {
    width: 260px;
    background: rgba(5, 7, 24, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.pf-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pf-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff7a18, #af002d 71%);
    color: #fff;
}

.pf-logo-text {
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .9rem;
    color: #f8f9fa;
}

.pf-nav {
    margin-top: 1.5rem;
}

.pf-nav-link {
    color: #a8b2ff;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all .15s ease-in-out;
}

    .pf-nav-link:hover,
    .pf-nav-link.active,
    .pf-nav-link:focus {
        background: rgba(88, 101, 242, 0.18);
        color: #ffffff;
        text-decoration: none;
    }

.pf-sidebar-footer {
    margin-top: 2rem;
}

.pf-user-card {
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
}

.pf-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a18, #af002d 71%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.pf-user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Main */
.pf-main {
    padding: 1.5rem 2rem;
    color: #e5e7eb; /* texto geral mais claro */
}

.pf-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
}

.pf-page-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f9fafb; /* título bem branco */
}

.pf-page-subtitle {
    font-size: 0.9rem;
    color: #e5e7eb !important; /* subtítulo claro */
}

/* Cards */
.pf-card {
    background: rgba(14, 17, 48, 0.9);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    color: #e5e7eb; /* texto nos cards em claro */
}

.pf-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
}

/* garantir que text-muted dentro de cards continua visível */
.pf-card .text-muted {
    color: #cbd5f5 !important;
}

/* KPI cards */
.pf-card-kpi {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pf-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(88,101,242,1), rgba(144, 97, 249, 1));
    color: #fff;
    font-size: 1.4rem;
}

.pf-kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #a2a9ff;
}

.pf-kpi-value {
    font-size: 1.4rem;
    font-weight: 600;
}

.pf-kpi-sub {
    font-size: 0.8rem;
}

/* Buttons */
.pf-btn-primary {
    background: linear-gradient(135deg, #5865f2, #8b5cf6);
    border: none;
    color: #fff;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
}

    .pf-btn-primary:hover {
        filter: brightness(1.05);
        color: #fff;
    }

.pf-btn-secondary {
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.45);
    color: #e0e4ff;
    border-radius: 999px;
}

    .pf-btn-secondary:hover {
        background: rgba(88, 101, 242, 0.25);
        color: #fff;
    }

.pf-btn-ghost {
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e9eaee;
}

    .pf-btn-ghost:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

/* Links */
.pf-link-small {
    font-size: 0.85rem;
    color: #a8b2ff;
}

    .pf-link-small:hover {
        color: #ffffff;
    }

/* Tables - base */
.pf-table {
    color: #e9eaee;
}

    .pf-table thead th {
        border-color: rgba(255, 255, 255, 0.08);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: #9ea4d9;
    }

    .pf-table tbody td {
        border-color: rgba(255, 255, 255, 0.04);
        font-size: 0.9rem;
    }

/* garantir texto claro nas tabelas bootstrap normais, se usadas */
.table,
.table td,
.table th {
    color: #e5e7eb;
}

/* Tables - dark mode fix (fundo transparente + listras + hover) */
.pf-table,
.pf-table thead,
.pf-table tbody,
.pf-table tr,
.pf-table th,
.pf-table td {
    background-color: transparent !important;
}

    .pf-table tbody tr:nth-child(odd) {
        background: rgba(255, 255, 255, 0.02) !important;
    }

    .pf-table tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.01) !important;
    }

    .pf-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .pf-table thead th {
        border-bottom-color: rgba(255, 255, 255, 0.10) !important;
    }

    .pf-table tbody td {
        border-color: rgba(255, 255, 255, 0.04) !important;
    }

    .pf-table .text-muted {
        color: #cbd5f5 !important;
    }

/* Login page */
.pf-login-body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #5865f2 0, #1f2937 45%, #020617 100%);
    position: relative;
    color: #e5e7eb;
}

.pf-login-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(88, 101, 242, 0.4) 0, transparent 50%), radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.35) 0, transparent 50%);
    opacity: 0.7;
    pointer-events: none;
}

.pf-login-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.pf-login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 1.5rem;
    background: rgba(8, 11, 40, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

/* Inputs */
.pf-input-group .input-group-text {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    color: #a5b4fc;
}

.pf-input-group .form-control {
    border-color: rgba(148, 163, 184, 0.3);
    background-color: rgba(15, 23, 42, 0.6);
    color: #e5e7eb;
}

    .pf-input-group .form-control:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
    }

/* Labels e formulários em geral */
label,
.form-label {
    color: #e5e7eb;
}

/* Footer */
.pf-footer {
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Responsivo */
@media (max-width: 991.98px) {
    .pf-sidebar {
        display: none; /* podes mais tarde fazer um offcanvas se quiseres */
    }

    .pf-main {
        padding-inline: 1rem;
    }
}
