:root {
    --eve-bo-text-strong: #111827;
    --eve-bo-text-body: #1f2937;
    --eve-bo-text-muted: #4b5563;
    --eve-bo-text-subtle: #374151;
    --eve-bo-warning-bg: #fde68a;
    --eve-bo-warning-bg-strong: #f59e0b;
    --eve-bo-warning-text: #5f370e;
    --eve-bo-warning-border: #d97706;
    --eve-bo-success-bg: #bbf7d0;
    --eve-bo-success-bg-strong: #22c55e;
    --eve-bo-success-text: #064e3b;
    --eve-bo-success-border: #16a34a;
    --eve-bo-primary-bg: #dbeafe;
    --eve-bo-primary-bg-strong: #2563eb;
    --eve-bo-primary-text: #1e3a8a;
    --eve-bo-primary-border: #1d4ed8;
}

.app-main,
.modal,
.dropdown-menu,
.app-header,
.app-footer {
    color: var(--eve-bo-text-body);
}

.app-main .text-muted,
.app-main .text-gray-400,
.app-main .text-gray-500,
.app-main .breadcrumb .text-muted,
.app-main .table .text-muted,
.app-main .table .text-gray-400,
.app-main .table .text-gray-500,
.modal .text-muted,
.modal .text-gray-400,
.modal .text-gray-500,
.dropdown-menu .text-muted,
.dropdown-menu .text-gray-400,
.dropdown-menu .text-gray-500,
.app-header .text-muted,
.app-footer .text-muted {
    color: var(--eve-bo-text-muted) !important;
}

.app-main .text-gray-600,
.app-main .text-gray-700,
.modal .text-gray-600,
.modal .text-gray-700,
.dropdown-menu .text-gray-600,
.dropdown-menu .text-gray-700 {
    color: var(--eve-bo-text-subtle) !important;
}

.app-main .card-label,
.app-main .page-heading,
.app-main .text-dark,
.modal .modal-title,
.dropdown-menu .fw-bold {
    color: var(--eve-bo-text-strong) !important;
}

.app-main .form-text,
.modal .form-text,
.app-main .small.text-muted,
.modal .small.text-muted,
.app-main .fs-7.text-muted,
.modal .fs-7.text-muted,
.app-main .fs-8.text-muted,
.modal .fs-8.text-muted {
    color: var(--eve-bo-text-muted) !important;
}

.app-main ::placeholder,
.modal ::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

.badge-light-warning,
.bg-light-warning,
.bg-hover-light-warning:hover,
.bg-state-light-warning.active,
.bg-state-light-warning:hover {
    background-color: var(--eve-bo-warning-bg) !important;
    color: var(--eve-bo-warning-text) !important;
}

.badge-light-warning,
.bg-light-warning.border-warning,
.notice.bg-light-warning,
.alert-warning {
    border-color: var(--eve-bo-warning-border) !important;
}

.badge-light-warning {
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, .28);
}

.btn.btn-light-warning {
    background-color: var(--eve-bo-warning-bg) !important;
    border-color: var(--eve-bo-warning-border) !important;
    color: var(--eve-bo-warning-text) !important;
}

.btn.btn-light-warning .svg-icon,
.btn.btn-light-warning i {
    color: var(--eve-bo-warning-text) !important;
}

.btn-check:active + .btn.btn-light-warning,
.btn-check:checked + .btn.btn-light-warning,
.btn.btn-light-warning.active,
.btn.btn-light-warning.show,
.btn.btn-light-warning:active:not(.btn-active),
.btn.btn-light-warning:focus:not(.btn-active),
.btn.btn-light-warning:hover:not(.btn-active),
.show > .btn.btn-light-warning {
    background-color: var(--eve-bo-warning-bg-strong) !important;
    border-color: var(--eve-bo-warning-bg-strong) !important;
    color: #111827 !important;
}

