/* ============================================================
   PMS ADMIN DASHBOARD CSS
   ============================================================ */

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

/* ── Base Reset ── */
.pms-admin-page * { box-sizing: border-box; }
.pms-admin-page { font-family: 'Inter', -apple-system, sans-serif; color: #1e293b; padding-bottom: 40px; }

/* ═══════════════════════════════════
   PAGE HEADER
═══════════════════════════════════ */
.pms-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: #fff;
    padding: 22px 28px;
    border-radius: 12px;
    margin: 16px 0 24px;
    box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.pms-page-title { display: flex; align-items: center; gap: 14px; }
.pms-title-icon { font-size: 32px !important; color: #fff; }
.pending-icon  { color: #fbbf24 !important; }
.donation-icon { color: #34d399 !important; }
.pms-page-header h1 { margin: 0; color: #fff !important; font-size: 22px; line-height: 1.2; }
.pms-subtitle { margin: 4px 0 0; color: rgba(255,255,255,0.7); font-size: 13px; }

/* ═══════════════════════════════════
   STATS ROW
═══════════════════════════════════ */
.pms-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.pms-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e2e8f0;
    border-left: 5px solid #94a3b8;
    transition: transform 0.15s;
}
.pms-stat-card:hover { transform: translateY(-2px); }
.pms-stat-card.card-total   { border-left-color: #6366f1; }
.pms-stat-card.card-active  { border-left-color: #22c55e; }
.pms-stat-card.card-pending { border-left-color: #f59e0b; }
.pms-stat-card.card-rejected{ border-left-color: #ef4444; }

.stat-icon { font-size: 28px; line-height: 1; }
.stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}
.stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ═══════════════════════════════════
   FILTER / SEARCH BAR
═══════════════════════════════════ */
.pms-filter-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.pms-search-form { flex: 1; }
.pms-search-group { display: flex; gap: 8px; align-items: center; }
.pms-search-group input[type="text"] {
    flex: 1;
    min-width: 280px;
    padding: 9px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.pms-search-group input:focus { border-color: #2563eb; outline: none; }
.pms-quick-links { display: flex; gap: 8px; flex-shrink: 0; }

.pms-results-info {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 10px;
    padding: 8px 0;
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.pms-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
}
.pms-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.pms-btn:active { transform: scale(0.97); }

.btn-add-new      { background: #fff; color: #2563eb !important; border: 2px solid rgba(255,255,255,0.5); }
.btn-search       { background: #2563eb; color: #fff !important; }
.btn-clear        { background: #f1f5f9; color: #475569 !important; border: 1px solid #e2e8f0; }
.btn-pending-link { background: #fef3c7; color: #92400e !important; border: 1px solid #fde68a; }
.btn-donation-link{ background: #dcfce7; color: #166534 !important; border: 1px solid #bbf7d0; }

.btn-approve { background: #22c55e; color: #fff !important; font-size: 11px; padding: 6px 10px; }
.btn-reject  { background: #ef4444; color: #fff !important; font-size: 11px; padding: 6px 10px; }
.btn-cert    { background: #f1f5f9; color: #475569 !important; font-size: 10px; padding: 4px 7px; border: 1px solid #e2e8f0; }
.btn-edit    { background: #e0e7ff; color: #3730a3 !important; font-size: 10px; padding: 4px 7px; }

/* ═══════════════════════════════════
   MEMBERS TABLE
═══════════════════════════════════ */
.pms-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pms-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 12px;
    border-bottom: 1.5px solid #e2e8f0;
    white-space: nowrap;
    text-align: left;
}
.pms-table tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
}
.pms-table tbody tr:last-child td { border-bottom: none; }
.pms-table tbody tr:hover { background: #f8faff; }
.pms-table tbody tr.row-pending { background: #fffbeb; }
.pms-table tbody tr.row-pending:hover { background: #fef9e6; }

/* Column widths */
.col-num    { width: 36px; color: #94a3b8; font-weight: 600; }
.col-id     { width: 100px; }
.col-id strong { color: #dc2626; font-size: 13px; }
.col-name strong { font-size: 13px; color: #0f172a; }
.col-aadhar code { font-size: 11px; background: #f1f5f9; padding: 2px 5px; border-radius: 4px; color: #475569; }
.col-amount { color: #16a34a; font-weight: 700; font-size: 14px; }
.col-date   { font-size: 12px; color: #64748b; }
.col-actions { width: 200px; }

/* Pay Badge */
.pay-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.pay-upi   { background: #eff6ff; color: #2563eb; }
.pay-cash  { background: #f0fdf4; color: #16a34a; }

/* Cert Buttons row */
.cert-links { display: flex; flex-wrap: wrap; gap: 3px; margin: 5px 0; }
.action-divider { border: none; border-top: 1px solid #f1f5f9; margin: 5px 0; }
.link-sm { font-size: 11px; color: #2563eb; text-decoration: none; }
.link-sm:hover { text-decoration: underline; }
.text-muted { color: #94a3b8; font-style: italic; }

/* ═══════════════════════════════════
   STATUS BADGES
═══════════════════════════════════ */
.pms-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-active   { background: #dcfce7; color: #15803d; }
.badge-pending  { background: #fef9c3; color: #a16207; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }

/* ═══════════════════════════════════
   EMPTY STATE
═══════════════════════════════════ */
.pms-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.pms-empty-state span { font-size: 48px; display: block; margin-bottom: 12px; }
.pms-empty-state p { font-size: 16px; }

/* ═══════════════════════════════════
   PAGINATION
═══════════════════════════════════ */
.pms-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 4px;
}
.pms-pagination .page-numbers {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}
.pms-pagination .page-numbers.current { background: #2563eb; color: #fff; border-color: #2563eb; }
.pms-pagination .page-numbers:hover:not(.current) { background: #f1f5f9; }
