:root {
    --app-grad-a: #4f46e5;
    --app-grad-b: #0ea5e9;
    --app-radius: 14px;
}

body {
    background: #f3f5f9;
    min-height: 100vh;
}
[data-bs-theme="dark"] body {
    background: #0f1420;
}

/* Navbar com gradiente */
.app-navbar {
    background: linear-gradient(90deg, var(--app-grad-a), var(--app-grad-b));
}
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    font-size: 1.15rem;
}

/* Abas roláveis no mobile */
.tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.tabs-scroll .nav-link {
    white-space: nowrap;
    border-radius: 999px;
    font-weight: 500;
}
.tabs-scroll .nav-link:not(.active) {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

/* Cards */
.card {
    border: 0;
    border-radius: var(--app-radius);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1rem 1.25rem;
}
.card-title {
    font-weight: 600;
    margin: 0;
}

/* Tabelas */
.table-wrap {
    overflow-x: auto;
}
.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    border-bottom-width: 1px;
}
.table td {
    vertical-align: middle;
}
.table td.cell-truncate {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table .col-actions {
    width: 96px;
    text-align: right;
    white-space: nowrap;
}
.text-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
}
.row-null {
    color: var(--bs-secondary-color);
    font-style: italic;
}

/* Formulário de inclusão no rodapé de cada aba */
.card-add .card-header {
    border-left: 4px solid var(--app-grad-a);
    border-top-left-radius: var(--app-radius);
}

/* Toasts */
.toast {
    border-radius: 12px;
}

/* Área vazia */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--bs-secondary-color);
}
.empty-state i {
    font-size: 2.4rem;
    display: block;
    margin-bottom: .5rem;
    opacity: .6;
}

@media (max-width: 575.98px) {
    .card-header {
        padding: .85rem 1rem;
    }
    .table {
        font-size: .9rem;
    }
}

/* Toasts abaixo da navbar */
#toasts {
    margin-top: 64px;
    z-index: 1090;
}
