/* 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;
    border-bottom: 3px solid #cba052;
}

.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: #cba052; color: #ffffff; padding: 8px 18px; border-radius: 30px; font-size: 15px; font-weight: 700;
}

.mv-btn-topup {
    background: #ffffff; color: #182244; border: 2px solid #cba052; width: 34px; height: 34px; border-radius: 50%;
    font-size: 20px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.mv-btn-topup:hover { background: #cba052; color: #ffffff; transform: scale(1.08); }

.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: #cba052; 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: #cba052; }
.mv-btn-primary:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.mv-btn-warning { background: #d97706; }
.mv-btn-warning:hover { background: #b45309 !important; }

/* Persistent User Dashboard Panel Styles */
.mv-dashboard-panel {
    padding: 30px 35px 40px; background: #f8fafc; border-top: 1px solid #e2e8f0;
}
.mv-dashboard-panel h4 {
    margin: 0 0 20px 0; color: #182244; font-size: 18px; font-weight: 600;
}
.mv-table-responsive { width: 100%; overflow-x: auto; }
.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);
}
.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;
}
.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; }

/* 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;
}
.mv-table-btn:hover:not(:disabled) { background: #cba052; }
.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; }

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