:root {
    --brand-orange: #FE5600;
    --brand-blue: #00187C;
    --bg-body: #f4f7fa;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 75px;
    --transition: all 0.25s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    font-size: 14px;
    margin: 0;
    color: #334155;
}

/* --- MoneyPay Professional Loader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Sabse upar rahega */
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.mp-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 24, 124, 0.1);
    border-top: 5px solid var(--brand-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--brand-blue);
    letter-spacing: 1px;
}

    .loader-brand span {
        color: var(--brand-orange);
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loader hide hone ki class */
.loader-fade-out {
    opacity: 0;
    pointer-events: none;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: #fff;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1050;
    transition: var(--transition);
    border-right: 1px solid #e2e8f0;
    padding: 15px;
    /* --- Scroll Fix Logic --- */
    overflow-y: auto; /* Vertical scroll enable karega */
    overflow-x: hidden; /* Side scroll band rakhega */
    display: flex;
    flex-direction: column;
}

    /* --- Professional Slim Scrollbar --- */

    .sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: #e2e8f0; 
        border-radius: 10px;
    }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--brand-orange); 
        }

    .sidebar .mt-5 {
        margin-top: auto !important;
        padding-top: 20px;
    }

    .sidebar.collapsed {
        width: var(--sidebar-collapsed-width);
    }

        .sidebar.collapsed span, .sidebar.collapsed .menu-label, .sidebar.collapsed .brand-name {
            display: none;
        }

.main-wrapper {
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    min-height: 100vh;
}

    .main-wrapper.expanded {
        margin-left: var(--sidebar-collapsed-width);
    }

.header {
    height: 65px;
    background: #fff;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.toggle-btn {
    border: none;
    background: #f1f5f9;
    color: var(--brand-blue);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.brand-name {
    font-weight: 800;
    color: var(--brand-blue);
    font-size: 1.3rem;
    margin-bottom: 30px;
    padding-left: 10px;
}

.orange-dot {
    color: var(--brand-orange);
}

.menu-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    margin: 20px 0 10px 10px;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 11px 15px;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: 0.2s;
}

    .nav-item i {
        margin-right: 12px;
        font-size: 1.1rem;
    }

    .nav-item:hover {
        background: #f8fafc;
        color: var(--brand-orange);
    }

    .nav-item.active {
        background: rgba(254, 86, 0, 0.08);
        color: var(--brand-orange);
        font-weight: 600;
    }

.wallet-box {
    background: rgba(0, 24, 124, 0.04);
    border: 1px solid rgba(0, 24, 124, 0.08);
    padding: 6px 15px;
    border-radius: 10px;
    color: var(--brand-blue);
    font-weight: 700;
    text-align: right;
}

    .wallet-box small {
        font-weight: 500;
        color: #64748b;
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        margin-bottom: 1px;
    }

.stat-card {
    background: #fff;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: 0.3s;
}

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    }

    .stat-card .icon-box {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

.card-orange {
    background: #fffcf9;
    border-color: #fee2d5;
}

    .card-orange .icon-box {
        background: var(--brand-orange);
        color: #fff;
    }

.card-blue {
    background: #f4f7ff;
    border-color: #dbe4ff;
}

    .card-blue .icon-box {
        background: var(--brand-blue);
        color: #fff;
    }

.btn-brand {
    background: var(--brand-orange);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
}

    .btn-brand:hover {
        background: #e44d00;
        color: #fff;
    }

.form-control-custom {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
}

    .form-control-custom:focus {
        border-color: var(--brand-orange);
        box-shadow: 0 0 0 3px rgba(254, 86, 0, 0.1);
    }

@media (max-width: 991px) {
    .sidebar {
        left: -100%;
    }

        .sidebar.mobile-show {
            left: 0;
            box-shadow: 15px 0 40px rgba(0,0,0,0.1);
        }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1045;
        backdrop-filter: blur(2px);
    }

        .sidebar-overlay.active {
            display: block;
        }
}

