/**
 * ZC Project Management — Modern UI theme
 * Loaded last so it overrides legacy Rise CRM styles.
 */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
    --zc-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --zc-primary: #5b6cff;
    --zc-primary-hover: #4a59e8;
    --zc-primary-soft: rgba(91, 108, 255, 0.12);
    --zc-accent: #22c55e;
    --zc-bg: #f3f6fc;
    --zc-surface: #ffffff;
    --zc-text: #0f172a;
    --zc-text-muted: #64748b;
    --zc-border: #e2e8f0;
    --zc-radius-sm: 8px;
    --zc-radius: 14px;
    --zc-radius-lg: 18px;
    --zc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --zc-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --zc-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
    --zc-sidebar-width: 260px;
    --zc-topbar-height: 68px;
}

/* ── Base ─────────────────────────────────────────────── */
html,
body.modern-ui,
body.modern-ui .scrollable-page {
    font-family: var(--zc-font) !important;
    font-size: 14px;
    color: var(--zc-text-muted);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modern-ui {
    background: var(--zc-bg) !important;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 108, 255, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(34, 197, 94, 0.04), transparent) !important;
}

body.modern-ui h1,
body.modern-ui h2,
body.modern-ui h3,
body.modern-ui h4,
body.modern-ui h5,
body.modern-ui h6,
body.modern-ui .page-title h1 {
    font-family: var(--zc-font) !important;
    font-weight: 600 !important;
    color: var(--zc-text) !important;
    letter-spacing: -0.02em;
}

body.modern-ui a {
    color: var(--zc-primary);
    transition: color 0.15s ease;
}

body.modern-ui a:hover {
    color: var(--zc-primary-hover);
}

/* ── Topbar ─────────────────────────────────────────── */
body.modern-ui .navbar-custom {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--zc-border) !important;
    box-shadow: var(--zc-shadow-sm) !important;
    min-height: var(--zc-topbar-height) !important;
    left: var(--zc-sidebar-width) !important;
}

body.modern-ui .navbar-nav .nav-link {
    border-radius: var(--zc-radius-sm);
    transition: background 0.15s ease;
}

body.modern-ui .navbar-nav .nav-link:hover {
    background: var(--zc-primary-soft);
}

/* ── Sidebar ────────────────────────────────────────── */
body.modern-ui .sidebar {
    width: var(--zc-sidebar-width) !important;
    background: var(--zc-surface) !important;
    border-right: 1px solid var(--zc-border) !important;
    box-shadow: none !important;
}

body.modern-ui .sidebar-brand {
    width: var(--zc-sidebar-width) !important;
    height: var(--zc-topbar-height) !important;
    background: var(--zc-surface) !important;
    border-bottom: 1px solid var(--zc-border) !important;
    box-shadow: none !important;
}

body.modern-ui .sidebar-scroll {
    margin-top: var(--zc-topbar-height) !important;
    background: transparent !important;
}

body.modern-ui .sidebar-menu li a {
    border-radius: 10px !important;
    margin: 2px 12px !important;
    padding: 0.72rem 1rem !important;
    color: var(--zc-text-muted) !important;
    font-weight: 500;
    font-size: 13.5px;
}

body.modern-ui .sidebar-menu li a:hover,
body.modern-ui .sidebar-menu li a:focus {
    background: var(--zc-primary-soft) !important;
    color: var(--zc-primary) !important;
}

