/* ================================
   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;
  position: relative;
}

.md-profile {
  text-align: center;
}

.md-avatar {
  width:90px;
  height:90px;
  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;
  background:#e1f2f6;
  color:#004f6e;
  font-weight:600; */
}
.md-contact{text-align:left;font-style:italic;font-weight:500}
.md-contact p {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
}

/* NAV */
.md-nav {
  margin-top: 32px;
  position: sticky;
  top: 200px;
}
.md-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}
.md-nav a{display:block;align-items:center;justify-content:space-between;padding:8px;margin-bottom:6px;border-radius:10px;font-size:14px;color:#111}
.md-nav a.active,.md-nav a:hover{background:#f4f4f4}
.md-count{background:#004f6e;color:#fff;font-size:12px;padding:2px 8px;border-radius:50px}
.learndash-wrapper .ld-status-in-progress{border-color: #004f6e #e2e7ed #e2e7ed #004f6e!important;}
.learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage {background: #004f6e!important;}
.md-card.md-ce-cta .md-ce-cta-inner a.md-btn-primary{background: #004f6e;
    color: white;
    padding: 6px 14px;
    border-radius: 99px;}
    .datececredits .ginput_container_date input{width: 100%!important;}
    .gf_name_has_2 input:read-only {
    border: 1px solid #666 !important}
.wlcm-msg{margin-bottom:30px}
.wlcm-msg h2{margin-bottom:10px}
  
/* 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%;
}
.course-wrap{max-height:220px;overflow-y:scroll}
.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;
  margin-top: 15px;
}

.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:24px
}

/* ================================
   COURSES
================================ */
.md-course{margin-top:25px}

.md-course strong {
  font-size: 14px;
  display: block;
  line-height: 16px;
}

.md-course a {
  display: inline-block;
  font-size: 12px;
  text-decoration: underline;
  background: #004f6e;color: white!important;padding: 7px 12px;border-radius: 20px;margin-top: 12px;
}

.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:10px;
  margin-top: 12px;
}

.md-membership-info {
  max-width: 60%;
}

.md-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(#004f6e 0deg, #004f6e 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;
}
div#md-dynamic-content{background-color:#fff;box-shadow:0 6px 18px rgba(0, 0, 0, 0.05);border-radius:10px;border-right:1px solid #e6e6e6}

/* ================================
   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-default-dashboard .md-grid-70-30 {
    grid-template-columns:5fr 5fr
}
#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;
}
#md-my-courses{background:#fff;padding:0 25px 25px;border:1px solid#e6e6e6;border-radius:20px}
.div-count-box{display:flex}
.div-count-box img{width:30px;height:40px!important}
.stats-text{display:flex;flex-direction:column}
.learndash-wrapper .ld-status-complete{background-color:#004f6e!important}
.learndash-wrapper .ld-profile-summary .ld-profile-card{display:none!important}
#md-dynamic-content button{padding:8px 20px;font-size:14px}
.learndash-wrapper .ld-profile-summary .ld-profile-stats{background:#f7f7f7;width:fit-content;margin:0 auto;padding:10px;border-radius:20px}
/* HTML: <div class="ribbon">Your text content</div> */
.md-badge {
  font-size:16px;
  font-weight:500;
  color: #fff;
}
.md-badge {
  --s:22px; /* the ribbon size */
  --d: .8em;  /* the depth */
  --c: .8em;  /* the cutout part */
  padding: 0 calc(var(--s) + .5em) var(--d);
  background:
    conic-gradient(at left  var(--s) bottom var(--d),
     #0000 25%,#0008 0 37.5%,#0004 0) 0   /50% 100% no-repeat,
    conic-gradient(at right var(--s) bottom var(--d),
     #0004 62.5%,#0008 0 75%,#0000 0) 100%/50% 100% no-repeat;
  clip-path: polygon(0 var(--d), var(--s) var(--d),var(--s) 0,calc(100% - var(--s)) 0,calc(100% - var(--s)) var(--d),100% var(--d),calc(100% - var(--c)) calc(50% + var(--d)/2),100% 100%,calc(100% - var(--s) - var(--d)) 100%,calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),calc(var(--s) + var(--d)) calc(100% - var(--d)),calc(var(--s) + var(--d)) 100%,0 100%,var(--c) calc(50% + var(--d)/2));
  background-color:#004f6e; /* the main color */
  width: fit-content;
}
@keyframes mdspin {
  to { transform: rotate(360deg); }
}
.div-count-box {
    flex: 1;
    border-radius: 12px;
    box-sizing: border-box;
    cursor: pointer;
    padding: 15px;
    cursor: pointer;
    gap: 15px;
    box-shadow: 0 1px 2px 0 rgba(10, 13, 18, .05);
}
.div-count-box p {
    font-weight:bold;
    margin-bottom: 8px;
    font-size:16px;
    line-height: 20px;
}
.box-count {
    color: #181d27;
    font-weight:700;
    line-height: 38px;
    margin-bottom: 0;
}
.course-total{background-color:#dee9fc}
.event-total{background-color:#e9f4f5}
.certificates-total{background-color:#fffcf5}
.support-total{background-color:#fdeeea}

/* 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;
  font-size: 14px;
}

.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;
}


.course-title{
width: 60%;
    display: block;
    float: left;

}


.ld-profile-stat-certificates{
 display:none; 
}




/* ROW LAYOUT */
.md-case-summary{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:6px;
    margin-bottom:10px;
    cursor:pointer;
    transition:0.2s ease;
}

.md-case-summary:hover{
    background:#f7f9fc;
}

.md-case-summary .col{
    flex:1;
    font-size:14px;
}

.case-no{ font-weight:600; }
.subject{ flex:2; }

.arrow{
    flex:0 0 30px;
    font-size:18px;
    text-align:center;
    color:#2271b1;
}

/* STATUS COLORS */
.status.open{ color:#0a7c2f; }
.status.closed{ color:#999; }
.status.pending{ color:#d98400; }


/* HEADER ROW */
.md-case-header{
    display:flex;
    gap:12px;
    padding:12px 16px;
    background:#f1f3f7;
    border:1px solid #dcdcdc;
    border-radius:6px;
    margin-bottom:10px;
    font-weight:600;
    font-size:13px;
    color:#444;
}

/* MODAL SMOOTH TRANSITION */
.md-case-modal{
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
}

.md-case-modal.show{
    opacity:1;
    pointer-events:auto;
}

.md-modal-content{
    transform:scale(.92);
    transition:transform .3s ease;
}

.md-case-modal.show .md-modal-content{
    transform:scale(1);
}






/* MODAL OVERLAY */
.md-case-modal{
    position:fixed;
    inset:0;               /* top:0; right:0; bottom:0; left:0 */
    background:rgba(0,0,0,0.6);

    display:flex;          /* IMPORTANT */
    align-items:center;
    justify-content:center;

    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
    z-index:9999;
}

/* SHOW STATE */
.md-case-modal.show{
    opacity:1;
    pointer-events:auto;
}

/* MODAL BOX */
.md-modal-content{
    background:#fff;
    width:80%;
    max-width:90%;
    padding:20px;
    border-radius:8px;
    position:relative;

    transform:scale(.92);
    transition:transform .3s ease;
}

/* SCALE ANIMATION */
.md-case-modal.show .md-modal-content{
    transform:scale(1);
}


.md-close{
    float: right;
    font-size: 30px;
    margin: 0px 20px;
    cursor:pointer;

}

#gform_15 #input_15_5{
height:40px !important;

}

/* Scrollbar width */
.course-wrap::-webkit-scrollbar {
    width: 6px; /* makes scrollbar thick */
}

/* Scrollbar track */
.course-wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Scrollbar thumb */
.course-wrap::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Hover effect */
.course-wrap::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.md-route img, .md-logout img, .announce-wrap .md-alert img {width: 20px;}
.md-dashboard-wrapper .md-route , .md-dashboard-wrapper .md-logout, .announce-wrap .md-alert {display: flex; align-items: center; gap: 10px; justify-content: flex-start;}