/* --- Global OTP Design --- */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.otp-input {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--brand-blue);
    transition: all 0.2s ease;
}

    .otp-input:focus {
        border-color: var(--brand-orange);
        outline: none;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(254, 86, 0, 0.15);
        transform: translateY(-2px);
    }

.icon-circle {
    width: 65px;
    height: 65px;
    background: #fff5f0;
    color: var(--brand-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

/* --- API Documentation Specific Styles --- */
.doc-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.method-badge {
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    text-transform: uppercase;
    margin-right: 12px;
}

.method-post {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #d1fae5;
}

.method-get {
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #dbeafe;
}

.endpoint-box {
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 10px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    border: 1px dashed #cbd5e1;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--brand-blue);
}

.code-block {
    background: #001144; /* Darker Blue for Contrast */
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 15px;
}

.copy-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s;
}

    .copy-btn:hover {
        background: var(--brand-orange);
    }

.param-table {
    font-size: 13px;
}

    .param-table thead {
        background: #f1f5f9;
        color: var(--brand-blue);
    }

.param-name {
    color: var(--brand-orange);
    font-weight: 600;
    font-family: monospace;
}

.doc-nav-card {
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eef2f6;
}

.doc-link {
    display: block;
    padding: 8px 12px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 13.5px;
    margin-bottom: 2px;
}

    .doc-link:hover, .doc-link.active {
        background: rgba(254, 86, 0, 0.05);
        color: var(--brand-orange);
        font-weight: 600;
    }
/* --- Reports & Table Styling --- */
.report-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.table-custom {
    font-size: 13px;
    vertical-align: middle;
}

    .table-custom thead {
        background: #f8fafc;
    }

        .table-custom thead th {
            color: var(--brand-blue);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 11px;
            letter-spacing: 0.5px;
            padding: 15px 10px;
            border-bottom: 2px solid #edf2f7;
        }

    .table-custom tbody td {
        padding: 12px 10px;
        border-bottom: 1px solid #f1f5f9;
        color: #475569;
    }

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.status-success {
    background: #e6f9f0;
    color: #10b981;
}

.status-pending {
    background: #fff9db;
    color: #f59e0b;
}

.status-failed {
    background: #fee2e2;
    color: #ef4444;
}

.status-refund {
    background: #f3f0ff;
    color: #7048e8;
}

/* Search & Filter Bar */
.filter-bar {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.search-input-group {
    position: relative;
}

    .search-input-group i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
    }

    .search-input-group .form-control {
        padding-left: 35px;
        border-radius: 10px;
    }

/* --- Registration Page Specific --- */
.reg-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f4f7fa 0%, #e9effd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.reg-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 24, 124, 0.06);
    width: 100%;
    max-width: 1500px;
    overflow: hidden;
    border: 1px solid #eef2f6;
}

.reg-sidebar {
    background: var(--brand-blue);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reg-form-container {
    padding: 40px;
}

.section-title {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--brand-orange);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
    display: block;
}

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
}

.reg-input {
    border-radius: 10px;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    transition: 0.2s;
    background-color: #fbfcfd;
}

    .reg-input:focus {
        border-color: var(--brand-orange);
        box-shadow: 0 0 0 4px rgba(254, 86, 0, 0.1);
        background-color: #fff;
    }


/* --- Ultra Modern Login Page --- */
.login-bg {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #e9effd, #f4f7fa);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

    /* Background floating circles for "Vibe" */
    .login-bg::before {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        background: rgba(254, 86, 0, 0.05);
        border-radius: 50%;
        top: -100px;
        right: -100px;
        z-index: 0;
    }

.login-card-v2 {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 24, 124, 0.08);
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    z-index: 1;
    position: relative;
}

    .login-card-v2 .brand-name {
        font-size: 2rem;
        letter-spacing: -1px;
        margin-bottom: 10px;
    }

.welcome-text {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 35px;
}

