/*
 * css/core/utilities.css
 * O Kit de Ferramentas "Anti-Bug"
 * Recria apenas as classes do Bootstrap que o JS e o HTML usam.
 */

/* Visibilidade */
.d-none { display: none !important; }

/* Texto */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--ok); }
.text-danger { color: var(--err); }
.text-warning { color: var(--warn); }
.text-muted { color: var(--txt-500); }

/* Largura */
.w-100 { width: 100%; }

/* Espaçamento (Margem) */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.p-5 { padding: 3rem; }

/* Grid (O layout.css trata o principal, mas o JS usa estas classes) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem; /* Gutter */
}
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    width: 100%;
    padding: 0.75rem; /* Gutter */
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .col-4 { width: 33.33%; }
    .col-6 { width: 50%; }
    .col-8 { width: 66.66%; }
    .col-12 { width: 100%; }
}

/* Spinners (o seu JS usa .spinner-border) */
.spinner-border {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: text-bottom;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}
@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/*
 * css/core/utilities.css
 * [FRAGMENTO V5.1 - CORREÇÃO 404]
 * - Adiciona os estilos .badge-dot e .status-list
 * que estavam em falta (badge.css, status.css)
 */

/* Badge (Usado em Chat e Tabelas de Status) */
.badge-dot {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.badge-dot.ok { background: var(--ok-alpha); color: var(--ok); }
.badge-dot.warn { background: var(--warn-alpha); color: var(--warn); }
.badge-dot.err { background: var(--err-alpha); color: var(--err); }


/* Lista de Status (Usada na Tesouraria) */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}
.status-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.status-item .info .title {
    font-weight: 500;
    color: var(--txt-100);
}
.status-item .info .subtitle {
    font-size: 0.875rem;
    color: var(--txt-500);
}
.status-item .amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--txt-100);
}
/*
 * css/core/utilities.css
 * [FRAGMENTO V5.2 - CORREÇÃO DE TABS]
 * - Adiciona os estilos de .tab-panel que estavam em falta.
 * - Esconde os painéis por defeito, mostrando apenas o .active.
 */

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}
.tab-link {
    padding: 1rem;
    cursor: pointer;
    color: var(--txt-500);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
}
.tab-link:hover {
    color: var(--txt-100);
}
.tab-link.active {
    color: var(--bee-primary);
    border-bottom-color: var(--bee-primary);
    font-weight: 700;
}

.tab-panel {
    display: none; /* Esconde todos os painéis */
}
.tab-panel.active {
    display: block; /* Mostra apenas o ativo */
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}
.tab-link {
    padding: 1rem;
    cursor: pointer;
    color: var(--txt-500);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
}
.tab-link:hover {
    color: var(--txt-100);
}
.tab-link.active {
    color: var(--bee-primary);
    border-bottom-color: var(--bee-primary);
    font-weight: 700;
}

/* [A CORREÇÃO PRINCIPAL ESTÁ AQUI] */
.tab-panel {
    display: none; /* Esconde todos os painéis */
}
.tab-panel.active {
    display: block; /* Mostra apenas o ativo */
}