/* ================================
   MEMBER DASHBOARD – FULL CSS
   Plugin Safe / Theme Isolated
================================ */

/* -------- RESET (SCOPED) -------- */
.md-dashboard-wrapper,
.md-dashboard-wrapper * {
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.md-dashboard-wrapper h1,
.md-dashboard-wrapper h2,
.md-dashboard-wrapper h3,
.md-dashboard-wrapper h4,
.md-dashboard-wrapper p {
  margin: 0;
}

.md-dashboard-wrapper a,
.md-dashboard-wrapper button {
  all: unset;
  cursor: pointer;
}

/* -------- ROOT WRAPPER -------- */
.md-dashboard-wrapper {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  background: #fafafa;
  color: #111;
}

/* ================================
   SIDEBAR
================================ */
.md-sidebar {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  background: #ffffff;
  border-right: 1px solid #e6e6e6;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.md-profile {
  text-align: center;
}

.md-avatar {
  width: 120px;
  height: 120px;
  background: #e5e7eb;
  border-radius: 50%;
  margin: 0 auto 14px;
}

.md-profile h2 {
  font-size: 20px;
  font-weight: 600;
}

.md-badge {
  display: inline-block;
  margin: 10px 0;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  background: #f5c84b;
  color: #111;
}

.md-contact p {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
}

/* NAV */
.md-nav {
  margin-top: 32px;
}

.md-nav a {
  display: block;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 6px;
  border-radius: 10px;
  font-size: 14px;
  color: #111;
}

.md-nav a.active,
.md-nav a:hover {
  background: #ecfdf5;
}

.md-count {
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}

/* LOGOUT */
.md-logout {
  margin-top: auto;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  background: #f5f5f5;
  font-size: 14px;
}

/* ================================
   MAIN CONTENT
================================ */
.md-main {
  padding: 32px;
  width: 100%;
}

.md-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ================================
   GRID SYSTEM
================================ */
.md-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}



.md-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ================================
   CARD
================================ */
.md-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* ================================
   MEMBERSHIP STATUS
================================ */
.md-membership p {
  font-size: 14px;
  color: #444;
  margin-top: 8px;
}

.md-days {
  font-size: 28px;
  font-weight: 600;
  margin: 16px 0;
}

.md-days small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #666;
}

.md-actions {
  display: flex;
  gap: 12px;
}

.md-actions button {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.md-actions button.primary {
  background: #111;
  color: #fff;
}

.md-actions button:not(.primary) {
  border: 1px solid #ddd;
  color: #e11d48;
}

/* ================================
   STATS
================================ */
.md-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.md-stats div {
  font-size: 14px;
}

.md-stats strong {
  display: block;
  font-size: 22px;
}

/* ================================
   COURSES
================================ */
.md-course {
  margin-top: 16px;
}

.md-course strong {
  font-size: 14px;
}

.md-course a {
  display: inline-block;
  margin-top: 6px;
  color: #e11d48;
  font-size: 14px;
  text-decoration: underline;
}

.md-progress {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.md-progress span {
  display: block;
  height: 100%;
  background: #111;
}

/* ================================
   EVENTS
================================ */
.md-event {
  margin-top: 16px;
}

.md-event p {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
}

.md-event button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f5c84b;
  font-size: 14px;
}

.md-event a {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #e11d48;
  text-decoration: underline;
}

/* ================================
   ANNOUNCEMENTS
================================ */
.md-alert {
  background: #f5f5f5;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-top: 12px;
}

.md-alert.warning {
  background: #fff3cd;
}

/* ================================
   UTILITIES
================================ */
.md-muted {
  color: #666;
  font-size: 14px;
}



/* ================================
   GRID ADJUSTMENTS
================================ */


.md-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
}

/* ================================
   MEMBERSHIP RING
================================ */
.md-membership-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 12px;
}

.md-membership-info {
  max-width: 60%;
}

.md-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    #84cc16 0deg,
    #84cc16 270deg,
    #e5e7eb 270deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.md-ring-inner {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: 50%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.md-ring-inner strong {
  font-size: 32px;
  font-weight: 700;
}

.md-ring-inner span {
  font-size: 13px;
  color: #666;
}

/* ================================
   MEMBERSHIP TEXT
================================ */
.md-plan {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}


.md-grid-70-30 {
  display: grid;
  grid-template-columns: 7fr 3fr; /* 70% / 30% */
  gap: 24px;
  margin-bottom: 24px;
}