.input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

    .input-group-custom i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--brand-blue);
        opacity: 0.5;
        font-size: 1.1rem;
    }

    .input-group-custom .form-control {
        padding-left: 45px;
        height: 55px;
        border-radius: 15px;
        border: 1.5px solid #edf2f7;
        background: #f8fafc;
        font-weight: 500;
    }

        .input-group-custom .form-control:focus {
            border-color: var(--brand-orange);
            background: #fff;
            box-shadow: 0 10px 20px rgba(254, 86, 0, 0.05);
        }

.btn-login {
    height: 55px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff7a33 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(254, 86, 0, 0.25);
    transition: all 0.3s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(254, 86, 0, 0.35);
        color: white;
    }

/* --- Callback Page Specific --- */
.callback-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    border: 1px solid #eef2f6;
    max-width: 700px;
    margin: 0 auto;
}

.url-input-group {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

    .url-input-group:focus-within {
        border-color: var(--brand-orange);
        background: #fff;
    }

.info-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Profile Page Styling --- */
.profile-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #eef2f6;
    height: 100%;
}

.profile-img-box {
    width: 80px;
    height: 80px;
    background: var(--brand-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.detail-item {
    margin-bottom: 15px;
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 10px;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    display: block;
}

.detail-value {
    font-size: 14px;
    color: var(--brand-blue);
    font-weight: 600;
}

.edit-link {
    font-size: 12px;
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

    .edit-link:hover {
        text-decoration: underline;
    }

/* --- KYC Page Styling --- */
.kyc-upload-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eef2f6;
    transition: 0.3s;
    height: 100%;
}

.kyc-status-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.status-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
}

.kyc-pending {
    background: #fff9db;
    color: #f59e0b;
}

.kyc-verified {
    background: #e6f9f0;
    color: #10b981;
}

.kyc-rejected {
    background: #fee2e2;
    color: #ef4444;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

    .file-input-wrapper input[type=file] {
        font-size: 100px;
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        cursor: pointer;
    }

.upload-btn-custom {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

    .upload-btn-custom:hover {
        border-color: var(--brand-orange);
        color: var(--brand-orange);
        background: #fff;
    }

/* --- Advanced Fund Request --- */
.bank-selector {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.bank-mini-card {
    min-width: 180px;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

    .bank-mini-card.active {
        border-color: var(--brand-orange);
        background: rgba(254, 86, 0, 0.02);
        box-shadow: 0 5px 15px rgba(254, 86, 0, 0.1);
    }

    .bank-mini-card img {
        width: 40px;
        margin-bottom: 10px;
        border-radius: 8px;
    }

.history-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #eef2f6;
    margin-top: 30px;
}

/* --- Fund Request Specific --- */
.bank-card {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #002a7c 100%);
    color: #fff;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

    .bank-card::after {
        content: '\F1C1';
        font-family: 'bootstrap-icons';
        position: absolute;
        right: -10px;
        bottom: -10px;
        font-size: 5rem;
        opacity: 0.1;
    }

.qr-box {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.request-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.step-number {
    width: 25px;
    height: 25px;
    background: var(--brand-orange);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
}

/* --- Advance Invoice UI --- */
.invoice-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #f8fafc;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.invoice-status-label {
    position: absolute;
    top: 50px;
    right: 50px;
    transform: rotate(15deg);
    font-size: 2rem;
    font-weight: 800;
    opacity: 0.15;
    text-transform: uppercase;
    border: 5px solid;
    padding: 5px 20px;
    border-radius: 10px;
}

.inv-paid {
    color: #10b981;
    border-color: #10b981;
}

.invoice-table thead {
    background: var(--brand-blue);
    color: #fff;
}

.invoice-table th {
    padding: 15px !important;
    font-size: 13px;
    text-transform: uppercase;
}

.invoice-table td {
    padding: 15px !important;
    vertical-align: middle;
}

.invoice-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #f8fafc;
}

/* Print Specific */
@media print {
    .no-print {
        display: none !important;
    }

    .invoice-wrapper {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}