/* ==========================================
   1. MASTER DASHBOARD (SD WRAPPER)
========================================== */
.dashboard-sd-wrapper { width: 100%; padding: 20px; background: #f9f9f9; box-sizing: border-box; }
.dashboard-sd-container { width: 100%; max-width: 100%; margin: 0 auto; box-sizing: border-box; }
.dashboard-sd-main-card { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; overflow: hidden; }
.dashboard-sd-mascot { width: 500px; height: auto; object-fit: contain; flex-shrink: 0; }
.dashboard-sd-grid { display: flex; align-items: flex-start; justify-content: center; width: 100%; }
.dashboard-sd-col-left { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 60%; padding: 20px 20px 20px 0; }
.dashboard-sd-col-right { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 40%; padding: 20px 0; }
.dashboard-sd-support-card { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 20px; gap: 10px; }
.dashboard-sd-support-btn { padding: 10px 24px; color: #4b57d1; border-radius: 8px; border: 1px solid #4b57d1; }
.dashboard-sd-info { padding-left: 40px; }
.edvdo_shi_checkin_popup_btn_style { display: inline-flex; justify-content: center; align-items: center; width: auto; padding: 12px 24px; cursor: pointer; text-decoration: none !important; background-color: #4c56e3; color: #ffffff !important; border: none; border-radius: 12px; font-family: Roboto; font-weight: 600; font-size: 15px; white-space: nowrap; box-sizing: border-box; transition: all 0.2s ease-in-out; }
.edvdo_shi_checkin_popup_btn_style:hover, .edvdo_shi_checkin_popup_btn_style:focus { background-color: #3a42b9; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(76, 86, 227, 0.2); }

/* ==========================================
   2. COMBINED INSIGHTS
========================================== */
.dashboard-insights-wrap { display: block; width: 100% !important; box-sizing: border-box; }
.dashboard-ins-header-ttl { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.dashboard-ins-header-sub { font-size: 14px; color: #666; margin-bottom: 24px; }
.dashboard-ins-card { border-radius: 16px; padding: 20px; margin-bottom: 12px; border: 1px solid #eee; background: #fff; position: relative; display: flex; gap: 16px; align-items: center; width: 100%; box-sizing: border-box; }
.dashboard-ins-card.dashboard-ins-prio { background: #F3F5FF; border-color: #DDE2FF; }
.dashboard-ins-badge { position: absolute; top: 20px; right: 20px; background: #4F56DB; color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.dashboard-ins-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dashboard-yellow { background: #FFF4E5; } 
.dashboard-blue { background: #EBF5FF; } 
.dashboard-indigo { background: #EEF0FF; }
.dashboard-ins-content { flex: 1; padding-right: 70px; }
.dashboard-ins-ttl { color: #2d2d2d; margin-bottom: 10px; }
.dashboard-ins-desc { font-size: 14px; color: #555; line-height: 1.4; }
.dashboard-ins-footer { text-align: right; margin-top: 20px; }
.dashboard-ins-link { color: #4F56DB; text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; }
.dashboard-ins-locked-state { border: 1px dashed #8b98db; border-radius: 8px; padding: 48px 24px; text-align: center; margin-top: 16px; background-color: #f8fafc; }
.dashboard-ins-lock-icon { margin-bottom: 16px; }
.dashboard-ins-lock-icon img { width: 48px; object-fit: contain; }
.dashboard-ins-locked-text { color: #374151; font-size: 14px; max-width: 250px; margin: 0 auto; line-height: 1.5; }

/* ==========================================
   3. STREAK & ACTIVITIES
========================================== */
.dashboard-title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.dashboard-sub { color: #666; margin: 8px 0; font-size: 14px; }
.dashboard-row { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-top: 16px; }
.dashboard-week { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; }
.dashboard-circ { width: 60px; height: 60px; border-radius: 50%; background: #f1f1f1; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.dashboard-inactive { background: #e5e5e5; color: #999; filter: grayscale(100%); }
.dashboard-img { width: 60px; height: 60px; object-fit: contain; }
.dashboard-countdown { position: absolute; top: 18px; right: 18px; background: #F4F6FF; color: #4D5BFF; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 20px; white-space: nowrap; z-index: 999; }

/* ==========================================
   4. START HERE SECTION
========================================== */
.ed-sh-wrap { width: 100%; background: #fff; border: 1px solid #eee; padding: 24px; border-radius: 16px; display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; }
.edh2-title { font-size: 18px; font-weight: 700; color: #242424; margin-bottom: 5px; }
.ed-sh-mood { background: #FFF9EE; border-radius: 16px; padding: 15px 20px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; align-items: flex-start; }
.ed-sh-mood-in { display: flex; align-items: center; gap: 12px; width: 100%; }
.ed-sh-mood-in img { width: 40px; height: 40px; flex-shrink: 0; }
.ed-sh-btn { background: #3E50D3; color: #fff !important; border-radius: 10px; text-decoration: none; gap: 8px; font-weight: 600; font-size: 13px; white-space: nowrap; display: flex; width: auto; height: 44px; padding: 11px 160.333px 11px 161px; margin-top: 8px; justify-content: center; align-items: center; }
.ed-sh-time-left { color: #666; font-weight: 400; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ed-sh-time-left img { width: 12px; height: 12px; display: block; }
.ed-sh-header { display: flex; align-items: center; justify-content: flex-end; width: 100%; }
.ed-sh-cont-link { text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap; color: #3E50D3; display: inline-flex; align-items: center; gap: 6px; }
.ed-sh-cont-link img { width: 10px; height: auto; display: block; }
.ed-sh-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; width: 100%; }
.ed-sh-progress-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #666; width: 100%; margin-top: 18px; }
.ed-sh-emoji { color: #0A0A0A; font-family: Inter; font-size: 30px; font-style: normal; font-weight: 500; line-height: 140%; }
.ed-sh-prog { width: 100%; border: 1px solid #e5e5e5; border-radius: 16px; padding: 20px; margin: 20px 0; display: flex; flex-direction: column; gap: 22px; background: #fff; }
.ed-ongoing-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #2b2b2b; }
.ed-ongoing-content { display: flex; align-items: flex-start; gap: 16px; }
.ed-ongoing-icon { width: 42px; height: 42px; border-radius: 50%; background: #E9E9FF; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ed-ongoing-text { display: flex; flex-direction: column; gap: 10px; }
.ed-ongoing-btn { width: 20%; height: 48px; border: 1px solid #4D5BFF; border-radius: 8px; background: #fff; color: #4D5BFF !important; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ed-sh-head-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-family: Roboto; font-size: 18px; font-style: normal; font-weight: 500; line-height: 29.288px; color: #000; }
.ed-sh-head-left img { width: 32px; height: 32px; flex-shrink: 0; }
.ed-sh-bar-bg { height: 8px; border-radius: 10px; width: 100%; overflow: hidden; margin: 10px 0; background: #f0f0f0; }

/* ==========================================
   5. SUGGESTED ACTIVITIES
========================================== */
.ed-card { background: #fff; padding: 25px; border-radius: 16px; border: 1px solid #eaeaea; font-family: 'Inter', sans-serif; width: 100%; box-sizing: border-box; }
.edh2-act { font-size: 16px; font-weight: 700; color: #242424; margin-bottom: 15px; }
.ed-item { display: flex; padding: 20px 0; border-bottom: 1px solid #f0f0f0; gap: 16px; align-items: center; }
.ed-item:last-child { border-bottom: none; padding-bottom: 0; }
.ed-icon-wrap { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; align-self: flex-start; margin-top: -4px; }
.ed-icon-wrap img { width: 24px; height: 24px; object-fit: contain; }
.ed-purple { background: #eef0ff; }
.ed-orange { background: #fff4e5; }
.ed-content { flex: 1; min-width: 0; }
.ed-title { font-size: 14px; font-weight: 600; color: #1f2937; margin: 0 0 8px; }
.ed-time { font-size: 12px; color: #4b57d1; margin-bottom: 6px; font-weight: 500; display: flex; align-items: center; gap: 6px; line-height: 1; }
.ed-time img { width: 14px; height: 14px; object-fit: contain; display: block; flex-shrink: 0; }
.ed-tags { font-size: 11px; color: #666; line-height: 1.4; } 
.ed-btn-act { padding: 10px 18px; border: 1px solid #c7d2fe; color: #4b57d1; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; align-self: center; }

/* ==========================================
   6. ASSESSMENT POPUP & ACTIVITIES
========================================== */
#edvdo_assessment_overlay { visibility: hidden; opacity: 0; display: flex !important; position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background-color: rgba(0, 0, 0, 0.75) !important; z-index: 2147483647 !important; align-items: center !important; justify-content: center !important; transition: opacity 0.3s ease, visibility 0.3s ease !important; }
#edvdo_assessment_overlay.show-popup { visibility: visible !important; opacity: 1 !important; }
#edvdo_assessment_overlay .edvdo_assessment_popup { width: 660px !important; max-width: 90vw !important; height: 462px !important; max-height: 90vh !important; background-color: #ffffff !important; border-radius: 16px !important; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important; position: relative !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; padding: 40px !important; box-sizing: border-box !important; text-align: center !important; overflow-y: auto !important; }
#edvdo_assessment_overlay .edvdo_assessment_close { position: absolute !important; top: 16px !important; right: 16px !important; background: transparent !important; border: none !important; font-size: 24px !important; cursor: pointer !important; color: #111111 !important; padding: 8px !important; line-height: 1 !important; min-width: 0 !important; min-height: 0 !important; }
#edvdo_assessment_overlay .edvdo_assessment_title { color: #0b0c38 !important; font-size: 28px !important; font-weight: 700 !important; margin: 0 0 12px 0 !important; font-family: sans-serif !important; line-height: 1.2 !important; }
#edvdo_assessment_overlay .edvdo_assessment_subtitle { color: #717171 !important; font-size: 16px !important; margin: 0 0 40px 0 !important; font-family: sans-serif !important; line-height: 1.5 !important; }
#edvdo_assessment_overlay .edvdo_assessment_illustration { margin-bottom: 40px !important; width: 100 !important; display: flex !important; justify-content: center !important; align-items: center !important; }
#edvdo_assessment_overlay .edvdo_assessment_illustration img { width: 64px !important; height: 64px !important; object-fit: cover !important; border-radius: 50% !important; border: 3px solid #ffffff !important; margin-left: -16px !important; position: relative !important; transition: all 0.3s ease !important; }
#edvdo_assessment_overlay .edvdo_assessment_illustration img:first-child { margin-left: 0 !important; } 
#edvdo_assessment_overlay .edvdo_assessment_btn { width: 85% !important; display: block !important; padding: 16px 0 !important; background-color: #4c56e3 !important; color: #ffffff !important; font-family: sans-serif !important; font-weight: 700 !important; font-size: 16px !important; text-decoration: none !important; border-radius: 12px !important; transition: background-color 0.2s ease !important; box-sizing: border-box !important; flex-shrink: 0 !important; min-height: 52px !important; position: relative !important; z-index: 10 !important; }
#edvdo_assessment_overlay .edvdo_assessment_btn:hover { background-color: #3a42b9 !important; }

.activity-edvdo-yellow-text { color: #ff9900; margin-top: 18px; margin-bottom: 18px; }
.activity-edvdo-activity-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; margin-bottom: 34px; }
.activity-edvdo-activity-number { color: #ff9900; }
.activity-edvdo-msg { margin-bottom: 20px; color: #2b2b2b; }
.activity-edvdo-link { display: flex; justify-content: flex-end; font-weight: 700; color: #3f51e8; text-decoration: none; }
a.edvdo-link:visited {color: #0000EE; /* Standard link blue, or change this to your theme's blue hex code */}

/* ==========================================
   7. MEDIA QUERIES
========================================== */
/* LAPTOP */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .ed-sh-mood { flex-direction: column; align-items: center; }
    .ed-sh-wrap { padding: 24px; }
    .ed-sh-prog { padding: 24px; }
    .ed-ongoing-btn { width: 70%; margin-left: 58px; }
    .dashboard-card { width: 100%; padding: 15px; }
    .dashboard-title { font-size: 24px; }
    .dashboard-circ { width: 70px; height: 70px; font-size: 18px; }
    .dashboard-row { gap: 24px; }
    .dashboard-bar { height: 16px; }
    .edvdo_shi_checkin_popup_btn_style { padding: 12px 20px; }
}

/* TABLET */
@media screen and (min-width: 481px) and (max-width: 1024px) {
    .dashboard-sd-grid { display: flex; flex-direction: column; gap: 24px; } 
    .dashboard-sd-col-left, .dashboard-sd-col-right { width: 100%; padding: 0; }
    .dashboard-sd-main-card { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; } 
    .dashboard-sd-mascot { width: 45% !important; }
    .dashboard-sd-info { padding: 20px 0 20px 20px; }
    .dashboard-ins-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .dashboard-ins-content { padding-right: 0; width: 100%; }
    .ed-sh-wrap { padding: 24px; gap: 20px; }
    .ed-sh-mood { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 24px; }
    .ed-sh-mood-in { width: auto; }
    .ed-sh-btn { width: auto; margin-top: 0; padding: 11px 24px; }
    .ed-sh-prog { padding: 24px; gap: 16px; }
    .ed-ongoing-content { display: flex; flex-direction: row; align-items: flex-start; gap: 16px; }
    .ed-ongoing-btn { width: auto; min-width: 150px; margin-left: auto; margin-top: 16px; align-self: flex-end; }
    .dashboard-card { width: 100%; max-width: 100%; padding: 24px; }
    .dashboard-title { padding-right: 0; }
    .dashboard-row { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-top: 20px; }
    .dashboard-week { display: flex; flex-direction: column; align-items: center; gap: 8px; }
    .dashboard-circ { width: 56px; height: 56px; font-size: 14px; flex-shrink: 0; }
    .dashboard-sd-support-card { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 24px; }
    .dashboard-sd-support-btn { width: auto; white-space: nowrap; }
    .activity-edvdo-activity-row { gap: 12px; margin-bottom: 28px; }
    .activity-edvdo-yellow-text { margin-bottom: 15px; }
    .activity-edvdo-msg { margin-bottom: 15px; }
    .edvdo_shi_checkin_popup_btn_style { padding: 12px 20px; width: auto; }
}

/* MOBILE */
@media screen and (min-width: 320px) and (max-width: 480px) {
    .dashboard-sd-container { padding: 0 0px; } 
    .dashboard-sd-main-card { flex-direction: column; align-items: flex-start; padding: 20px; } 
    .dashboard-sd-mascot { display: none ; } 
    .dashboard-sd-info { padding: 0; }
    .dashboard-sd-grid { grid-template-columns: 1fr; } 
    .dashboard-h1 { font-size: 20px; } 
    .dashboard-sd-support-card { flex-direction: column; align-items: flex-start; } 
    .dashboard-sd-support-btn { width: 100%; }
    .dashboard-sd-wrapper { padding: 10px; }
    .dashboard-ins-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .dashboard-ins-content { padding-right: 0; width: 100%; }
    .dashboard-ins-badge { top: 16px; right: 16px; }
    .dashboard-insights-wrap { padding: 15px 5px; }
    .dashboard-card { padding: 16px; border-radius: 12px; }
    .dashboard-title { font-size: 18px; }
    .dashboard-circ { width: 48px; height: 48px; font-size: 14px; }
    .dashboard-row { gap: 10px; justify-content: center; }
    .dashboard-sub { font-size: 13px; }
    .ed-sh-header .ed-sh-cont-link { display: none; } 
    .mobile-only-link { display: block; text-align: right; } 
    .ed-sh-btn { width: 100%; }
    .sd-support-card { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 10px 10px; margin-top: 24px; gap: 20px; }
    .ed-sh-wrap { padding: 16px; gap: 16px; }
    .ed-sh-mood { padding: 14px; }
    .ed-sh-mood-in { align-items: flex-start; }
    .ed-sh-btn { width: 100%; padding: 12px; font-size: 14px; }
    .ed-sh-prog { padding: 18px 16px; gap: 18px; }
    .ed-ongoing-title { font-size: 18px; }
    .ed-ongoing-content { gap: 12px; align-items: flex-start; }
    .ed-ongoing-icon { width: 38px; height: 38px; }
    .ed-ongoing-icon img { width: 20px; height: 20px; }
    .ed-ongoing-heading { font-size: 16px; line-height: 1.3; }
    .ed-ongoing-desc { font-size: 14px; line-height: 1.5; }
    .ed-ongoing-btn { width: calc(100% - 50px); margin-left: 50px; font-size: 14px; height: 44px; }
    .ed-card { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }
    .ed-item { flex-wrap: wrap; align-items: flex-start; }
    .ed-btn-act { width: 100%; margin-top: 5px; }
    .edvdo_shi_checkin_popup_btn_style { padding: 14px 24px; font-size: 15px; width: 65%; box-sizing: border-box; text-align: center; }
    .activity-edvdo-yellow-text { color: #ff9900; margin-top: 15px; margin-bottom: 15px; }
    .activity-edvdo-activity-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; margin-bottom: 34px; }
    .activity-edvdo-msg { margin-bottom: 15px; color: #2b2b2b; }
    .activity-edvdo-link { display: flex; justify-content: flex-end; font-weight: 700; color: #3f51e8; text-decoration: none; }
.dashboard-img { width: 30px; height: 30px; object-fit: contain; }
.dashboard-week-number {
    font-size: 12px;
}


}












 
    /* ==========================================
       GLOBAL BASE STYLES (Desktop) CSS- OF TOGGLE NEED URGENT HELP
       ========================================== */
    .sos-toggle-container {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      width: 320px;
      background: linear-gradient(90deg, #8a2be2 0%, #4169e1 100%);
      border-radius: 50px;
      padding: 8px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                  inset 0 0 0 2px rgba(255, 255, 255, 0.8);
      overflow: hidden;
      position: fixed !important;
      right: 20px;
      bottom: 20px;
      z-index: 99999 !important;
      transform: translateZ(0);
    }

    .sos-thumb {
      width: 48px;
      height: 48px;
      background: #fff;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 0 0 6px rgba(186, 134, 235, 0.4); 
      flex-shrink: 0;
    }

    /* Target the raw SVG to scale it perfectly in the center */
    .sos-thumb svg {
      width: 33px;
      height: 33px;
    }

    .sos-text {
      color: #fff;
      font-family: system-ui, -apple-system, sans-serif;
      font-size: 22px;
      font-weight: 600;
      margin-left: 14px;
      white-space: nowrap;
    }

    /* ==========================================
       TABLET VIEW (481px - 1024px)
       ========================================== */
    @media screen and (min-width: 481px) and (max-width: 1024px) {
      .sos-toggle-container {
        width: 320px !important;
        right: 20px !important;
        bottom: 120px !important; /* Safely lifted above nav bar */
        z-index: 99999 !important;
      }
    }

    /* ==========================================
       MOBILE VIEW (320px - 480px)
       ========================================== */
    @media screen and (max-width: 480px) {
      .sos-toggle-container {
        width: 42px;
        height: 42px;
        padding: 4px;
        right: 16px !important;
        bottom: 90px !important; /* Safely lifted above bottom nav */
        box-sizing: border-box;
      }

      .sos-thumb {
        width: 34px;
        height: 34px;
        box-shadow: 0 0 0 4px rgba(186, 134, 235, 0.4);
      }

      /* Scale down the SVG for the smaller mobile capsule */
      .sos-thumb svg {
        width: 24px;
        height: 24px;
      }

      .sos-text {
        font-size: 15px;
        margin-left: 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      .sos-toggle-container:hover,
      .sos-toggle-container.mobile-expanded {
        width: 195px;
      }

      .sos-toggle-container:hover .sos-text,
      .sos-toggle-container.mobile-expanded .sos-text {
        opacity: 1;
      }
    }
    