/* assets/css/style.css */

.mv-processor-container {
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    direction: ltr;
    text-align: left;
}

.mv-processor-header {
    background: #182244;
    color: #ffffff;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mv-processor-header h3 {
    margin: 0; color: #ffffff; font-size: 20px; font-weight: 600; letter-spacing: 0.5px;
}

.mv-balance-wrapper { display: flex; align-items: center; gap: 12px; }

.mv-balance-badge {
    background: #fea000; color: #ffffff; padding: 8px 18px; border-radius: 30px; font-size: 15px; font-weight: 700;
}

/* Fix for oval button */
.mv-btn-topup {
    background: #ffffff; 
    color: #182244; 
    border: 2px solid #fea000; 
    width: 38px; 
    height: 38px; 
    border-radius: 50%;
    font-size: 24px; 
    font-weight: bold; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    padding: 0 0 2px 0; /* Slight visual adjustment for the + sign */
    box-sizing: border-box;
}
.mv-btn-topup:hover { background: #fea000; color: #ffffff; transform: scale(1.08); }

/* Tabs Styling */
.mv-tabs-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 35px;
}
.mv-tab-btn {
    background: transparent;
    border: none;
    padding: 18px 25px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.mv-tab-btn:hover { color: #182244; }
.mv-tab-btn.active {
    color: #fea000;
    border-bottom-color: #fea000;
}

.mv-tab-pane { display: none; }
.mv-tab-pane.active { display: block; animation: fadeInPane 0.3s ease; }
@keyframes fadeInPane { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }


.mv-processor-body {
    padding: 35px; display: grid; grid-template-columns: 2.2fr 1fr; gap: 35px; background: #ffffff;
}

.mv-dropzone {
    border: 2px dashed #cbd5e1; border-radius: 14px; padding: 65px 30px; text-align: center;
    cursor: pointer; transition: all 0.3s ease; background: #f8fafc; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px;
}
.mv-dropzone:hover { border-color: #fea000; background: #fdfbf7; }
.mv-dropzone p { margin: 18px 0 6px; color: #0f172a; font-size: 16px; font-weight: 500; }
.mv-upload-hint { font-size: 13px; color: #64748b; }

.mv-card-fee {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.mv-fee-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: #334155; }
.mv-fee-row strong { color: #182244; font-size: 26px; font-weight: 700; }
.mv-fee-desc { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 25px; }

.mv-btn-primary {
    width: 100%; background: #182244; color: #ffffff; border: none; padding: 16px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.25s ease; text-align: center;
}
.mv-btn-primary:hover:not(:disabled) { background: #fea000; }
.mv-btn-primary:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.mv-btn-warning { background: #d97706; }
.mv-btn-warning:hover { background: #b45309 !important; }

/* Dashboard Panel & Pagination */
.mv-dashboard-panel { padding: 35px; background: #ffffff; }
.mv-table-responsive { width: 100%; overflow-x: auto; min-height: 350px; }
.mv-history-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); border: 1px solid #e2e8f0; }
.mv-history-table th { background: #182244; color: #ffffff; padding: 15px 20px; font-weight: 600; font-size: 14px; text-align: left; }
.mv-history-table td { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 14px; vertical-align: middle; }
.mv-history-table tr:last-child td { border-bottom: none; }
.mv-history-table tr:hover td { background: #f8fafc; }

.mv-table-loading, .mv-table-empty { text-align: center; color: #64748b; padding: 30px !important; font-style: italic; }

.mv-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.mv-page-btn {
    background: #ffffff; border: 1px solid #cbd5e1; color: #334155; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.mv-page-btn:hover:not(:disabled) { background: #f1f5f9; border-color: #94a3b8; }
.mv-page-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#mv-page-info { font-size: 14px; font-weight: 600; color: #475569; }

/* Status Badges */
.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; }
.status-success { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef9c3; color: #a16207; }
.status-failed { background: #fef2f2; color: #b91c1c; }

/* Table Action Buttons */
.mv-table-btn { background: #182244; color: #ffffff !important; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-block; border: none; cursor: pointer; transition: background 0.2s; white-space: nowrap;}
.mv-table-btn:hover:not(:disabled) { background: #fea000; }
.btn-processing-state { background: #e2e8f0; color: #475569 !important; cursor: not-allowed; }
.btn-failed-state { background: #f1f5f9; color: #94a3b8 !important; cursor: not-allowed; }

/* Modal Styles */
.mv-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.mv-modal-box { background: #ffffff; border-radius: 14px; width: 100%; max-width: 450px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); overflow: hidden; }
.mv-modal-header { background: #182244; color: #ffffff; padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; }
.mv-modal-header h4 { margin: 0; color: #ffffff; font-size: 16px; }
.mv-modal-close { font-size: 24px; cursor: pointer; color: #94a3b8; }
.mv-modal-close:hover { color: #ffffff; }
.mv-modal-body { padding: 25px; color: #334155; font-size: 14px; }
.mv-input-group { display: flex; align-items: center; border: 2px solid #e2e8f0; border-radius: 8px; margin-top: 15px; overflow: hidden; background: #f8fafc; }
.mv-input-currency { padding: 10px 15px; background: #e2e8f0; color: #475569; font-weight: bold; }
#mv-topup-amount { border: none; background: transparent; padding: 12px; width: 100%; font-size: 16px; outline: none; }
.mv-modal-error { color: #b91c1c; background: #fef2f2; padding: 8px 12px; border-radius: 6px; margin-top: 12px; font-size: 12px; }
.mv-modal-footer { padding: 15px 25px; background: #f8fafc; border-top: 1px solid #e2e8f0; }

@media (max-width: 992px) {
    .mv-processor-body { grid-template-columns: 1fr; gap: 25px; }
    .mv-processor-header { flex-direction: column; gap: 15px; text-align: center; }
}