/* ═══════════════════════════════════════════════
   JCRM — Complete Frontend CSS
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 260px;
  --sidebar-bg: #1e1e2d;
  --sidebar-text: #a0a3b1;
  --sidebar-active: #fff;
  --sidebar-active-bg: #3b82f6;
  --topbar-h: 60px;
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --radius: 12px;
  --shadow: 0 1px 4px rgba(0,0,0,.08);
}

body.jcrm-body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Hide WP elements ── */
body.jcrm-body #wpadminbar { display: none !important; }
body.jcrm-body { margin-top: 0 !important; }

/* ════════════════════════════════════
   APP LAYOUT
   ════════════════════════════════════ */
.jcrm-app {
  display: flex;
  min-height: 100vh;
}

/* ════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════ */
.jcrm-sidebar {
  width: var(--sidebar-w);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform .3s ease;
 border-radius: 0px 40px 40px 0px;
}

.jcrm-logo-icon img{
    width: 110px;
}

.jcrm-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.jcrm-logo-icon { font-size: 28px; }
.jcrm-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.jcrm-nav {
  flex: 1;
  padding: 12px 0;
}
.jcrm-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.jcrm-nav-item:hover {
  background: rgb(59 130 246 / 20%);
  color: #fff;
}
.jcrm-nav-item.active {
  background: rgba(59,130,246,.2);
  color: var(--sidebar-active);
  border-left-color: var(--primary);
}
.jcrm-nav-icon { font-size: 18px; width: 22px; text-align: center; }
.jcrm-nav-label { 
    font-size: 14px;
    color: #1e293b;
}

.jcrm-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.jcrm-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.jcrm-user-icon { font-size: 20px; }
.jcrm-user-mobile { font-size: 13px; color: var(--sidebar-text); }
.jcrm-logout-btn {
  width: 100%;
  padding: 9px;
  background:#dc2626;
  color: #ffffff;
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
}
.jcrm-logout-btn:hover { background: rgba(239,68,68,.3); color: #fff; }


/*** Front New ***/


/* Wide table scroll */
.jcrm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.jcrm-table {
    min-width: 1600px; /* itne columns ke liye */
    font-size: 12px;
}
.jcrm-table th {
    white-space: nowrap;
    background: #f1f5f9;
    padding: 10px 8px;
    font-size: 11px;
}
.jcrm-table td {
    padding: 8px;
    vertical-align: top;
}


.jcrm-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 13px;
}
/* ══════ TABLE WRAP - Horizontal Scroll ══════ */
.jcrm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* ══════ TABLE - Auto Width ══════ */
.jcrm-table {
    width: auto;          /* fixed width hatao */
    min-width: 100%;      /* minimum full width */
    table-layout: auto;   /* ← yahi content ke hisaab se width deta hai */
    border-collapse: collapse;
    font-size: 12px;
    white-space: nowrap;  /* content wrap na ho, column khud stretch ho */
}

/* ══════ TH - Header ══════ */
.jcrm-table thead th {
    background: #f1f5f9;
    color: #374151;
    font-weight: 600;
    font-size: 11px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* ══════ TD - Cells ══════ */
.jcrm-table tbody td {
    padding: 10px 12px;
    border-bottom:1px solid #c9c9c9;
    vertical-align: top;
    white-space: nowrap;
}

/* ══════ Address columns - wrap allowed ══════ */
.jcrm-table tbody td.wrap-cell {
    white-space: normal;
    min-width: 150px;
    max-width: 200px;
}

/* ══════ Row Hover ══════ */
.jcrm-table tbody tr:hover {
    background: #f8fafc;
}

/* ══════ Scrollbar Styling ══════ */
.jcrm-table-wrap::-webkit-scrollbar {
    height: 6px;
}
.jcrm-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.jcrm-table-wrap::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
.jcrm-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}


/* ════════════════════════════════════
   MAIN CONTENT AREA
   ════════════════════════════════════ */
.jcrm-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1280px;
  width: 100%;
}