#md-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.md-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e5e7eb;
  border-top-color: #111;
  border-radius: 50%;
  animation: mdspin 0.8s linear infinite;
}

@keyframes mdspin {
  to { transform: rotate(360deg); }
}



.md-ce-row {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.md-ce-row:last-child {
  border-bottom: none;
}

.md-ce-pending .md-badge {
  background: #f59e0b;
  color: #fff;
  font-size: 12px;
}










/* CE Credits Layout */
.md-ce-card {
  position: relative;
}

.md-ce-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}



.md-ce-ring .md-ring-inner strong {
  font-size: 22px;
}

.md-ce-ring .md-ring-inner span {
  font-size: 12px;
}

/* CE Rows */
.md-ce-row {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.md-ce-row:last-child {
  border-bottom: none;
}

.md-ce-pending .md-badge {
  background: #f59e0b;
  color: #fff;
  font-size: 12px;
}

.ce_outer_container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 12px;
}    






/* CE Credits CTA */
.md-ce-cta {
  margin-top: 28px;
}

.md-ce-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.md-ce-cta h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

/* Button */
.md-btn-primary {
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.md-btn-primary:hover {
  background: #000;
}

/* 10/04/2026 */
.wlcm-msg h2 { margin-bottom: 10px;}
.stats-text, .div-count-box { display: flex; align-items: center; gap: 10px; }
a.cmn-btn { margin-top: 15px; }

/* course page css  */
.learndash-wrapper .ld-expand-button:hover {color: #fff!important;}
.ld-profile-stats { gap: 20px; padding: 20px;}
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat { background: #fff; border-radius: 16px; padding: 25px 20px !important; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; position: relative; border-top-left-radius: 0; border-top-right-radius: 0;}
.ld-profile-stat:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); }
.ld-profile-stat strong { display: block; font-size: 32px; font-weight: 700; color: #4f46e5; margin-bottom: 8px; }
.ld-profile-stat span { font-size: 14px; color: #64748b; letter-spacing: 0.5px; }
.ld-profile-stat-courses strong { color: #3b82f6; }
.ld-profile-stat-completed strong { color: #10b981; }
.ld-profile-stat-certificates strong { color: #f59e0b; }
.ld-profile-stat-points strong { color: #ef4444; }
.ld-profile-stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; width: 100%; background: #004F6E; border-top-left-radius: 16px; border-top-right-radius: 16px; }
.learndash-wrapper .ld-item-list .ld-item-search .ld-closer:before { content: "x"; margin-right: 0; font-size: 20px;}
.learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-wrapper:before { right: auto;}
.ld-item-search-name .ld-course-nav-field { border-radius: 6px !important; padding: 20px 10px !important; border: 0 !important;}
.learndash-wrapper .ld-item-list .ld-item-search .ld-item-search-heading {margin-bottom: 10px;}
.learndash-wrapper .ld-item-list .ld-item-search .ld-closer {font-size: 0 !important;}
.stats-text, .div-count-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
a.cmn-btn {
  margin-top: 15px;
}



.member-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.member-table th {
    background: #f5f7fa;
    text-align: left;
    padding: 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.member-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.member-table tr:hover {
    background: #fafafa;
}

/* Role badges */
.role-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.role-owner {
    background: #e6f4ea;
    color: #1e7e34;
}

.role-primary {
    background: #e7f1ff;
    color: #0b5ed7;
}

.role-member {
    background: #f1f3f5;
    color: #555;
}


.member-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.member-table th {
    background: #f5f7fa;
    padding: 12px;
    text-align: left;
}

.member-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.member-table tr:hover {
    background: #fafafa;
}

.role-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.role-owner {
    background: #e6f4ea;
    color: #1e7e34;
}

.role-primary {
    background: #e7f1ff;
    color: #0b5ed7;
}

.role-member {
    background: #f1f3f5;
    color: #555;
}

/* Modal */
.member-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    z-index: 10000 !important;
    justify-content: center;
}

.modal-content {
    background: #fff !important;
    padding: 20px;
    width: 400px !important;
    border-radius: 10px;
        z-index: 10000;
    background: #fff;
}

.modal-content input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
}

.close-modal {
    float: right;
    cursor: pointer;
}




.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom:10px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.member_role {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.learndash-wrapper .ld-item-list .ld-item-search .ld-closer:focus {border: 0;}