/* ================================================================
   MULAPRIME THEME — Blue/Teal Corporate
   Override layer: loaded AFTER all other CSS.
   Do NOT edit core files (app.css, bootstrap-extended.css, etc.)
   ================================================================ */

/* ---------------------------------------------------------------
   1. PRIMARY / ACCENT COLOR  (purple #8833ff → teal #0ea5e9)
--------------------------------------------------------------- */

.btn-primary {
    background-color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    color: #fff !important;
}
.btn-primary:hover {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #fff !important;
}
.btn-check:focus + .btn-primary,
.btn-primary:focus {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.35) !important;
}
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: #0369a1 !important;
    border-color: #0369a1 !important;
}

a { color: #0ea5e9; }
a:hover { color: #0284c7; }

.text-primary { color: #0ea5e9 !important; }

.form-check-input:checked {
    background-color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}
.form-check-input[type=checkbox]:indeterminate {
    background-color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}

/* Light-primary icon bg (used in task earnings section) */
.bg-light-primary {
    background-color: rgba(14, 165, 233, 0.15) !important;
}

/* ---------------------------------------------------------------
   2. SIDEBAR  (white → navy blue)
--------------------------------------------------------------- */

.sidebar-wrapper {
    background: #1e3a5f !important;
    border-right: 0 !important;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.22) !important;
}

.sidebar-header {
    background: #162d4a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.logo-text {
    color: #7dd3fc !important;
}

.toggle-icon {
    color: rgba(255, 255, 255, 0.75) !important;
}
.toggle-icon:hover {
    color: #7dd3fc !important;
}

/* Nav links */
.sidebar-wrapper .metismenu a {
    color: rgba(255, 255, 255, 0.70) !important;
    border-color: transparent !important;
}

/* Hover / active states */
.sidebar-wrapper .metismenu a:hover,
.sidebar-wrapper .metismenu a:focus,
.sidebar-wrapper .metismenu a:active,
.sidebar-wrapper .metismenu .mm-active > a {
    color: #7dd3fc !important;
    background: rgba(14, 165, 233, 0.16) !important;
    border-color: transparent !important;
}

/* Left accent bar on active item */
.sidebar-wrapper .metismenu .mm-active > a {
    border-left: 3px solid #0ea5e9 !important;
}

/* Parent icon color */
.sidebar-wrapper .metismenu a .parent-icon {
    color: inherit !important;
}

/* Collapse arrow */
.sidebar-wrapper .metismenu .has-arrow::after {
    border-color: rgba(255, 255, 255, 0.45) !important;
}

/* Section labels */
.menu-label {
    color: rgba(255, 255, 255, 0.32) !important;
}

/* Submenu background + links */
.sidebar-wrapper .metismenu ul {
    background: rgba(0, 0, 0, 0.14) !important;
}
.sidebar-wrapper .metismenu ul a {
    color: rgba(255, 255, 255, 0.62) !important;
}
.sidebar-wrapper .metismenu ul a i {
    color: rgba(255, 255, 255, 0.45) !important;
}
.sidebar-wrapper .metismenu ul a:hover,
.sidebar-wrapper .metismenu ul a:active {
    color: #7dd3fc !important;
    background: rgba(14, 165, 233, 0.13) !important;
}

/* ---------------------------------------------------------------
   3. AUTHENTICATION PAGES  (login / register)
--------------------------------------------------------------- */

/* Full-page background */
.wrapper:not(:has(.sidebar-wrapper)) {
    background: #dbeafe;
}

/* Fallback for browsers that don't support :has() */
body:not(.sidebar-page) {
    background-color: #dbeafe;
}

/* Top half colored banner */
.authentication-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0ea5e9 100%) !important;
}

/* Card shadow upgrade */
.section-authentication-signin .card,
.section-authentication-signup .card {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.13) !important;
    border: none !important;
}

/* ---------------------------------------------------------------
   4. DASHBOARD STAT WIDGET CARDS  — 5 clearly distinct gradients
--------------------------------------------------------------- */

/* 1. Available Balance  → Deep navy-blue */
.card.bg-success {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%) !important;
    border: none !important;
}

