/* ============================================================
 * AiPanel — overrides y utilidades sobre NobleUI
 * ============================================================ */

/* ── Avatar circular con iniciales ─────────────────────────── */
.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4d8af0 0%, #2563eb 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 1;
    user-select: none;
}
.avatar-circle.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 22px;
}

/* ── Sidebar brand override ────────────────────────────────── */
.sidebar .sidebar-brand {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.sidebar .sidebar-brand span {
    color: #4d8af0;
}

/* ── QR card (vinculación WhatsApp) ────────────────────────── */
.qr-card {
    max-width: 380px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.qr-card img { width: 260px; height: 260px; }
.qr-card .qr-placeholder {
    width: 260px;
    height: 260px;
    margin: 0 auto;
    background: #f4f6f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* ── Auth split layout ─────────────────────────────────────── */
.auth-split {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #f4f6f8;
}
.auth-split-form {
    flex: 0 0 460px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-split-form .auth-form-wrapper {
    width: 100%;
    max-width: 380px;
}
.auth-split-hero {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: center;
}
.auth-split-hero h1 { font-size: 38px; font-weight: 700; margin-bottom: 16px; }
.auth-split-hero p  { font-size: 16px; opacity: .8; max-width: 480px; }
.auth-split-hero .hero-mark {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: .9;
}
@media (max-width: 991px) {
    .auth-split { flex-direction: column; }
    .auth-split-hero { display: none; }
}

/* ── Stat cards del dashboard ──────────────────────────────── */
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card .stat-icon svg { width: 22px; height: 22px; }
.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 8px 0 4px;
}
.stat-card .stat-label {
    color: #6c7488;
    font-size: 13px;
    margin: 0;
}
.stat-card .stat-trend {
    font-size: 12px;
    font-weight: 500;
}
.stat-card .stat-trend.up   { color: #198754; }
.stat-card .stat-trend.down { color: #dc3545; }

/* ── Tablas más limpias ────────────────────────────────────── */
.table-actions .btn { padding: 4px 8px; }
.table-actions .btn + .btn { margin-left: 4px; }
