/* ==========================================================================
   আস্থা সঞ্চয় পরিবার - Public Front-End Styles
   Mobile-first. Primary: Dark Green. Secondary: Orange. Background: White/Gray.
   ========================================================================== */

:root {
	--asp-primary: #0b5d3b;
	--asp-primary-dark: #073d27;
	--asp-secondary: #e8792c;
	--asp-bg: #f5f7f6;
	--asp-white: #ffffff;
	--asp-green: #1f9d55;
	--asp-red: #d9362f;
	--asp-orange: #e8792c;
	--asp-text: #1e2b25;
	--asp-muted: #6b7a73;
	--asp-radius: 14px;
	--asp-shadow: 0 2px 10px rgba(11, 93, 59, 0.08);
}

.asp-shell, .asp-auth-wrap { font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif; color: var(--asp-text); background: var(--asp-bg); }

/* ---------- Auth (Login) ---------- */
.asp-auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.asp-auth-card { width: 100%; max-width: 420px; background: var(--asp-white); border-radius: var(--asp-radius); box-shadow: var(--asp-shadow); padding: 28px 22px; }
.asp-auth-brand { text-align: center; margin-bottom: 20px; }
.asp-auth-brand h1 { color: var(--asp-primary); font-size: 22px; margin: 0 0 6px; }
.asp-auth-brand p { color: var(--asp-muted); font-size: 13px; margin: 0; }

.asp-form { display: flex; flex-direction: column; gap: 14px; }
.asp-field { display: flex; flex-direction: column; gap: 6px; }
.asp-field label { font-size: 13px; color: var(--asp-muted); }
.asp-field input, .asp-field select, .asp-field textarea {
	padding: 13px 14px; border: 1px solid #d7ded9; border-radius: 10px; font-size: 16px; background: var(--asp-white);
}
.asp-field textarea { min-height: 70px; resize: vertical; }
.asp-field-row { display: flex; gap: 10px; }
.asp-field-row .asp-field { flex: 1; }
.asp-field-inline { flex-direction: row; align-items: center; justify-content: space-between; font-size: 13px; }
.asp-field-inline a { color: var(--asp-primary); text-decoration: none; }