.btn-check:active + .btn.btn-light-warning .svg-icon,
.btn-check:active + .btn.btn-light-warning i,
.btn-check:checked + .btn.btn-light-warning .svg-icon,
.btn-check:checked + .btn.btn-light-warning i,
.btn.btn-light-warning.active .svg-icon,
.btn.btn-light-warning.active i,
.btn.btn-light-warning.show .svg-icon,
.btn.btn-light-warning.show i,
.btn.btn-light-warning:active:not(.btn-active) .svg-icon,
.btn.btn-light-warning:active:not(.btn-active) i,
.btn.btn-light-warning:focus:not(.btn-active) .svg-icon,
.btn.btn-light-warning:focus:not(.btn-active) i,
.btn.btn-light-warning:hover:not(.btn-active) .svg-icon,
.btn.btn-light-warning:hover:not(.btn-active) i,
.show > .btn.btn-light-warning .svg-icon,
.show > .btn.btn-light-warning i {
    color: #111827 !important;
}

.alert-warning {
    background-color: #fffbeb !important;
    color: var(--eve-bo-warning-text) !important;
}

.alert-warning .alert-link,
.alert-warning .fw-bold,
.alert-warning .fw-semibold,
.notice.bg-light-warning .fw-bold,
.notice.bg-light-warning .fw-semibold {
    color: var(--eve-bo-warning-text) !important;
}

.badge-light-success,
.bg-light-success,
.bg-hover-light-success:hover,
.bg-state-light-success.active,
.bg-state-light-success:hover {
    background-color: var(--eve-bo-success-bg) !important;
    color: var(--eve-bo-success-text) !important;
}

.badge-light-success,
.bg-light-success.border-success,
.notice.bg-light-success,
.alert-success {
    border-color: var(--eve-bo-success-border) !important;
}

.badge-light-success {
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .28);
}

.btn.btn-light-success {
    background-color: var(--eve-bo-success-bg) !important;
    border-color: var(--eve-bo-success-border) !important;
    color: var(--eve-bo-success-text) !important;
}

.btn.btn-light-success .svg-icon,
.btn.btn-light-success i {
    color: var(--eve-bo-success-text) !important;
}

.btn-check:active + .btn.btn-light-success,
.btn-check:checked + .btn.btn-light-success,
.btn.btn-light-success.active,
.btn.btn-light-success.show,
.btn.btn-light-success:active:not(.btn-active),
.btn.btn-light-success:focus:not(.btn-active),
.btn.btn-light-success:hover:not(.btn-active),
.show > .btn.btn-light-success {
    background-color: var(--eve-bo-success-bg-strong) !important;
    border-color: var(--eve-bo-success-bg-strong) !important;
    color: #052e16 !important;
}

.btn-check:active + .btn.btn-light-success .svg-icon,
.btn-check:active + .btn.btn-light-success i,
.btn-check:checked + .btn.btn-light-success .svg-icon,
.btn-check:checked + .btn.btn-light-success i,
.btn.btn-light-success.active .svg-icon,
.btn.btn-light-success.active i,
.btn.btn-light-success.show .svg-icon,
.btn.btn-light-success.show i,
.btn.btn-light-success:active:not(.btn-active) .svg-icon,
.btn.btn-light-success:active:not(.btn-active) i,
.btn.btn-light-success:focus:not(.btn-active) .svg-icon,
.btn.btn-light-success:focus:not(.btn-active) i,
.btn.btn-light-success:hover:not(.btn-active) .svg-icon,
.btn.btn-light-success:hover:not(.btn-active) i,
.show > .btn.btn-light-success .svg-icon,
.show > .btn.btn-light-success i {
    color: #052e16 !important;
}

.alert-success {
    background-color: #f0fdf4 !important;
    color: var(--eve-bo-success-text) !important;
}

.alert-success .alert-link,
.alert-success .fw-bold,
.alert-success .fw-semibold,
.notice.bg-light-success .fw-bold,
.notice.bg-light-success .fw-semibold {
    color: var(--eve-bo-success-text) !important;
}

.badge-light-primary,
.bg-light-primary,
.bg-hover-light-primary:hover,
.bg-state-light-primary.active,
.bg-state-light-primary:hover {
    background-color: var(--eve-bo-primary-bg) !important;
    color: var(--eve-bo-primary-text) !important;
}

.badge-light-primary,
.bg-light-primary.border-primary,
.notice.bg-light-primary,
.alert-primary {
    border-color: var(--eve-bo-primary-border) !important;
}

.badge-light-primary {
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .28);
}