body.modern-ui .sidebar-menu li.active > a {
    background: linear-gradient(135deg, var(--zc-primary) 0%, #7c8aff 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(91, 108, 255, 0.35);
}

body.modern-ui .sidebar-menu li ul li a {
    padding-left: 2.2rem !important;
    font-size: 13px;
}

/* ── Page layout ────────────────────────────────────── */
body.modern-ui .page-wrapper {
    padding: 24px 28px !important;
}

body.modern-ui .page-container {
    background: transparent !important;
}

/* ── Cards ──────────────────────────────────────────── */
body.modern-ui .card {
    border: 1px solid var(--zc-border) !important;
    border-radius: var(--zc-radius) !important;
    box-shadow: var(--zc-shadow-sm) !important;
    background: var(--zc-surface) !important;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.modern-ui .card:hover {
    box-shadow: var(--zc-shadow) !important;
}

body.modern-ui .card .card-header {
    background: var(--zc-surface) !important;
    border-bottom: 1px solid var(--zc-border) !important;
    padding: 16px 20px !important;
    font-weight: 600;
    color: var(--zc-text) !important;
}

body.modern-ui .card .card-header:first-child {
    border-radius: var(--zc-radius) var(--zc-radius) 0 0 !important;
}

body.modern-ui .card .card-body {
    padding: 20px !important;
}

body.modern-ui .card-footer {
    background: #f8fafc !important;
    border-top: 1px solid var(--zc-border) !important;
    padding: 14px 20px !important;
}

body.modern-ui .widget-container .card {
    box-shadow: var(--zc-shadow) !important;
}

/* ── Page title bar ─────────────────────────────────── */
body.modern-ui .page-title {
    background: var(--zc-surface) !important;
    border: 1px solid var(--zc-border) !important;
    border-bottom: none !important;
    border-radius: var(--zc-radius) var(--zc-radius) 0 0 !important;
    box-shadow: none !important;
}

body.modern-ui .page-title h1 {
    font-size: 1.35rem !important;
    padding: 18px 20px !important;
}

body.modern-ui .page-title + .card,
body.modern-ui .card .page-title {
    border-radius: var(--zc-radius) !important;
}

/* ── Buttons ────────────────────────────────────────── */
body.modern-ui .btn {
    font-family: var(--zc-font) !important;
    font-weight: 600;
    border-radius: 10px !important;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
}

body.modern-ui .btn-primary {
    background: linear-gradient(135deg, var(--zc-primary) 0%, #7c8aff 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(91, 108, 255, 0.3);
}

body.modern-ui .btn-primary:hover,
body.modern-ui .btn-primary:focus,
body.modern-ui .btn-primary:active {
    background: linear-gradient(135deg, var(--zc-primary-hover) 0%, #6b7af0 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(91, 108, 255, 0.4);
    transform: translateY(-1px);
}

body.modern-ui .btn-default {
    background: var(--zc-surface) !important;
    border: 1px solid var(--zc-border) !important;
    color: var(--zc-text) !important;
}

body.modern-ui .btn-default:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

body.modern-ui .btn-sm {
    border-radius: 8px !important;
    font-size: 12.5px;
}

/* Solid buttons: body text color must not bleed onto colored backgrounds */
body.modern-ui .btn-primary,
body.modern-ui .btn-primary:hover,
body.modern-ui .btn-primary:focus,
body.modern-ui .btn-primary:active,
body.modern-ui .btn-success,
body.modern-ui .btn-success:hover,
body.modern-ui .btn-success:focus,
body.modern-ui .btn-success:active,
body.modern-ui .btn-danger,
body.modern-ui .btn-danger:hover,
body.modern-ui .btn-danger:focus,
body.modern-ui .btn-danger:active,
body.modern-ui .btn-info,
body.modern-ui .btn-info:hover,
body.modern-ui .btn-info:focus,
body.modern-ui .btn-info:active,
body.modern-ui .btn-dark,
body.modern-ui .btn-dark:hover,
body.modern-ui .btn-dark:focus,
body.modern-ui .btn-dark:active {
    color: #fff !important;
}

body.modern-ui .btn-warning,
body.modern-ui .btn-warning:hover,
body.modern-ui .btn-warning:focus,
body.modern-ui .btn-warning:active {
    color: #0f172a !important;
}

/* ── Forms ──────────────────────────────────────────── */
body.modern-ui .form-control,
body.modern-ui .general-form .form-control,
body.modern-ui input.form-control,
body.modern-ui textarea.form-control,
body.modern-ui select.form-control {
    font-family: var(--zc-font) !important;
    border: 1px solid var(--zc-border) !important;
    background: var(--zc-surface) !important;
    border-radius: 10px !important;
    color: var(--zc-text) !important;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.modern-ui .form-control:focus,
body.modern-ui .general-form .form-control:focus {
    border-color: var(--zc-primary) !important;
    box-shadow: 0 0 0 3px var(--zc-primary-soft) !important;
    background: var(--zc-surface) !important;
}

body.modern-ui .select2-container--default .select2-selection--single,
body.modern-ui .select2-container--default .select2-selection--multiple {
    border: 1px solid var(--zc-border) !important;
    border-radius: 10px !important;
    min-height: 38px;
    background: var(--zc-surface) !important;
}

body.modern-ui .select2-container--default.select2-container--focus .select2-selection--multiple,
body.modern-ui .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--zc-primary) !important;
    box-shadow: 0 0 0 3px var(--zc-primary-soft) !important;
}

/* Select2 v3 dropdowns used the grey gradient. Match the white text fields. */
body.modern-ui .select2-container .select2-choice,
body.modern-ui .select2-container .select2-choices,
body.modern-ui .select2-container .select2-choices .select2-search-field input,
body.modern-ui .select2-drop,
body.modern-ui .select2-search input {
    background-color: #fff !important;
    background-image: none !important;
    border-color: var(--zc-border) !important;
    color: var(--zc-text) !important;
    box-shadow: none !important;
}

body.modern-ui .select2-container .select2-choice {
    height: 38px !important;
    line-height: 36px !important;
    border-radius: 10px !important;
}

body.modern-ui .select2-container .select2-choices {
    border-radius: 10px !important;
    min-height: 38px !important;
}

body.modern-ui .select2-container .select2-choice > .select2-chosen {
    color: var(--zc-text) !important;
    line-height: 36px !important;
}

body.modern-ui .select2-container .select2-choice .select2-default,
body.modern-ui .select2-container-multi .select2-choices .select2-search-field input {
    color: #64748b !important;
}

body.modern-ui .select2-container .select2-choice .select2-arrow {
    background: transparent !important;
    background-image: none !important;
    border-left: 0 !important;
}

body.modern-ui .select2-dropdown-open .select2-choice,
body.modern-ui .select2-container-active .select2-choice,
body.modern-ui .select2-container-active .select2-choices {
    border-color: var(--zc-primary) !important;
    box-shadow: 0 0 0 3px var(--zc-primary-soft) !important;
}

body.modern-ui .select2-results .select2-result-label {
    color: var(--zc-text);
}

body.modern-ui .select2-results .select2-highlighted,
body.modern-ui .select2-results .select2-highlighted .select2-result-label {
    background: var(--zc-primary) !important;
    color: #fff !important;
}

body.modern-ui .select2-search-choice {
    background: #eef2ff !important;
    background-image: none !important;
    border-color: transparent !important;
    color: var(--zc-text) !important;
}

/* Select2 copies form-control onto its wrapper, which drew a second box around the field. */
body.modern-ui .select2-container.form-control,
body.modern-ui .general-form .select2-container.form-control,
body.modern-ui .select2-container.form-control:focus,
body.modern-ui .general-form .select2-container.form-control:focus {
    border: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.modern-ui label {
    font-weight: 500;
    color: var(--zc-text);
    font-size: 13px;
}

/* ── Tables ─────────────────────────────────────────── */
body.modern-ui .dataTable,
body.modern-ui table.table {
    border-collapse: separate;
    border-spacing: 0;
}

body.modern-ui table.table thead th {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--zc-border) !important;
    color: var(--zc-text) !important;
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px !important;
}

body.modern-ui table.table tbody td {
    padding: 12px 14px !important;
    border-color: var(--zc-border) !important;
    vertical-align: middle;
}

body.modern-ui table.table tbody tr:hover {
    background: #f8fafc !important;
}

/* ── Modals ─────────────────────────────────────────── */
body.modern-ui .modal-content {
    border: 1px solid var(--zc-border) !important;
    border-radius: var(--zc-radius-lg) !important;
    box-shadow: var(--zc-shadow-lg) !important;
    overflow: hidden;
}

body.modern-ui .modal-header {
    border-bottom: 1px solid var(--zc-border) !important;
    padding: 18px 22px !important;
}

body.modern-ui .modal-title {
    font-weight: 600;
    color: var(--zc-text);
}

body.modern-ui .modal-body {
    padding: 22px !important;
}

body.modern-ui .modal-footer {
    border-top: 1px solid var(--zc-border) !important;
    padding: 14px 22px !important;
    background: #f8fafc;
}

/* ── Dropdowns ──────────────────────────────────────── */
body.modern-ui .dropdown-menu {
    border: 1px solid var(--zc-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--zc-shadow) !important;
    padding: 6px !important;
}

body.modern-ui .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13.5px;
}

body.modern-ui .dropdown-item:hover {
    background: var(--zc-primary-soft) !important;
    color: var(--zc-primary) !important;
}

/* ── Badges & alerts ────────────────────────────────── */
body.modern-ui .badge {
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
}

body.modern-ui .badge.bg-primary,
body.modern-ui .badge.bg-success,
body.modern-ui .badge.bg-danger,
body.modern-ui .badge.bg-info,
body.modern-ui .badge.bg-dark {
    color: #fff !important;
}

body.modern-ui .badge.bg-warning {
    color: #0f172a !important;
}

body.modern-ui .alert {
    border-radius: 12px !important;
    border: none !important;
    font-weight: 500;
}

/* ── Tabs ───────────────────────────────────────────── */
body.modern-ui .nav-tabs {
    border-bottom: 1px solid var(--zc-border) !important;
}

body.modern-ui .nav-tabs .nav-link {
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    color: var(--zc-text-muted);
    font-weight: 500;
    padding: 10px 16px;
}

body.modern-ui .nav-tabs .nav-link.active {
    color: var(--zc-primary) !important;
    background: var(--zc-primary-soft) !important;
    font-weight: 600;
}

/* ── Sign-in page ───────────────────────────────────── */
body.modern-ui-signin {
    font-family: var(--zc-font) !important;
    background: var(--zc-bg) !important;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(91, 108, 255, 0.15), transparent),
        radial-gradient(ellipse 50% 50% at 100% 100%, rgba(34, 197, 94, 0.06), transparent) !important;
    min-height: 100vh;
}

body.modern-ui-signin .form-signin {
    max-width: 420px;
    margin: 6% auto;
}

body.modern-ui-signin .form-signin .card {
    border-radius: var(--zc-radius-lg) !important;
    box-shadow: var(--zc-shadow-lg) !important;
    border: 1px solid var(--zc-border) !important;
}

body.modern-ui-signin .form-signin .card-header {
    padding: 28px 24px 12px !important;
    border-bottom: none !important;
}

body.modern-ui-signin .form-signin .card-body {
    padding: 12px 28px 28px !important;
}

body.modern-ui-signin .btn-primary {
    border-radius: 12px !important;
    padding: 12px !important;
    font-size: 15px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--zc-primary) 0%, #7c8aff 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(91, 108, 255, 0.35);
}

