/* ========== Base ========== */
:root {
  --primary: #2563eb;
  --secondary: #0ea5e9;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #0f172a;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* ========== Layout ========== */
.m-wrap {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
  padding-bottom: 60px;
}

/* ========== Card ========== */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,.04);
}

.card.success {
  border-left: 5px solid var(--success);
}

.card.warning {
  border-left: 5px solid var(--warning);
}

/* ========== Summary Boxes ========== */
.summary { display:grid;
    grid-template-columns:1fr 1fr; gap:12px;
    margin-bottom:16px;
}




.sum-box {
  background: var(--primary);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.sum-box.due {
  background: var(--danger);
}

/* ========== Forms ========== */
.form-grid,
.card form {
  display: grid;
 
  gap: 12px;
}

input,
select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ========== Buttons ========== */
button,
.ts-btn {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

button.secondary {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: white!important;
  border: none!important;
}

button.success {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: white!important;
  border: none!important;
}

button.warning {
  background:#2563eb!important;
  color: white!important;
  border: none!important;
}

/* ========== Member Rows ========== */
.member-row {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 10px;
  background: #f9fafb;
}

/* ========== Badges ========== */
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.due {
  background: #fee2e2;
  color: var(--danger);
}

.badge.advance {
  background: #dcfce7;
  color: var(--success);
}

/* ========== Toast ========== */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--success);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  display: none;
}

/* সার্কেল প্রোগ্রেস বার ডিজাইন */
.circle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.circle {
    width: 120px; /* বৃত্তের চওড়া */
    height: 120px; /* বৃত্তের উচ্চতা */
    border-radius: 50% !important; /* এটি চারকোণা বক্সকে বৃত্ত বানাবে */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.circle-inner {
    width: 95px; /* ভেতরের সাদা অংশের সাইজ */
    height: 95px;
    background: #ffffff; /* ভেতরের ব্যাকগ্রাউন্ড সাদা */
    border-radius: 50% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.circle-inner strong {
    font-size: 22px;
    color: #1e293b;
    line-height: 1;
}

.circle-inner span {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}




/* মোবাইল অ্যাপ বটম নেভিগেশন ফিক্স */
/* Mobile Bottom Nav */
.ts-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);

    box-shadow: 0 -6px 18px rgba(0, 0, 0, .08);
    z-index: 9999;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 30px;

    border: 1px solid #1a73e8; /* এখানে বর্ডার ঠিকভাবে দেয়া হয়েছে */
}

/* Links */
.ts-mobile-nav a {
    flex: 1;
    text-decoration: none;
    color: #94a3b8;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    transition: color .0s ease;
}

/* Icon circle */
.nav-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(37,99,235,.08);

    transition: background .2s ease, transform .15s ease;
}

/* Font Awesome icon */
.nav-icon i {
    font-size: 18px;
    color: inherit; /* 🔥 icon color follows link */
}

/* Label */
.nav-label {
    font-size: 11px;
    font-weight: 600;
}

/* Active */
.ts-mobile-nav a.active {
    color: #2563eb;
}

.ts-mobile-nav a.active .nav-icon {
    background: rgba(37,99,235,.18);
    transform: translateY(-2px);
}

/* Tap feedback */
.ts-mobile-nav a:active .nav-icon {
    transform: scale(.95);
}