/* 2. Total Withdrawals  → Rich violet/purple */
.card.bg-info {
    background: linear-gradient(135deg, #5b21b6 0%, #a855f7 100%) !important;
    border: none !important;
}
.card.bg-info .text-dark { color: #ffffff !important; }

/* 3. Pending Withdrawals  → Crimson-red */
.card.bg-danger {
    background: linear-gradient(135deg, #9f1239 0%, #f43f5e 100%) !important;
    border: none !important;
}

/* 4. Team Earnings  → Emerald green */
.card.bg-warning {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%) !important;
    border: none !important;
}
.card.bg-warning .text-dark { color: #ffffff !important; }

/* 5. Welcome Bonus  → Amber/gold */
.card.bg-primary {
    background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%) !important;
    border: none !important;
}

/* Hover lift — all 5 */
.card.bg-success,
.card.bg-info,
.card.bg-danger,
.card.bg-warning,
.card.bg-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.card.bg-success:hover,
.card.bg-info:hover,
.card.bg-danger:hover,
.card.bg-warning:hover,
.card.bg-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
}

/* ---------------------------------------------------------------
   5. GENERAL CARD POLISH
--------------------------------------------------------------- */

/* Slightly stronger shadow on all white cards */
.card:not(.bg-success):not(.bg-info):not(.bg-danger):not(.bg-warning):not(.bg-primary):not(.smart-card):not(.ref-card) {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---------------------------------------------------------------
   6. ACCOUNT INFO & TIMETABLE CARDS
--------------------------------------------------------------- */

/* Active (header) row of list-group */
.list-group-item.active {
    background-color: #1e3a5f !important;
    border-color: #1e3a5f !important;
    color: #7dd3fc !important;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* Timetable header row */
.list-group-item strong {
    color: #1e3a5f;
    letter-spacing: 0.5px;
}

/* Badge bg-primary: already inherits teal from btn-primary override.
   Force it here so it matches even without !important cascade: */
.badge.bg-primary {
    background-color: #0ea5e9 !important;
}

/* ---------------------------------------------------------------
   7. TOPBAR ACCENT
--------------------------------------------------------------- */

/* Thin teal bottom border on topbar for subtle brand line */
.topbar {
    border-bottom: 2px solid rgba(14, 165, 233, 0.25) !important;
}

/* Mobile toggle icon — match sidebar brand */
.mobile-toggle-menu {
    color: #1e3a5f !important;
}

/* ---------------------------------------------------------------
   8. TASK EARNINGS GRID ITEMS
--------------------------------------------------------------- */

.mp-earn-item {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid #e9f0f8;
    border-radius: 10px;
    padding: 10px 11px;
    height: 100%;
    transition: box-shadow 0.2s ease;
}
.mp-earn-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.mp-earn-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.mp-earn-label {
    font-size: 0.78rem;
    color: #7b97b3;
    font-weight: 600;
    line-height: 1.2;
}
.mp-earn-value {
    font-size: 0.98rem;
    font-weight: 800;
    color: #1e3a5f;
    white-space: nowrap;
}

/* ---------------------------------------------------------------
   9. ACCOUNT INFO ITEMS
--------------------------------------------------------------- */

.mp-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e9f0f8;
    border-radius: 10px;
    padding: 10px 12px;
    transition: box-shadow 0.2s ease;
}
.mp-info-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.mp-info-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.mp-info-label {
    font-size: 0.68rem;
    color: #7b97b3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
}
.mp-info-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a5f;
}

/* ---------------------------------------------------------------
   10. TIMETABLE DAY ITEMS
--------------------------------------------------------------- */

.mp-tt-day {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e9f0f8;
    border-radius: 10px;
    padding: 9px 10px;
    transition: box-shadow 0.2s ease;
}
.mp-tt-day:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.mp-tt-dow {
    font-size: 0.71rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.mp-tt-task {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e3a5f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------------
   11. STAT WIDGET ICON COLORS (matching new gradients)
--------------------------------------------------------------- */

/* ---------------------------------------------------------------
   12. PAYMENT PAGES  (ugpay, mapay, rwpay, kepay, etc.)
--------------------------------------------------------------- */

.pay-page body { background: #f0f6ff !important; }

/* Top portal card */
.pay-hdr-card {
    border-radius: 18px !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10) !important;
    margin-bottom: 1.25rem;
}
.pay-hdr-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c6ea4 60%, #0ea5e9 100%);
    padding: 24px 24px 20px;
    position: relative; overflow: hidden;
}
.pay-hdr-banner::before {
    content: ''; position: absolute;
    top: -30px; right: -30px; width: 130px; height: 130px;
    border-radius: 50%; background: rgba(255,255,255,0.09);
}
.pay-hdr-banner::after {
    content: ''; position: absolute;
    bottom: -20px; left: 20px; width: 80px; height: 80px;
    border-radius: 50%; background: rgba(14,165,233,0.18);
}
.pay-hdr-icon-wrap {
    width: 54px; height: 54px; border-radius: 14px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    margin-bottom: 14px; position: relative; z-index: 1;
}
.pay-hdr-title {
    font-size: 1.3rem; font-weight: 800; color: #fff;
    position: relative; z-index: 1; margin-bottom: 4px;
}
.pay-hdr-sub {
    font-size: 0.82rem; color: rgba(255,255,255,0.70);
    position: relative; z-index: 1;
}
.pay-hdr-logo-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px; position: relative; z-index: 1;
}
.pay-hdr-logo-img {
    width: 50px; height: 50px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.55);
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
    object-fit: cover;
}
.pay-hdr-brand {
    font-size: 1.45rem; font-weight: 900; color: #fff;
    font-family: 'Outfit', 'Roboto', sans-serif;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.pay-hdr-brand-tag {
    font-size: 0.72rem; color: rgba(255,255,255,0.58);
    font-style: italic; margin-top: 2px;
}
.pay-hdr-meta {
    background: #fff; padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.pay-hdr-user-label { font-size: 0.70rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #94a3b8; }
.pay-hdr-username { font-size: 0.95rem; font-weight: 700; color: #1e3a5f; }
.pay-hdr-badge {
    background: linear-gradient(135deg, #065f46, #10b981);
    color: #fff; padding: 5px 14px; border-radius: 20px;
    font-size: 0.74rem; font-weight: 700; white-space: nowrap;
}

/* Network tab pills */
.pay-tab-wrap { background: #f8fafc; padding: 12px 20px; border-bottom: 1px solid #e9f0f8; }
.pay-tabs .nav-link {
    border-radius: 8px !important; font-size: 0.82rem; font-weight: 700;
    padding: 7px 16px !important; transition: all 0.2s;
}

/* Steps card */
.pay-steps-card {
    border-radius: 14px !important; border: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07) !important; overflow: hidden;
}
.pay-steps-hdr {
    background: linear-gradient(90deg, #1e3a5f, #0ea5e9);
    padding: 13px 18px; display: flex; align-items: center; gap: 10px;
}
.pay-steps-hdr-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; flex-shrink: 0;
}
.pay-steps-hdr-text { font-weight: 700; font-size: 0.95rem; color: #fff; }
.pay-steps-body { padding: 16px 18px; }
.pay-step {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 9px 0; border-bottom: 1px solid #f0f4f8;
}
.pay-step:last-child { border-bottom: none; }
.pay-step-num {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #1e3a5f, #0ea5e9);
    color: #fff; font-size: 0.72rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.pay-step-text { font-size: 0.88rem; color: #334155; line-height: 1.4; }
.pay-step-text strong { color: #1e3a5f; }
.pay-step-text .hl-primary { color: #0ea5e9; font-weight: 700; }
.pay-step-text .hl-success { color: #059669; font-weight: 700; }
.pay-step-text .hl-danger  { color: #dc2626; font-weight: 700; }

/* Confirm card */
.pay-confirm-card {
    border-radius: 14px !important; border: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07) !important; overflow: hidden;
}
.pay-confirm-hdr {
    background: linear-gradient(90deg, #065f46, #10b981);
    padding: 13px 18px; display: flex; align-items: center; gap: 10px;
}
.pay-confirm-hdr-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; flex-shrink: 0;
}
.pay-confirm-hdr-text { font-weight: 700; font-size: 0.95rem; color: #fff; }
.pay-confirm-body { padding: 18px; }
.pay-confirm-body .form-control {
    border: 1.5px solid #e2e8f0 !important; border-radius: 10px !important;
    font-size: 0.90rem; color: #1e3a5f;
    background: #f8fafc !important; box-shadow: none !important;
}
.pay-confirm-body .form-control:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12) !important;
    background: #fff !important;
}
.pay-confirm-body .form-label { font-size: 0.83rem; font-weight: 600; color: #475569; }
.pay-confirm-body .btn { border-radius: 10px !important; font-weight: 700; padding: 11px 18px; }

/* Available Balance widget icon — was text-success (green) on white bg */
.card.bg-success .widgets-icons.text-success {
    color: #0284c7 !important;
}

/* Total Withdrawals widget — was text-dark */
.card.bg-info .widgets-icons {
    color: #0e7490 !important;
}

/* Team Earnings widget — was text-dark */
.card.bg-warning .widgets-icons {
    color: #047857 !important;
}

/* ===================================================
   INNER PAGE DESIGN SYSTEM
   =================================================== */

/* Page Banner Card */
.mp-page-card {
    border-radius: 16px; overflow: hidden; border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.09); margin-bottom: 20px;
}
.mp-page-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c6ea4 60%, #0ea5e9 100%);
    padding: 20px 22px 18px; position: relative; overflow: hidden;
}
.mp-page-banner::before {
    content: ''; position: absolute;
    top: -28px; right: -28px; width: 120px; height: 120px;
    border-radius: 50%; background: rgba(255,255,255,0.09);
}
.mp-page-banner::after {
    content: ''; position: absolute;
    bottom: -22px; left: 22px; width: 80px; height: 80px;
    border-radius: 50%; background: rgba(14,165,233,0.18);
}
.mp-page-banner-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.28);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
    margin-bottom: 12px; position: relative; z-index: 1;
}
.mp-page-banner-title {
    font-size: 1.2rem; font-weight: 800; color: #fff;
    position: relative; z-index: 1; margin-bottom: 4px;
}
.mp-page-banner-sub {
    font-size: 0.82rem; color: rgba(255,255,255,0.70);
    position: relative; z-index: 1;
}

/* Stat Cards */
.mp-stat {
    border-radius: 14px; overflow: hidden; border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10); height: 100%;
}
.mp-stat-body {
    padding: 16px 18px; display: flex;
    align-items: center; justify-content: space-between;
}
.mp-stat-label {
    font-size: 0.73rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.6px; color: rgba(255,255,255,0.82); margin-bottom: 4px;
}
.mp-stat-value {
    font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.2;
}
.mp-stat-icon-wrap {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,0.18); border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff; flex-shrink: 0;
}

/* Content / Form Cards */
.mp-card {
    border-radius: 14px; overflow: hidden; border: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.mp-card-hdr {
    padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.mp-card-hdr-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff; flex-shrink: 0;
}
.mp-card-hdr-title { font-weight: 700; font-size: 0.95rem; color: #fff; }
.mp-card-hdr-sub   { font-size: 0.72rem; color: rgba(255,255,255,0.65); margin-top: 1px; }
.mp-card-body { padding: 18px; background: #fff; }
.mp-card-body .form-control {
    border: 1.5px solid #e2e8f0 !important; border-radius: 10px !important;
    font-size: 0.90rem; color: #1e3a5f;
    background: #f8fafc !important; box-shadow: none !important;
}
.mp-card-body .form-control:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12) !important;
    background: #fff !important;
}
.mp-card-body .form-label { font-size: 0.83rem; font-weight: 600; color: #475569; }
.mp-card-body .btn { border-radius: 10px !important; font-weight: 700; }
.mp-card-body .input-group-text {
    background: #f0f7ff !important; border-color: #dde9f5 !important;
    color: #0ea5e9; font-weight: 700;
}

/* Table Card */
.mp-tbl-card {
    border-radius: 14px; overflow: hidden; border: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.mp-tbl-hdr {
    padding: 14px 18px; display: flex; align-items: center; gap: 12px;
    background: linear-gradient(90deg, #1e3a5f, #0ea5e9);
}
.mp-tbl-hdr-title { font-weight: 700; font-size: 0.95rem; color: #fff; }
.mp-tbl-body { padding: 16px; background: #fff; }
.mp-tbl-body .table thead th {
    background: #f0f7ff; color: #1e3a5f; font-weight: 700;
    font-size: 0.80rem; text-transform: uppercase; letter-spacing: 0.4px;
    border-bottom: 2px solid #dde9f5;
}
.mp-tbl-body .table tbody td { font-size: 0.88rem; vertical-align: middle; color: #334155; }
.mp-tbl-body .table { border-collapse: separate; border-spacing: 0; }

/* Service fee box (withdraw page) */
.mp-fee-box {
    background: #f0f9ff; border: 1.5px solid #bae6fd;
    border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.mp-fee-label { font-size: 0.78rem; font-weight: 700; color: #0369a1; text-transform: uppercase; letter-spacing: 0.5px; }
.mp-fee-value { font-size: 1.1rem; font-weight: 800; color: #1e3a5f; margin-top: 2px; }
.mp-receive-text { font-size: 0.82rem; color: #059669; font-weight: 700; margin-top: 4px; }