.btn.btn-light-primary {
    background-color: var(--eve-bo-primary-bg) !important;
    border-color: var(--eve-bo-primary-border) !important;
    color: var(--eve-bo-primary-text) !important;
}

.btn.btn-light-primary .svg-icon,
.btn.btn-light-primary i {
    color: var(--eve-bo-primary-text) !important;
}

.btn-check:active + .btn.btn-light-primary,
.btn-check:checked + .btn.btn-light-primary,
.btn.btn-light-primary.active,
.btn.btn-light-primary.show,
.btn.btn-light-primary:active:not(.btn-active),
.btn.btn-light-primary:focus:not(.btn-active),
.btn.btn-light-primary:hover:not(.btn-active),
.show > .btn.btn-light-primary {
    background-color: var(--eve-bo-primary-bg-strong) !important;
    border-color: var(--eve-bo-primary-bg-strong) !important;
    color: #ffffff !important;
}

.btn-check:active + .btn.btn-light-primary .svg-icon,
.btn-check:active + .btn.btn-light-primary i,
.btn-check:checked + .btn.btn-light-primary .svg-icon,
.btn-check:checked + .btn.btn-light-primary i,
.btn.btn-light-primary.active .svg-icon,
.btn.btn-light-primary.active i,
.btn.btn-light-primary.show .svg-icon,
.btn.btn-light-primary.show i,
.btn.btn-light-primary:active:not(.btn-active) .svg-icon,
.btn.btn-light-primary:active:not(.btn-active) i,
.btn.btn-light-primary:focus:not(.btn-active) .svg-icon,
.btn.btn-light-primary:focus:not(.btn-active) i,
.btn.btn-light-primary:hover:not(.btn-active) .svg-icon,
.btn.btn-light-primary:hover:not(.btn-active) i,
.show > .btn.btn-light-primary .svg-icon,
.show > .btn.btn-light-primary i {
    color: #ffffff !important;
}

.alert-primary {
    background-color: #eff6ff !important;
    color: var(--eve-bo-primary-text) !important;
}

.alert-primary .alert-link,
.alert-primary .fw-bold,
.alert-primary .fw-semibold,
.notice.bg-light-primary .fw-bold,
.notice.bg-light-primary .fw-semibold {
    color: var(--eve-bo-primary-text) !important;
}

[data-bs-theme="dark"] {
    --eve-bo-warning-bg: #f59e0b;
    --eve-bo-warning-bg-strong: #fbbf24;
    --eve-bo-warning-text: #111827;
    --eve-bo-warning-border: #fbbf24;
    --eve-bo-success-bg: #22c55e;
    --eve-bo-success-bg-strong: #4ade80;
    --eve-bo-success-text: #052e16;
    --eve-bo-success-border: #4ade80;
    --eve-bo-primary-bg: #3b82f6;
    --eve-bo-primary-bg-strong: #60a5fa;
    --eve-bo-primary-text: #0f172a;
    --eve-bo-primary-border: #60a5fa;
}

.app-header .eve-bo-logo-white,
.app-sidebar-logo .eve-bo-logo-white {
    filter: brightness(0) invert(1) !important;
}

.eve-bo-stat-card {
    position: relative;
    isolation: isolate;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(249, 250, 251, .94)),
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, .13), transparent 34%);
    box-shadow: 0 14px 36px rgba(17, 24, 39, .08) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.eve-bo-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--eve-bo-stat-accent, var(--bs-success));
}

.eve-bo-stat-card::after {
    content: "";
    position: absolute;
    right: -32px;
    top: -42px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--eve-bo-stat-accent, var(--bs-success)) 14%, transparent);
    z-index: 0;
}

.eve-bo-stat-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--eve-bo-stat-accent, var(--bs-success)) 25%, rgba(17, 24, 39, .08));
    box-shadow: 0 18px 44px rgba(17, 24, 39, .12) !important;
}

.eve-bo-stat-body {
    position: relative;
    z-index: 1;
    min-height: 122px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.15rem;
}

.eve-bo-stat-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--eve-bo-stat-accent, var(--bs-success)) 13%, #fff);
    color: var(--eve-bo-stat-accent, var(--bs-success));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--eve-bo-stat-accent, var(--bs-success)) 18%, transparent);
}

.eve-bo-stat-icon i {
    font-size: 1.35rem;
}

