/**
 * MF Microfinance - পাবলিক স্টাইলশীট
 *
 * গ্রাহক/পাবলিক ফেসিং পেজের সব স্টাইল।
 * @package MF_Microfinance
 * @version 4.0.0
 */

/* ============================================
   1. বেস ও রিসেট
============================================ */

.mf-public-page,
.mf-public-page * {
    font-family: 'Noto Sans Bengali', 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

body.mf-public-page {
    background: #f3f4f6;
    color: #1e293b;
    line-height: 1.6;
}

/* MF কন্টেইনার */
.mf-public-wrap,
.mf-customer-wrap,
.mf-loan-apply-wrapper,
.mf-signup-wrapper,
.mf-login-wrapper,
.mf-pr-wrapper {
    font-family: 'Noto Sans Bengali', sans-serif;
}

/* লিংক */
.mf-public-page a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.mf-public-page a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ============================================
   2. বাটন
============================================ */

.mf-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    line-height: 1.4;
}

.mf-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mf-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.mf-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mf-btn-success:hover {
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.mf-btn-secondary {
    background: #f3f4f6;
    color: #1e293b;
}

.mf-btn-secondary:hover {
    background: #e5e7eb;
    color: #1e293b;
    text-decoration: none;
}

.mf-btn-block {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
}

.mf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* লগআউট বাটন (শর্টকোড) */
.mf-logout-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #ef4444;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.mf-logout-btn:hover {
    background: #dc2626;
    text-decoration: none;
}

/* ============================================
   3. ফর্ম এলিমেন্ট
============================================ */

.mf-input,
.mf-public-page input[type="text"],
.mf-public-page input[type="email"],
.mf-public-page input[type="tel"],
.mf-public-page input[type="password"],
.mf-public-page input[type="number"],
.mf-public-page input[type="date"],
.mf-public-page select,
.mf-public-page textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #ffffff;
}

.mf-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mf-input-readonly {
    background: #f9fafb;
    color: #6b7280;
}

textarea.mf-input {
    resize: vertical;
    min-height: 80px;
}

.mf-required {
    color: #ef4444;
}

/* পাসওয়ার্ড টগল */
.mf-password-wrap {
    position: relative;
}

.mf-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

/* OTP ইনপুট */
.mf-otp-input {
    font-size: 24px !important;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 700;
    color: #1e293b;
}

/* ============================================
   4. কার্ড
============================================ */

.mf-public-card,
.mf-la-card,
.mf-fo-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* ============================================
   5. ব্যাজ
============================================ */

.mf-public-page .mf-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.mf-public-page .mf-badge-success { background: #d1fae5; color: #065f46; }
.mf-public-page .mf-badge-danger { background: #fee2e2; color: #991b1b; }
.mf-public-page .mf-badge-warning { background: #fef3c7; color: #92400e; }
.mf-public-page .mf-badge-info { background: #dbeafe; color: #1e40af; }

/* ============================================
   6. টেবিল
============================================ */

.mf-cust-table-wrap,
.mf-table-wrap {
    overflow-x: auto;
}

.mf-cust-table {
    width: 100%;
    border-collapse: collapse;
}

.mf-cust-table th {
    background: #f9fafb;
    padding: 10px;
    text-align: left;
    color: #374151;
    font-size: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.mf-cust-table td {
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.mf-cust-table tbody tr:hover {
    background: #f9fafb;
}

/* TRX & Loan ID */
.mf-trx-cust,
.mf-trx-display {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
}

/* রো রঙ */
.mf-row-overdue { background: #fef2f2 !important; }
.mf-row-due { background: #fffbeb !important; }
.mf-row-paid { background: #f0fdf4 !important; }

/* ============================================
   7. মোডাল
============================================ */

.mf-public-page .mf-modal,
.mf-customer-wrap .mf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mf-public-page .mf-modal-overlay,
.mf-customer-wrap .mf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.mf-public-page .mf-modal-content,
.mf-customer-wrap .mf-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.mf-public-page .mf-modal-header,
.mf-customer-wrap .mf-modal-header {
    padding: 18px 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mf-public-page .mf-modal-close,
.mf-customer-wrap .mf-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    color: #6b7280;
    width: 30px;
    height: 30px;
}

.mf-public-page .mf-modal-body,
.mf-customer-wrap .mf-modal-body {
    padding: 25px;
}

/* ============================================
   8. ইনফো বক্স
============================================ */

.mf-public-page .mf-info-banner,
.mf-public-page .mf-success-banner,
.mf-public-page .mf-warning-banner,
.mf-public-page .mf-error-banner,
.mf-public-page .mf-warning-mini {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 13px;
    border-left: 4px solid;
}

.mf-public-page .mf-info-banner {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.mf-public-page .mf-success-banner {
    background: #d1fae5;
    border-left-color: #10b981;
    color: #065f46;
}

.mf-public-page .mf-warning-banner,
.mf-public-page .mf-warning-mini {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

.mf-public-page .mf-error-banner {
    background: #fee2e2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* ============================================
   9. লিংক
============================================ */

.mf-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.mf-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.mf-link-strong {
    font-weight: 700;
}

/* ============================================
   10. এম্পটি স্টেট
============================================ */

.mf-cust-empty,
.mf-empty-mini {
    text-align: center;
    padding: 50px 20px;
    color: #6b7280;
}

.mf-cust-empty-icon,
.mf-empty-mini-icon {
    font-size: 64px;
    opacity: 0.4;
    margin-bottom: 15px;
}

.mf-cust-empty p {
    color: #6b7280;
    margin-bottom: 20px;
}

.mf-text-muted {
    color: #9ca3af;
}

/* ============================================
   11. প্রিন্ট
============================================ */

@media print {
    .mf-cust-header,
    .mf-cust-quick-actions,
    .mf-cust-tabs,
    button,
    .mf-btn {
        display: none !important;
    }

    .mf-customer-wrap {
        max-width: 100% !important;
    }
}

/* ============================================
   12. মোবাইল রেসপনসিভ
============================================ */

@media (max-width: 768px) {
    .mf-public-page {
        padding: 0 !important;
    }

    .mf-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .mf-modal-content {
        width: 95% !important;
        max-height: 95vh !important;
    }
}

@media (max-width: 480px) {
    .mf-modal-body {
        padding: 15px !important;
    }

    .mf-otp-input {
        font-size: 20px !important;
        letter-spacing: 6px !important;
    }
}