.asp-btn { border: none; border-radius: 10px; padding: 13px 18px; font-size: 15px; cursor: pointer; font-weight: 600; }
.asp-btn-primary { background: var(--asp-primary); color: #fff; }
.asp-btn-primary:active { background: var(--asp-primary-dark); }
.asp-btn-ghost { background: transparent; color: var(--asp-primary); border: 1px solid var(--asp-primary); }
.asp-btn-small { padding: 8px 12px; font-size: 13px; }
.asp-btn-block { width: 100%; }
.asp-hidden { display: none !important; }
.asp-hint { font-size: 12px; color: var(--asp-muted); }

.asp-form-message { font-size: 13px; padding: 8px 10px; border-radius: 8px; display: none; }
.asp-form-message.asp-show { display: block; }
.asp-form-message.asp-error { background: #fdeceb; color: var(--asp-red); }
.asp-form-message.asp-success { background: #e9f7ee; color: var(--asp-green); }

/* ---------- Notice bar ---------- */
.asp-notice-bar { background: var(--asp-secondary); color: #fff; overflow: hidden; white-space: nowrap; padding: 8px 0; }
.asp-notice-track { display: inline-flex; animation: asp-scroll 28s linear infinite; }
.asp-notice-text { padding-right: 40px; font-size: 14px; }
@keyframes asp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Top bar ---------- */
.asp-topbar { background: var(--asp-primary); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.asp-topbar-brand { font-weight: 700; font-size: 16px; }
.asp-topbar-user { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.asp-topbar-name { font-weight: 600; }
.asp-topbar-number { opacity: 0.85; }
.asp-topbar-user .asp-btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ---------- Page / cards ---------- */
.asp-page { padding: 16px; padding-bottom: 90px; max-width: 900px; margin: 0 auto; }
.asp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.asp-card { background: var(--asp-white); border-radius: var(--asp-radius); box-shadow: var(--asp-shadow); padding: 14px; display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--asp-primary); }
.asp-card span { font-size: 12px; color: var(--asp-muted); }
.asp-card strong { font-size: 18px; color: var(--asp-primary); }
.asp-card-green strong { color: var(--asp-green); }
.asp-card-orange strong { color: var(--asp-orange); }
.asp-card-red strong { color: var(--asp-red); }
.asp-card-green { border-left-color: var(--asp-green); }
.asp-card-orange { border-left-color: var(--asp-orange); }
.asp-card-red { border-left-color: var(--asp-red); }

.asp-section { background: var(--asp-white); border-radius: var(--asp-radius); box-shadow: var(--asp-shadow); padding: 16px; margin-bottom: 16px; }
.asp-section h3 { margin-top: 0; color: var(--asp-primary); font-size: 16px; }

.asp-profile-header { display: flex; align-items: center; gap: 14px; background: var(--asp-white); border-radius: var(--asp-radius); box-shadow: var(--asp-shadow); padding: 16px; margin-bottom: 16px; }
.asp-profile-photo { width: 56px; height: 56px; border-radius: 50%; background: var(--asp-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.asp-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.asp-profile-info h2 { margin: 0; font-size: 17px; }
.asp-profile-info p { margin: 4px 0 0; font-size: 12px; color: var(--asp-muted); }

.asp-month-list { display: flex; flex-direction: column; gap: 8px; }
.asp-month-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 13px; background: #f0f3f1; }
.asp-status-paid { border-left: 4px solid var(--asp-green); }
.asp-status-due { border-left: 4px solid var(--asp-red); }
.asp-status-partial { border-left: 4px solid var(--asp-orange); }
.asp-month-status { font-weight: 700; }
.asp-status-paid .asp-month-status { color: var(--asp-green); }
.asp-status-due .asp-month-status { color: var(--asp-red); }
.asp-status-partial .asp-month-status { color: var(--asp-orange); }

.asp-table-scroll { overflow-x: auto; }
.asp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.asp-table th, .asp-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eee; white-space: nowrap; }
.asp-table th { color: var(--asp-muted); font-weight: 600; }

.asp-bkash-box { margin-top: 12px; border: 1px dashed var(--asp-secondary); border-radius: 10px; padding: 12px; }
.asp-bkash-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0e3d6; gap: 8px; }
.asp-bkash-row p { margin: 2px 0 0; font-size: 12px; color: var(--asp-muted); }

.asp-notice-card { background: #fff7ef; border-left: 4px solid var(--asp-secondary); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.asp-notice-card strong { color: var(--asp-secondary); }
.asp-notice-card p { margin: 4px 0 0; font-size: 13px; }

.asp-badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.asp-badge-green { background: #e9f7ee; color: var(--asp-green); }
.asp-badge-red { background: #fdeceb; color: var(--asp-red); }
.asp-badge-orange { background: #fff1e4; color: var(--asp-orange); }

.asp-panel { background: var(--asp-white); border-radius: var(--asp-radius); box-shadow: var(--asp-shadow); padding: 14px; margin-bottom: 16px; font-size: 13px; }
.asp-panel a { color: var(--asp-primary); font-weight: 600; }

/* ---------- Bottom nav (mobile) ---------- */
.asp-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--asp-white); display: flex; justify-content: space-around; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(0,0,0,0.06); z-index: 50; }
.asp-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--asp-muted); text-decoration: none; font-size: 11px; }
.asp-nav-item .dashicons { font-size: 20px; width: 20px; height: 20px; }
.asp-nav-home { color: var(--asp-primary); }

@media (min-width: 640px) {
	.asp-cards { grid-template-columns: repeat(4, 1fr); }
}