/* ── AI Assistant chat ──────────────────────────────── */
body.modern-ui #ai-chat-panel {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%) !important;
    border: 1px solid var(--zc-border) !important;
    border-radius: var(--zc-radius) !important;
}

body.modern-ui #ai-conversation-list .list-group-item {
    border-radius: 10px !important;
    margin-bottom: 4px;
    border: 1px solid transparent !important;
    font-weight: 500;
}

body.modern-ui #ai-conversation-list .list-group-item.active {
    background: var(--zc-primary-soft) !important;
    color: var(--zc-primary) !important;
    border-color: rgba(91, 108, 255, 0.2) !important;
}

body.modern-ui #ai-chat-panel .bg-primary {
    background: linear-gradient(135deg, var(--zc-primary) 0%, #7c8aff 100%) !important;
    border-radius: 14px 14px 4px 14px !important;
}

body.modern-ui #ai-chat-panel .bg-white.border {
    border-radius: 14px 14px 14px 4px !important;
    border-color: var(--zc-border) !important;
    box-shadow: var(--zc-shadow-sm);
}

/* ── Settings dashed forms ──────────────────────────── */
body.modern-ui .dashed-row .form-group {
    border-bottom-color: var(--zc-border) !important;
}

/* ── Loader ─────────────────────────────────────────── */
body.modern-ui .app-loader .loading {
    border-color: var(--zc-primary-soft) !important;
    border-top-color: var(--zc-primary) !important;
}