.jcrm-topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  top: 0;
  z-index: 50;
}
.jcrm-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}
.jcrm-page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.jcrm-content {
  padding: 24px;
  flex: 1;
}

/* ════════════════════════════════════
   DASHBOARD STATS
   ════════════════════════════════════ */
.jcrm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

/* ══════ EXEC FORM ══════ */
.jcrm-exec-form-wrap {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}
.jcrm-exec-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

/* ══════ EXEC YEAR GROUP ══════ */
.jcrm-exec-year-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    margin: 24px 0 16px;
}

/* ══════ EXEC CARDS GRID ══════ */
.jcrm-exec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

/* ══════ EXEC CARD ══════ */
.jcrm-exec-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 12px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.jcrm-exec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}
.jcrm-exec-photo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    margin-bottom: 10px;
}
.jcrm-exec-no-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 10px;
    border: 3px solid #e2e8f0;
}
.jcrm-exec-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
}
.jcrm-exec-mobile {
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
}
.jcrm-exec-pad-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    border-radius: 20px;
    padding: 3px 12px;
    margin-top: 4px;
}
.jcrm-exec-card-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}


@media(max-width:900px) { .jcrm-stats-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px) { .jcrm-stats-grid { grid-template-columns: 1fr; } }

.jcrm-stat-card {
  border-radius: var(--radius);
  padding: 24px 20px;
  color: #fff;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  transition: transform .2s;
}
.jcrm-stat-card:hover { transform: translateY(-2px); }
.jcrm-stat-blue   { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.jcrm-stat-green  { background: linear-gradient(135deg, #10b981, #059669); }
.jcrm-stat-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.jcrm-stat-red    { background: linear-gradient(135deg, #ef4444, #dc2626); }

.jcrm-stat-label { font-size: 13px; opacity: .85; margin-bottom: 8px; }
.jcrm-stat-num   { font-size: 42px; font-weight: 800; margin-bottom: 8px; }
.jcrm-stat-link  { font-size: 12px; color: rgba(255,255,255,.8); text-decoration: none; }
.jcrm-stat-link:hover { color: #fff; text-decoration: underline; }

.jcrm-dash-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════
   BUTTONS
   ════════════════════════════════════ */
.jcrm-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .2s;
}
.jcrm-btn-primary { background: var(--primary); color: #fff; }
.jcrm-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.jcrm-btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.jcrm-btn-outline:hover { background: var(--primary); color: #fff; }
.jcrm-btn-green { background: var(--green); color: #fff; }
.jcrm-btn-green:hover { background: #059669; color: #fff; }
.jcrm-btn-red { background: var(--red); color: #fff; }
.jcrm-btn-red:hover { background: #dc2626; color: #fff; }
.jcrm-btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.jcrm-btn-lg { padding: 14px 28px; font-size: 16px; }
.jcrm-btn-icon { background: none; border: none; font-size: 18px; cursor: pointer; padding: 4px; transition: transform .2s; }
.jcrm-btn-icon:hover { transform: scale(1.2); }

/* ════════════════════════════════════
   FORM STYLES
   ════════════════════════════════════ */
.jcrm-form-wrap { max-width: 900px; }

.jcrm-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.jcrm-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}

.jcrm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media(max-width:600px) { .jcrm-row { grid-template-columns: 1fr; } }

.jcrm-field { display: flex; flex-direction: column; gap: 6px; }
.jcrm-field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }

.jcrm-input, .jcrm-select, .jcrm-textarea {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.jcrm-input:focus, .jcrm-select:focus, .jcrm-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.jcrm-textarea { resize: vertical; min-height: 72px; }
.jcrm-file-input { padding: 8px; font-size: 13px; }

.jcrm-upload-box {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
}
.jcrm-upload-box:hover { border-color: var(--primary); }
.jcrm-upload-inner span { font-size: 32px; }
.jcrm-upload-inner p { font-size: 13px; color: var(--text-muted); margin: 6px 0 2px; }
.jcrm-upload-inner small { font-size: 11px; color: #94a3b8; }

.jcrm-face-box {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jcrm-qr-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.jcrm-qr-img { width: 100px; height: 100px; object-fit: contain; border-radius: 8px; }

.jcrm-submit-wrap { margin-top: 8px; }

/* ════════════════════════════════════
   MEMBER LIST / TABLE
   ════════════════════════════════════ */
.jcrm-list-wrap { width: 100%; }

.jcrm-filters {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.jcrm-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.jcrm-filter-sel { max-width: 160px; padding: 8px 10px; font-size: 13px; }
.jcrm-filter-input { max-width: 150px; padding: 8px 10px; font-size: 13px; }



/* ════════════════════════════════════
   MODAL
   ════════════════════════════════════ */
.jcrm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.jcrm-modal-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.jcrm-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: #f1f5f9;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

/* ════════════════════════════════════
   MESSAGES
   ════════════════════════════════════ */
.jcrm-msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.jcrm-msg.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.jcrm-msg.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════ */
.jcrm-login-page {
  display: flex;
  min-height: 100vh;
}
.jcrm-login-left {
  width: 480px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
}
.jcrm-login-right {
  flex: 1;
  background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 50%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jcrm-login-card { width: 100%; max-width: 360px; }

.jcrm-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.jcrm-brand-icon { font-size: 32px; }
.jcrm-brand-name { font-size: 18px; font-weight: 800; color: var(--text); }

.jcrm-login-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.jcrm-login-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.jcrm-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; display: block; }

.jcrm-login-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  font-size: 15px;
  background: #f0f4ff;
  color: var(--text);
  transition: border-color .2s;
  font-family: inherit;
}
.jcrm-login-input:focus { outline: none; border-color: var(--primary); background: #fff; }
.jcrm-otp-input { letter-spacing: .3em; text-align: center; font-size: 20px; font-weight: 700; }

.jcrm-field { margin-bottom: 18px; }

.jcrm-login-btn {
  width: 100%;
  padding: 15px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
}
.jcrm-login-btn:hover { background: #334155; }
.jcrm-btn-ghost.jcrm-login-btn { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.jcrm-btn-ghost.jcrm-login-btn:hover { background: var(--primary); color: #fff; }

.jcrm-otp-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.jcrm-login-footer {
  margin-top: 40px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

.jcrm-login-illustration {
  text-align: center;
  padding: 40px;
}
.jcrm-illus-circle {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  margin: 0 auto 24px;
}
.jcrm-illus-text h3 { font-size: 24px; font-weight: 800; color: #3730a3; }
.jcrm-illus-text p  { color: #4c1d95; font-size: 14px; margin-top: 6px; }

/* ════════════════════════════════════
   MOBILE RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 768px) {
  .jcrm-sidebar {
    transform: translateX(-100%);
  }
  .jcrm-sidebar.open {
    transform: translateX(0);
  }
  .jcrm-main {
    margin-left: 0;
  }
  .jcrm-menu-toggle {
    display: block;
  }
  .jcrm-login-left { width: 100%; }
  .jcrm-login-right { display: none; }
  .jcrm-content { padding: 16px; }
  .jcrm-filter-row { gap: 8px; }
  .jcrm-filter-sel, .jcrm-filter-input { max-width: 100%; }
}

/* ════════════════════════════════════
   SIDEBAR OVERLAY (mobile)
   ════════════════════════════════════ */
.jcrm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 99;
}
.jcrm-overlay.show { display: block; }

/* ═══════════════════════════════
   ADMIN EXTRAS — Status Tabs, Action Buttons, Edit Modal
   ═══════════════════════════════ */

/* Role Badges */
.jcrm-role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}
.jcrm-role-super { background: #fef3c7; color: #92400e; }
.jcrm-role-admin { background: #dbeafe; color: #1e40af; }

/* Status Tabs */
.jcrm-status-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.jcrm-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--card);
  border: 1.5px solid var(--border);
  transition: all .2s;
}
.jcrm-tab:hover { border-color: var(--primary); color: var(--primary); }
.jcrm-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }


/* ══════ ACTION BUTTONS ══════ */
.jcrm-actions {
    white-space: nowrap;
    vertical-align: middle;
}
.jcrm-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin: 2px;
    transition: transform 0.1s, opacity 0.2s;
    background: #f1f5f9;
}
.jcrm-action-btn:hover {
    transform: scale(1.15);
    opacity: 0.85;
}
.jcrm-btn-view    { background: #dbeafe; }
.jcrm-btn-edit    { background: #fef9c3; }
.jcrm-btn-approve { background: #dcfce7; }
.jcrm-btn-reject  { background: #fee2e2; }
.jcrm-btn-draft   { background: #f3f4f6; }
.jcrm-btn-delete  { background: #fecaca; }

/* Badge draft */
.jcrm-badge-draft { background: #e2e8f0; color: #475569; }

/* Large modal */
.jcrm-modal-lg  { max-width: 700px; }
.jcrm-modal-xl  { max-width: 900px; width: 95%; max-height: 90vh; }

/* Loading */
.jcrm-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}
.jcrm-loading::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: jcrm-spin .7s linear infinite;
  margin: 12px auto 0;
}
@keyframes jcrm-spin { to { transform: rotate(360deg); } }

/* Member detail view */
.jcrm-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.jcrm-detail-item { background: #f8fafc; border-radius: 8px; padding: 10px 14px; }
.jcrm-detail-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.jcrm-detail-value { font-size: 14px; color: var(--text); font-weight: 500; margin-top: 2px; }

/* File link */
.jcrm-file-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
}

/* Toast notifications */
.jcrm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.jcrm-toast-show { transform: translateY(0); opacity: 1; }
.jcrm-toast-success { background: #10b981; }
.jcrm-toast-error   { background: #ef4444; }






 


/* ============================================================
   JCRM – CSS Additions  (append to crm/assets/css/front.css)
   ============================================================ */

/* CHANGE #4: Dark Logout Button */
.jcrm-logout-btn.jcrm-logout-dark {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border: 1px solid #334155;
}
.jcrm-logout-btn.jcrm-logout-dark:hover {
    background: #0f172a !important;
    color: #fff !important;
}

/* Member Login: link buttons row */
.jcrm-login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.jcrm-link-btn {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.jcrm-link-btn:hover { color: #3730a3; }
.jcrm-link-sep { color: #94a3b8; font-size: 13px; }

/* Password field wrapper */
.jcrm-pw-wrap { position: relative; }
.jcrm-pw-eye {
    position: absolute;
    right: 10px;
    bottom: 9px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    padding: 0;
    color: #94a3b8;
    line-height: 1;
}
.jcrm-pw-eye:hover { color: #1e293b; }
.jcrm-pw-wrap input { padding-right: 40px !important; }

/* CHANGES #5, #6: Inline checkbox label */
.jcrm-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    cursor: pointer;
}
.jcrm-inline-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #4f46e5;
    cursor: pointer;
    flex-shrink: 0;
}
.jcrm-inline-check label { cursor: pointer; margin: 0; }

/* CHANGES #8, #9, #10: Upload + View button group */
.jcrm-file-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.jcrm-upload-label-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: #c6c6c6;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.jcrm-upload-label-btn:hover { background: #000; }
.jcrm-view-doc-btn { font-size: 13px; padding: 7px 12px; }

/* File preview container */
.jcrm-doc-preview {
    margin-top: 6px;
    padding: 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
}

/* CHANGE #11: Disabled booth field */
#jcrm-booth[disabled] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
    opacity: 1;
}

/* CHANGE #12: QR hover hint */
.jcrm-qr-img-wrap { position: relative; display: inline-block; }
.jcrm-qr-overlay-hint {
    position: absolute;
    inset: 0;
    background: rgba(79,70,229,.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.jcrm-qr-img-wrap:hover .jcrm-qr-overlay-hint { opacity: 1; }

/* Mobile duplicate warning */
.jcrm-mobile-warn {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Change Password nav item */
.jcrm-nav-item[href*="change-password"] { }