.logo-nexus {
    height: 36px;
    width: auto;
}

.logo-nexus-lg {
    height: 64px;
    width: auto;
}

.swift-theme-card {
    background-color: var(--swift-color-surface);
    border: 1px solid var(--swift-color-border);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.swift-theme-section-title {
    color: var(--swift-color-primary);
}

.swift-theme-footer {
    background-color: var(--swift-color-background);
    color: var(--swift-color-text-soft);
}

.swift-theme-badge-soft-primary {
    background-color: var(--swift-color-primary-soft);
    color: var(--swift-color-primary);
}

.swift-theme-badge-soft-success {
    background-color: var(--swift-color-success-soft);
    color: var(--swift-color-success);
}

.swift-theme-badge-soft-warning {
    background-color: var(--swift-color-warning-soft);
    color: var(--swift-color-dark);
}

.swift-theme-badge-soft-danger {
    background-color: var(--swift-color-danger-soft);
    color: var(--swift-color-danger);
}

.swift-theme-badge-soft-info {
    background-color: var(--swift-color-info-soft);
    color: var(--swift-color-info);
}

/* ── Autenticação (login, recuperação de senha) ──────────────────────── */

.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 15% 20%, rgba(64, 163, 219, 0.25), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(255, 130, 71, 0.18), transparent 40%),
        linear-gradient(160deg, var(--swift-color-secondary) 0%, #001625 100%);
}

.auth-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

.auth-card-accent {
    height: 6px;
    background: linear-gradient(90deg, var(--swift-color-primary), var(--swift-color-accent));
}

.auth-footer {
    background-color: #001625;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    text-align: center;
}

.auth-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.auth-footer-logo {
    height: 14px;
    width: auto;
    opacity: 0.9;
}

/* ── Shell: sidebar + topbar ─────────────────────────────────────────── */

.swift-shell {
    display: flex;
    min-height: 100vh;
}

.swift-sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
    background-color: var(--swift-color-secondary);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out;
}

.swift-sidebar.is-open {
    transform: translateX(0);
}

.swift-sidebar-brand {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.swift-sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.75rem 0;
}

.swift-sidebar-search {
    position: relative;
    padding: 0.85rem 1.25rem 0;
}

.swift-sidebar-search i {
    position: absolute;
    left: 1.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    pointer-events: none;
}

.swift-sidebar-search input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.4rem;
    color: var(--swift-color-white);
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem 0.45rem 2.15rem;
}

.swift-sidebar-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.swift-sidebar-search input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.14);
    border-color: var(--swift-color-accent);
}

.swift-sidebar-search input::-webkit-search-cancel-button {
    filter: invert(1) brightness(2);
}

.swift-sidebar-section {
    padding: 1rem 1.25rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.swift-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.swift-sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--swift-color-white);
}

.swift-sidebar-link.active {
    background-color: var(--swift-color-primary);
    color: var(--swift-color-text-inverted);
    border-left-color: var(--swift-color-accent);
}

.swift-sidebar-link i {
    width: 1.1rem;
    text-align: center;
}

.swift-sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: none;
    padding: 1rem 1.25rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.swift-sidebar-group-toggle:hover {
    color: rgba(255, 255, 255, 0.75);
}

.swift-sidebar-group-caret {
    font-size: 0.75rem;
    transition: transform 0.15s ease-in-out;
}

.swift-sidebar-group-toggle[aria-expanded="true"] .swift-sidebar-group-caret {
    transform: rotate(180deg);
}

.swift-sidebar-group-items .swift-sidebar-link {
    padding-left: 1.6rem;
}

.swift-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1030;
}

.swift-sidebar-overlay.is-open {
    display: block;
}

.swift-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.swift-topbar {
    background-color: var(--swift-color-surface);
    border-bottom: 1px solid var(--swift-color-border);
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.swift-sidebar-toggle {
    border: 1px solid var(--swift-color-border);
    background-color: var(--swift-color-surface);
    color: var(--swift-color-text);
    border-radius: 0.4rem;
    padding: 0.35rem 0.65rem;
}

@media (min-width: 992px) {
    .swift-sidebar {
        position: sticky;
        transform: none;
    }

    .swift-sidebar-toggle {
        display: none !important;
    }

    .swift-sidebar-overlay {
        display: none !important;
    }
}

/* ── Dashboard ────────────────────────────────────────────────────────── */

.swift-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background-color: var(--swift-color-surface);
    border: 1px solid var(--swift-color-border);
    border-radius: 0.75rem;
}

a.swift-stat-card {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.swift-stat-card:hover {
    border-color: var(--swift-color-primary, #0d6efd);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.swift-stat-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    font-size: 1.25rem;
}

/* ── Força da senha ───────────────────────────────────────────────────── */

.senha-forca-barra {
    display: flex;
    gap: 4px;
    margin: 0.5rem 0;
}

.senha-forca-barra span {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background-color: #e9ecef;
    transition: background-color 0.2s ease;
}

.senha-forca-barra span.ativa {
    background-color: #fd7e14;
}

.senha-forca-checklist li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6c757d;
    padding: 0.15rem 0;
}

.senha-forca-checklist li.regra-ok {
    color: #198754;
}

.swift-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--swift-color-text);
}

.swift-stat-label {
    color: var(--swift-color-text-soft);
    font-size: 0.875rem;
}

.swift-panel {
    background-color: var(--swift-color-surface);
    border: 1px solid var(--swift-color-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.swift-panel-header {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--swift-color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.swift-panel-header h6 {
    margin: 0;
    color: var(--swift-color-secondary);
}

/* ── Títulos ──────────────────────────────────────────────────────────── */

main h3,
main h5,
main h6 {
    color: var(--swift-color-secondary);
}

/* ── Tabelas ajustáveis (tabelaHelper) ───────────────────────────────── */

.swift-table-panel {
    background-color: var(--swift-color-surface);
    border: 1px solid var(--swift-color-border);
    border-radius: 0.75rem;
    padding: 1rem;
}

.swift-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.swift-table-filtros {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

.swift-table-search {
    flex: 1 1 160px;
    min-width: 120px;
    max-width: 260px;
}

.swift-table-filtros form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 0.5rem;
}

.swift-table-search .input-group-text {
    background-color: var(--swift-color-background);
    border-color: var(--swift-color-border);
    color: var(--swift-color-text-soft);
}

.swift-table-search .form-control {
    border-color: var(--swift-color-border);
}

.swift-table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.swift-table thead th {
    background-color: var(--swift-color-secondary);
    color: var(--swift-color-white);
    border-color: var(--swift-color-secondary);
    vertical-align: middle;
}

.swift-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--swift-color-border);
}

.swift-table-length {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.swift-table-length .form-select {
    width: auto;
    border-color: var(--swift-color-border);
}

.swift-table-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1 1 auto;
}

.swift-table-info {
    font-size: 0.85rem;
    white-space: nowrap;
}

.swift-page-btn {
    min-width: 2rem;
    border: 1px solid var(--swift-color-border);
    background-color: var(--swift-color-surface);
    color: var(--swift-color-text);
}

.swift-page-btn:hover:not(:disabled) {
    background-color: var(--swift-color-secondary-soft);
    color: var(--swift-color-secondary);
}

.swift-page-btn.active {
    background-color: var(--swift-color-secondary);
    border-color: var(--swift-color-secondary);
    color: var(--swift-color-white);
}

.swift-page-btn:disabled {
    opacity: 0.4;
}

@media (max-width: 767.98px) {
    .swift-table-footer {
        justify-content: center;
        text-align: center;
    }

    .swift-table-pagination {
        order: 3;
        width: 100%;
    }
}