/* ── List groups ────────────────────────────────────── */
body.modern-ui .list-group-item {
    border-color: var(--zc-border) !important;
}

/* ── Minimized sidebar offset ───────────────────────── */
body.modern-ui.sidebar-toggled .navbar-custom {
    left: 70px !important;
}

@media (max-width: 990px) {
    body.modern-ui .navbar-custom {
        left: 0 !important;
    }
}

/* ── Dashboard widgets ────────────────────────────────── */
body.modern-ui .widget-icon {
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--zc-primary) 0%, #7c8aff 100%) !important;
    box-shadow: 0 4px 12px rgba(91, 108, 255, 0.25);
}

body.modern-ui .dashboard-icon-widget .card-body {
    padding: 24px !important;
}

/* ── Scrollbar (webkit) ─────────────────────────────── */
body.modern-ui ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.modern-ui ::-webkit-scrollbar-track {
    background: transparent;
}

body.modern-ui ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

body.modern-ui ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Input groups ───────────────────────────────────── */
body.modern-ui .input-group-text {
    border: 1px solid var(--zc-border) !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    color: var(--zc-text-muted);
}

body.modern-ui .input-group .form-control {
    border-radius: 10px !important;
}

/* ── AI settings page ─────────────────────────────── */
body.modern-ui .ai-settings-wrap .select2-container {
    width: 100% !important;
}

