.legacy-app-body {
    background: #ffffff !important;
}

/* Local replacements for the small Soft UI/Tailwind subset used by legacy PHP markup. */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.z-10 {
    z-index: 10;
}

.z-110 {
    z-index: 110;
}

.flex {
    display: flex;
}

.inline-block {
    display: inline-block;
}

.flex-col {
    flex-direction: column;
}

.flex-auto {
    flex: 1 1 auto;
}

.min-w-0 {
    min-width: 0;
}

.break-words {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bg-clip-border {
    background-clip: border-box;
}

.rounded-2xl {
    border-radius: 18px;
}

.rounded-lg {
    border-radius: 10px;
}

.shadow-xl,
.shadow-soft-xl,
.shadow-soft-lg,
.shadow-soft-md,
.shadow-soft-2xl {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.hover\:shadow-soft-xs:hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.hover\:scale-102:hover {
    transform: translateY(-1px);
}

.active\:opacity-85:active {
    opacity: 0.85;
}

.border-0 {
    border: 0;
}

.border-transparent {
    border-color: transparent;
}

.border-solid {
    border-style: solid;
}

.cursor-pointer {
    cursor: pointer;
}

.align-middle {
    vertical-align: middle;
}

.px-6 {
    padding-left: 24px;
    padding-right: 24px;
}

.opacity-80 {
    opacity: 0.8;
}

.font-bold,
.font-semibold {
    font-weight: 700;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-800 {
    color: #1e293b;
}

.bg-white {
    background-color: #fff;
}

.from-red-600 { --tw-gradient-from: #dc2626; --tw-gradient-to: rgb(220 38 38 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-rose-400 { --tw-gradient-to: #fb7185; }

.from-green-600 { --tw-gradient-from: #16a34a; --tw-gradient-to: rgb(22 163 74 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-lime-400 { --tw-gradient-to: #a3e635; }

.from-blue-600 { --tw-gradient-from: #2563eb; --tw-gradient-to: rgb(37 99 235 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-cyan-400 { --tw-gradient-to: #22d3ee; }
.to-blue-400 { --tw-gradient-to: #60a5fa; }

.from-gray-900 { --tw-gradient-from: #111827; --tw-gradient-to: rgb(17 24 39 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-slate-800 { --tw-gradient-to: #1e293b; }

.bg-gradient-to-tl {
    background-image: linear-gradient(to top left, var(--tw-gradient-stops));
}

.shadow-blur {
    box-shadow: inset 0 0 1px 1px hsla(0,0%,100%,.9),0 20px 27px 0 rgba(0,0,0,.05) !important;
}

.bg-clip-border {
    background-clip: border-box;
}

.backdrop-blur {
    backdrop-filter: blur(30px);
}

.backdrop-saturate-200 {
    backdrop-filter: saturate(200%);
}

.bg-soft-white {
    background-color: hsla(0,0%,100%,0.8) !important;
}

.legacy-app-body .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px;
    min-height: 60px;
    margin: 0 !important;
    padding: 0 15px !important;
    border-radius: 0 !important;
    z-index: 1200 !important;
}

.legacy-app-body .legacy-header-logo,
.legacy-app-body .legacy-header-logo:hover,
.legacy-app-body .legacy-header-logo:focus {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    height: 60px;
    margin-top: 0 !important;
    color: rgb(89, 255, 255);
    line-height: 1;
    text-transform: none;
    text-decoration: none;
}

.legacy-app-body .legacy-header-logo img {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
}

.legacy-app-body .legacy-header-logo b {
    display: inline-block;
    white-space: nowrap;
}

.legacy-app-body #sidebar {
    position: fixed !important;
    top: 60px !important;
    bottom: 0;
    left: 0;
    height: calc(100vh - 60px) !important;
    margin: 0;
    overflow-y: auto;
    z-index: 1000 !important;
}

.legacy-app-body ul.sidebar-menu {
    margin-top: 15px;
    padding-bottom: 30px;
}

.legacy-app-body #main-content {
    margin-left: 210px;
    padding-top: 60px;
}

.legacy-app-body #main-content .wrapper {
    margin-top: 0;
    width: 100%;
}

.legacy-app-body #container.sidebar-closed #main-content,
.legacy-app-body #container.sidebar-close #main-content {
    margin-left: 0 !important;
}

.legacy-app-body #container.sidebar-closed #sidebar,
.legacy-app-body #container.sidebar-close #sidebar {
    margin-left: -210px !important;
}

.legacy-app-body #container.sidebar-closed #sidebar > ul,
.legacy-app-body #container.sidebar-close #sidebar > ul {
    display: none;
}

.legacy-guest-body {
    min-height: 100vh;
}

.legacy-auth-logo {
    max-width: 100px;
}

.legacy-alert {
    margin-bottom: 18px;
}

.legacy-page-header {
    margin-bottom: 22px;
}

.legacy-page-header h3 {
    margin-top: 0;
}

.legacy-soft-panel,
.legacy-table-panel,
.legacy-form-panel {
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
}

/* Disable blur effect on mobile devices for better performance */
@media (max-width: 768px) {
    .legacy-soft-panel,
    .legacy-table-panel,
    .legacy-form-panel {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
    }
}

.legacy-soft-panel-dark {
    background: rgba(89, 89, 89, 0.72);
    color: #fff;
}

.legacy-soft-panel-dark h2,
.legacy-soft-panel-dark h3,
.legacy-soft-panel-dark h4,
.legacy-soft-panel-dark label,
.legacy-soft-panel-dark p,
.legacy-soft-panel-dark td,
.legacy-soft-panel-dark th {
    color: #fff;
}

.legacy-dashboard-bank-card,
.legacy-stat-card,
.legacy-service-card {
    min-width: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    word-wrap: break-word;
}

.legacy-dashboard-bank-card > div,
.legacy-stat-card > div {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.legacy-dashboard-bank-card__bg {
    position: absolute;
    inset: 0;
    background-color: rgba(1, 84, 124, 1);
}

.legacy-stat-card > div > span {
    position: absolute;
    inset: 0;
}

.legacy-dashboard-account-grid {
    row-gap: 18px;
}

.legacy-dashboard-account-grid h4 {
    line-height: 1.45;
}

.legacy-dashboard-bvn-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.legacy-dashboard-bvn-form .form-control {
    max-width: 320px;
}

.legacy-dashboard-wallet-row {
    display: flex;
    margin-top: 10px;
}

.legacy-dashboard-welcome {
    min-height: 100%;
}

.legacy-dashboard-welcome-old {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.legacy-dashboard-fund-link,
.legacy-dashboard-fund-link:hover,
.legacy-dashboard-fund-link:focus {
    display: inline-block;
    width: fit-content;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    padding: 16px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(to top left, #dc2626, #fb7185);
    text-decoration: none;
}

.legacy-dashboard-service-card .card-body {
    gap: 12px;
}

.legacy-dashboard-card-link--green {
    background-image: linear-gradient(to top left, #16a34a, #84cc16);
}

.legacy-dashboard-card-link--blue {
    background-image: linear-gradient(to top left, #2563eb, #06b6d4);
}

.legacy-dashboard-card-link,
.legacy-dashboard-card-link:hover,
.legacy-dashboard-card-link:focus,
.legacy-dashboard-bvn-form button,
.legacy-dashboard-mobile-notice .close {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 10px;
    color: #fff;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    text-decoration: none;
}

.legacy-card-inline-note {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(254, 243, 199, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #92400e;
    font-size: 0.92rem;
}

.legacy-dashboard-modal .modal-content {
    border-radius: 18px;
    max-height: calc(100vh - 120px);
}

.legacy-dashboard-mobile-notice {
    margin-bottom: 18px;
    border-radius: 14px;
    color: #1f2937;
    background: rgba(232, 246, 250, 0.98);
    border-color: rgba(14, 109, 136, 0.22);
}

.legacy-dashboard-mobile-notice .close {
    opacity: 0.8;
}

.legacy-dashboard-modal .modal-dialog {
    margin-top: 82px;
}

.legacy-dashboard-modal .modal-body {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.legacy-dashboard-modal:not(.show) {
    pointer-events: none;
}

.legacy-app-body .modal-backdrop.show {
    opacity: 0.35;
}

.legacy-stat-card {
    min-height: 180px;
}

.legacy-stat-card .big-stat {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 10px 0;
}

.legacy-action-link,
.legacy-action-link:hover,
.legacy-action-link:focus {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
}

.legacy-action-link.primary {
    background: linear-gradient(135deg, #0e6d88, #0f9d8a);
}

.legacy-action-link.success {
    background: linear-gradient(135deg, #16a34a, #65a30d);
}

.legacy-action-link.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.legacy-note {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 243, 205, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #7c5a00;
    margin: 14px 0;
}

.legacy-muted {
    color: #6b7280;
}

.legacy-table-panel table {
    margin-bottom: 0;
}

.legacy-empty {
    padding: 14px;
    color: #6b7280;
}

.legacy-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.legacy-inline-form .form-group,
.legacy-inline-form label {
    flex: 1 1 220px;
}

.legacy-detail-photo {
    width: 160px;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
}

.legacy-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.legacy-detail-grid .detail-item {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.legacy-service-card {
    min-height: 100%;
}

.legacy-service-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legacy-service-card .card-body p {
    flex: 1 1 auto;
}

.legacy-secondary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legacy-secondary-nav a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    color: #1f2937;
    text-decoration: none;
}

.legacy-secondary-nav a.active {
    background: linear-gradient(135deg, #0e6d88, #0f9d8a);
    color: #fff;
}

.legacy-auth-card {
    float: none;
    margin: 0 auto 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    word-wrap: break-word;
}

.legacy-auth-card .form-control,
.legacy-form-panel .form-control,
.legacy-form-panel textarea,
.legacy-form-panel select {
    border-radius: 10px;
}

.legacy-form-panel .form-control,
.legacy-form-panel select,
.legacy-form-panel textarea,
.legacy-soft-panel .form-control,
.legacy-soft-panel select,
.legacy-soft-panel textarea {
    width: 100%;
}

.legacy-form-panel label,
.legacy-soft-panel label {
    display: block;
    font-weight: 600;
}

.legacy-filter-grid,
.legacy-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.legacy-filter-grid {
    align-items: flex-end;
}

.legacy-filter-grid .form-group,
.legacy-filter-grid label,
.legacy-filter-grid > div {
    flex: 1 1 220px;
}

.legacy-summary-pill {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    color: #1f2937;
}

.legacy-table-panel .pagination,
.legacy-soft-panel .pagination {
    margin: 18px 0 0;
}

.legacy-table-panel .pagination .page-link,
.legacy-soft-panel .pagination .page-link {
    border-radius: 10px;
    margin-right: 6px;
    color: #0e6d88;
}

.legacy-table-panel .pagination .active .page-link,
.legacy-soft-panel .pagination .active .page-link {
    background: linear-gradient(135deg, #0e6d88, #0f9d8a);
    border-color: transparent;
    color: #fff;
}

.legacy-mini-stat {
    min-height: 100%;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.legacy-admin-card {
    transition: all 0.25s ease;
}

.legacy-stat-card {
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.legacy-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2) !important;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
    content: "";
    background-color: rgba(0,0,0,0);
}

.legacy-mini-stat span {
    display: block;
}

.legacy-mini-stat .value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 8px 0 10px;
}

.legacy-note-light {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
    color: #1f2937;
}

.legacy-table-panel .table > thead > tr > th,
.legacy-soft-panel .table > thead > tr > th {
    vertical-align: middle;
}

.legacy-table-panel .table > tbody > tr > td,
.legacy-soft-panel .table > tbody > tr > td {
    vertical-align: middle;
}

.legacy-cta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legacy-cta-stack form {
    display: inline-block;
}

.legacy-photo-shell {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.circle1,
.circle2,
.circle3,
.circle4,
.circle5,
.circle6 {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}

.circle1 {
    top: 20px;
    left: 150px;
    height: 200px;
    width: 200px;
}

.circle2 {
    bottom: 50px;
    right: 20px;
    height: 200px;
    width: 200px;
}

.circle3 {
    top: 200px;
    left: 400px;
    height: 200px;
    width: 200px;
}

.circle4 {
    bottom: 50px;
    left: 100px;
    height: 250px;
    width: 250px;
}

.circle5 {
    top: 50px;
    right: 100px;
    height: 100px;
    width: 100px;
}

.circle6 {
    top: 200px;
    right: 35%;
    height: 250px;
    width: 250px;
}

@media (max-width: 991px) {
    .legacy-detail-grid {
        grid-template-columns: 1fr;
    }

    .legacy-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .legacy-filter-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .legacy-dashboard-bvn-form {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .legacy-app-body .header {
        position: fixed !important;
        height: 60px;
        min-height: 60px;
    }

    .legacy-app-body #sidebar {
        top: 60px !important;
        bottom: auto !important;
        width: 100% !important;
        max-height: calc(100vh - 60px);
        height: auto !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .legacy-app-body #main-content {
        margin-left: 0 !important;
        padding-top: 60px;
    }

    .legacy-app-body ul.sidebar-menu {
        margin-top: 15px;
    }

    .legacy-app-body #container.sidebar-closed #sidebar,
    .legacy-app-body #container.sidebar-close #sidebar {
        margin-left: -100% !important;
        pointer-events: none !important;
    }

    .legacy-app-body #container.sidebar-closed #sidebar > ul,
    .legacy-app-body #container.sidebar-close #sidebar > ul {
        display: none !important;
    }

    .legacy-app-body #container:not(.sidebar-closed):not(.sidebar-close) #sidebar {
        margin-left: 0 !important;
        pointer-events: auto;
    }

    .legacy-app-body .circle1,
    .legacy-app-body .circle2,
    .legacy-app-body .circle3,
    .legacy-app-body .circle4,
    .legacy-app-body .circle5,
    .legacy-app-body .circle6 {
        display: none !important;
        backdrop-filter: none !important;
        pointer-events: none !important;
    }

    .legacy-dashboard-modal {
        padding-right: 0 !important;
    }

    .legacy-dashboard-modal .modal-dialog {
        margin: 72px 12px 16px;
    }

    .legacy-dashboard-modal .modal-content {
        max-height: calc(100vh - 88px);
    }

    .legacy-dashboard-modal .modal-body {
        max-height: calc(100vh - 220px);
    }

    /* Disable navbar blur on mobile */
    [navbar-main].sticky {
        backdrop-filter: none !important;
    }

    /* Force-disable all Tailwind blur utilities on mobile */
    [class*="backdrop-blur"],
    [class*="shadow-blur"],
    .backdrop-blur-\[30px\],
    .backdrop-blur-\[100px\],
    .backdrop-blur,
    .shadow-blur {
        backdrop-filter: none !important;
        filter: none !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

.text-red-500 {
    color: #ef4444 !important;
}