.eve-bo-stat-content {
    min-width: 0;
}

.eve-bo-stat-label,
.finance-card .metric-label,
.helpdesk-metric-label,
.referral-metric-label,
.approval-label,
.certificate-label,
.verification-label {
    display: block;
    margin-bottom: .35rem;
    color: #374151 !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    line-height: 1.2;
    text-transform: uppercase;
}

.eve-bo-stat-value,
.finance-card .metric-value,
.helpdesk-metric-value,
.referral-metric-value,
.approval-value,
.certificate-value,
.verification-value {
    color: #111827 !important;
    font-size: clamp(1.35rem, 1vw + 1rem, 1.8rem) !important;
    font-weight: 850 !important;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.eve-bo-stat-note {
    display: block;
    margin-top: .55rem;
    color: #4b5563 !important;
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.3;
}

.eve-bo-stat-card--primary { --eve-bo-stat-accent: var(--bs-primary); }
.eve-bo-stat-card--success { --eve-bo-stat-accent: var(--bs-success); }
.eve-bo-stat-card--warning { --eve-bo-stat-accent: var(--bs-warning); }
.eve-bo-stat-card--danger { --eve-bo-stat-accent: var(--bs-danger); }
.eve-bo-stat-card--info { --eve-bo-stat-accent: var(--bs-info); }
.eve-bo-stat-card--neutral { --eve-bo-stat-accent: #64748b; }

[data-bs-theme="dark"] .eve-bo-stat-card {
    border-color: rgba(255, 255, 255, .1);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, .96), rgba(15, 23, 42, .98)),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--eve-bo-stat-accent, var(--bs-success)) 20%, transparent), transparent 34%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .24) !important;
}

[data-bs-theme="dark"] .eve-bo-stat-icon {
    background: color-mix(in srgb, var(--eve-bo-stat-accent, var(--bs-success)) 18%, rgba(15, 23, 42, .9));
}

[data-bs-theme="dark"] .eve-bo-stat-label,
[data-bs-theme="dark"] .finance-card .metric-label,
[data-bs-theme="dark"] .helpdesk-metric-label,
[data-bs-theme="dark"] .referral-metric-label,
[data-bs-theme="dark"] .approval-label,
[data-bs-theme="dark"] .certificate-label,
[data-bs-theme="dark"] .verification-label {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .eve-bo-stat-value,
[data-bs-theme="dark"] .finance-card .metric-value,
[data-bs-theme="dark"] .helpdesk-metric-value,
[data-bs-theme="dark"] .referral-metric-value,
[data-bs-theme="dark"] .approval-value,
[data-bs-theme="dark"] .certificate-value,
[data-bs-theme="dark"] .verification-value {
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .eve-bo-stat-note {
    color: #cbd5e1 !important;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
    .eve-bo-stat-icon {
        background: var(--bs-light);
    }

    .eve-bo-stat-card::after {
        background: rgba(16, 185, 129, .1);
    }
}

.eve-bo-sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    max-width: calc(100% - 34px);
    text-decoration: none;
}

.eve-bo-sidebar-brand-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.eve-bo-sidebar-brand-mark img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: none !important;
}

.eve-bo-sidebar-brand-copy {
    display: inline-flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.12;
    overflow: hidden;
}

.eve-bo-sidebar-brand-copy strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eve-bo-sidebar-brand-copy small {
    color: rgba(255, 255, 255, .9);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eve-bo-mobile-brand {
    gap: .6rem;
    max-width: min(62vw, 210px);
}

.eve-bo-mobile-brand .eve-bo-sidebar-brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 13px;
}

.eve-bo-mobile-brand .eve-bo-sidebar-brand-copy strong {
    font-size: .95rem;
}

.eve-bo-mobile-brand .eve-bo-sidebar-brand-copy small {
    font-size: .68rem;
}

@media (min-width: 992px) {
    [data-kt-app-sidebar-minimize=on]:not([data-kt-app-sidebar-hoverable=true]) .app-sidebar .eve-bo-sidebar-brand-copy,
    [data-kt-app-sidebar-minimize=on][data-kt-app-sidebar-hoverable=true] .app-sidebar:not(:hover) .eve-bo-sidebar-brand-copy {
        display: none;
    }
}