body.modern-ui .ai-settings-savebar .btn-primary {
    min-width: 140px;
}

/* ── Kanban / project boards ────────────────────────── */
body.modern-ui .kanban-col-title {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Profile and lead banners: headings must stay light on the colored background */
body.modern-ui .bg-success.clearfix,
body.modern-ui .bg-success.clearfix h1,
body.modern-ui .bg-success.clearfix h2,
body.modern-ui .bg-success.clearfix h3,
body.modern-ui .bg-success.clearfix h4,
body.modern-ui .bg-success.clearfix h5,
body.modern-ui .bg-success.clearfix h6,
body.modern-ui .bg-success.clearfix p,
body.modern-ui .bg-success.clearfix span,
body.modern-ui .bg-success.clearfix a,
body.modern-ui .bg-success.clearfix a:hover,
body.modern-ui .bg-success.clearfix a:focus,
body.modern-ui .bg-success.p20,
body.modern-ui .bg-success.p20 h1,
body.modern-ui .bg-success.p20 h2,
body.modern-ui .bg-success.p20 h3,
body.modern-ui .bg-success.p20 h4,
body.modern-ui .bg-success.p20 h5,
body.modern-ui .bg-success.p20 h6,
body.modern-ui .bg-success.p20 p,
body.modern-ui .bg-success.p20 span,
body.modern-ui .bg-success.p20 a,
body.modern-ui .bg-success.p20 a:hover,
body.modern-ui .bg-success.p20 a:focus,
body.modern-ui .bg-dark-success.clearfix,
body.modern-ui .bg-dark-success.clearfix h1,
body.modern-ui .bg-dark-success.clearfix h2,
body.modern-ui .bg-dark-success.clearfix h3,
body.modern-ui .bg-dark-success.clearfix h4,
body.modern-ui .bg-dark-success.clearfix h5,
body.modern-ui .bg-dark-success.clearfix h6,
body.modern-ui .bg-dark-success.clearfix p,
body.modern-ui .bg-dark-success.clearfix span,
body.modern-ui .bg-dark-success.clearfix a,
body.modern-ui .bg-dark-success.clearfix a:hover,
body.modern-ui .bg-dark-success.clearfix a:focus {
    color: #fff !important;
}

body.modern-ui .bg-success.clearfix .text-off,
body.modern-ui .bg-success.p20 .text-off,
body.modern-ui .bg-dark-success.clearfix .text-off {
    color: rgba(255, 255, 255, 0.86) !important;
    opacity: 1;
}

body.modern-ui .bg-success .border-end,
body.modern-ui .bg-success .border-top,
body.modern-ui .bg-dark-success .border-end,
body.modern-ui .bg-dark-success .border-top {
    border-color: rgba(255, 255, 255, 0.28) !important;
}

body.modern-ui .bg-success.clearfix .badge.bg-info,
body.modern-ui .bg-success.p20 .badge.bg-info,
body.modern-ui .bg-dark-success.clearfix .badge.bg-info {
    background: #fff !important;
    color: var(--zc-primary) !important;
}

/* Selected rows, menus, and pickers sit on the theme color */
body.modern-ui .dataTable tbody tr.active td,
body.modern-ui .dataTable tbody tr.active td a,
body.modern-ui .dataTable tbody tr.active td a:hover,
body.modern-ui .dropdown-item.active,
body.modern-ui .dropdown-item:active,
body.modern-ui td.dropdown-option button:hover,
body.modern-ui .select2-results .select2-highlighted,
body.modern-ui .datepicker table tr td.active,
body.modern-ui .datepicker table tr td.active:hover,
body.modern-ui .datepicker table tr td span.active,
body.modern-ui .atwho-view .cur,
body.modern-ui .note-hint-item:hover,
body.modern-ui .note-hint-group .active,
body.modern-ui a.list-group-item.active {
    color: #fff !important;
}

body.modern-ui .help-catagory a.list-group-item.active,
body.modern-ui .help-catagory a.list-group-item:hover,
body.modern-ui .message-button-list a.list-group-item.active,
body.modern-ui .message-button-list a.list-group-item:hover {
    color: var(--zc-text) !important;
    background: var(--zc-primary-soft) !important;
}

body.modern-ui .app-alert.alert-warning,
body.modern-ui .app-alert.alert-warning a {
    color: #0f172a !important;
}

body.modern-ui .page-title.bg-info,
body.modern-ui .page-title.bg-primary,
body.modern-ui .page-title.bg-success,
body.modern-ui .page-title.bg-danger,
body.modern-ui .page-title.bg-dark {
    background: var(--zc-primary) !important;
    border-color: transparent !important;
}

body.modern-ui .text-white,
body.modern-ui .ai-user-bubble,
body.modern-ui .ai-user-bubble h1,
body.modern-ui .ai-user-bubble h2,
body.modern-ui .ai-user-bubble h3,
body.modern-ui .ai-user-bubble h4,
body.modern-ui .ai-user-bubble h5,
body.modern-ui .ai-user-bubble h6,
body.modern-ui .ai-user-bubble a,
body.modern-ui .bg-primary.text-white,
body.modern-ui .bg-primary.text-white h1,
body.modern-ui .bg-primary.text-white h2,
body.modern-ui .bg-primary.text-white h3,
body.modern-ui .bg-primary.text-white h4,
body.modern-ui .bg-info.text-white,
body.modern-ui .bg-info.text-white h1,
body.modern-ui .bg-info.text-white h2,
body.modern-ui .bg-info.text-white h3,
body.modern-ui .bg-info.text-white h4,
body.modern-ui .bg-success.text-white,
body.modern-ui .bg-success.text-white h1,
body.modern-ui .bg-success.text-white h2,
body.modern-ui .bg-success.text-white h3,
body.modern-ui .bg-success.text-white h4,
body.modern-ui .bg-danger.text-white,
body.modern-ui .bg-danger.text-white h1,
body.modern-ui .bg-danger.text-white h2,
body.modern-ui .bg-danger.text-white h3,
body.modern-ui .bg-danger.text-white h4 {
    color: #fff !important;
}

body.modern-ui .widget-icon .icon,
body.modern-ui .widget-icon svg {
    color: #fff !important;
    stroke: #fff;
}
