@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* ── Wrap ── */
.bh-fe-wrap {
    font-family: 'Hind Siliguri', 'SolaimanLipi', sans-serif;
    max-width: 860px;
    margin: 0 auto;
    color: #1a1a2e;
    padding: 10px 0 40px;
}

/* ── Login Notice ── */
.bh-fe-login-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 18px 22px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 16px;
    color: #856404;
}
.bh-fe-login-notice a { color: #0f3460; font-weight: 700; }

/* ── Header ── */
.bh-fe-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 16px;
    padding: 30px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.bh-fe-header::after {
    content: '৳';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 90px;
    opacity: 0.07;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}
.bh-fe-header__title {
    font-size: 26px;
    font-weight: 700;
    color: #e2b96f;
    margin-bottom: 6px;
}
.bh-fe-header__sub {
    font-size: 14px;
    color: #a8c8e8;
    font-style: italic;
}

/* ── Summary Cards ── */
.bh-fe-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
.bh-fe-card {
    border-radius: 14px;
    padding: 22px 18px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}
.bh-fe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.bh-fe-card--received { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.bh-fe-card--returned { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.bh-fe-card--owe      { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.bh-fe-card--clear    { background: linear-gradient(135deg, #e8f5e9, #a5d6a7); }

.bh-fe-card__icon   { font-size: 26px; margin-bottom: 8px; }
.bh-fe-card__label  { font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.bh-fe-card__amount { font-size: 24px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.bh-fe-card__sub    { font-size: 11px; color: #777; }

/* ── Sections ── */
.bh-fe-section {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.055);
    border: 1px solid #f0f0f0;
}
.bh-fe-section__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* ── Breakdown Table ── */
.bh-fe-breakdown { width: 100%; border-collapse: collapse; }
.bh-fe-breakdown td { padding: 10px 6px; font-size: 15px; border-bottom: 1px solid #f5f5f5; }
.bh-fe-breakdown tr:last-child td { border-bottom: none; }
.bh-fe-amt { text-align: right; font-weight: 700; font-size: 16px; }
.bh-fe-amt.in  { color: #2e7d32; }
.bh-fe-amt.out { color: #c62828; }
.bh-fe-divider td { border-top: 2px dashed #e0e0e0; padding-top: 14px; }

/* ── Form ── */
.bh-fe-form-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.bh-fe-form-row label {
    width: 140px;
    min-width: 140px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}
.bh-fe-form-row input,
.bh-fe-form-row select,
.bh-fe-form-row textarea {
    flex: 1;
    padding: 10px 13px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Hind Siliguri', sans-serif;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.bh-fe-form-row input:focus,
.bh-fe-form-row select:focus,
.bh-fe-form-row textarea:focus {
    outline: none;
    border-color: #0f3460;
    background: #fff;
}
.bh-fe-form-row textarea { height: 68px; resize: vertical; }

/* ── Button ── */
.bh-fe-btn {
    display: inline-block;
    padding: 11px 26px;
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: #e2b96f;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-left: 154px;
}
.bh-fe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,52,96,0.28);
}

#bh-fe-msg {
    display: inline-block;
    margin-left: 14px;
    font-size: 14px;
    font-weight: 600;
}
#bh-fe-msg.success { color: #2e7d32; }
#bh-fe-msg.error   { color: #c62828; }

/* ── Transaction Table ── */
.bh-fe-table-wrap { overflow-x: auto; }
.bh-fe-tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 520px;
}
.bh-fe-tx-table thead th {
    background: #1a1a2e;
    color: #e2b96f;
    padding: 11px 13px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}
.bh-fe-tx-table thead th:first-child { border-radius: 8px 0 0 0; }
.bh-fe-tx-table thead th:last-child  { border-radius: 0 8px 0 0; }
.bh-fe-tx-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background 0.15s; }
.bh-fe-tx-table tbody tr:hover { background: #f8f9ff; }
.bh-fe-tx-table tbody td { padding: 11px 13px; color: #333; }

.bh-fe-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-hawlat_in        { background: #e8f5e9; color: #2e7d32; }
.badge-business_invest  { background: #e3f2fd; color: #1565c0; }
.badge-return_to_friend { background: #fce4ec; color: #b71c1c; }
.badge-other_in         { background: #f3e5f5; color: #6a1b9a; }
.badge-other_out        { background: #fff3e0; color: #e65100; }

.bh-fe-tx-amt { font-weight: 700; }
.bh-fe-tx-amt.in  { color: #2e7d32; }
.bh-fe-tx-amt.out { color: #c62828; }

.bh-fe-del-btn {
    background: none;
    border: 1.5px solid #ffcdd2;
    color: #c62828;
    padding: 4px 11px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Hind Siliguri', sans-serif;
    transition: all 0.15s;
}
.bh-fe-del-btn:hover { background: #c62828; color: #fff; border-color: #c62828; }

#bh-fe-loading { color: #aaa; font-size: 14px; padding: 16px 0; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .bh-fe-cards { grid-template-columns: 1fr; }
    .bh-fe-form-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .bh-fe-form-row label { width: auto; }
    .bh-fe-form-row input,
    .bh-fe-form-row select,
    .bh-fe-form-row textarea { width: 100%; }
    .bh-fe-btn { margin-left: 0; }
}
