.dashboard-container {
    max-width: 1350px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    margin: 4em auto;
}

.progress.progress-custom-track {
    overflow: visible !important;
}


button.btn.btn-completed {
    background: #ff7018;
    color: #fff;
    width: 100%;
}

button.btn.btn-come-back {
    width: 100%;
    border: 1px solid #ff7018;
    color: #ff7018;
}


.progress-container {
    padding-top: 100px;
}
.daily-banner.mobile {
    display: none;
}
.modal-dialog .modal-body {
    padding: 20px;
    position: relative;
}
.modals-images img {
    width: 100%;
}
.modals-images {
    position: relative;
    padding-bottom: 70%;
}
.modals-images img {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.Progress .row {
    gap: 30px;
    justify-content: center;
}


.section-title {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 500;
    border-left: 4px solid orange;
    padding-left: 15px;
    margin-bottom: 25px;
}

/* progress */


.progress-overview {
            background-color: #ffffff;
            border-radius: 1.5rem; /* Large rounded corners */
            padding: 32px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            text-align: center;
            width: 100%;
           
            border: 1px solid #e5e7eb;
        }

        .day-info {
            margin-bottom: 30px;
        }

        .day-counter {
            font-size: 1.625rem; /* ~26px */
            font-weight: 700;
            color: #333;
            margin-bottom: 4px;
        }

        .renew-phase {
            font-size: 0.875rem; /* ~14px */
            color: #777;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .icon-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr); 
            gap: 2rem; /* Space between items */
        }

        .icon-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
        }
.progress-circle {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#0d6efd 0deg, #e9ecef 0deg);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 26px;
  color: #0d6efd;
  transition: background 0.3s linear;
}

.progress-circle::before {
    content: "\f5a2";
    font-family: "Font Awesome 6 Free";
    font-weight: 600;
    font-size: 49px;
    color: #4caf50;
    padding: 12px;
    position: absolute;
    width: 95px;
    height: 95px;
    background: #fff;
    border-radius: 50%;
}

.progress-circle span {
  position: absolute;
  z-index: 2;
}

   /* Today’s Plan section */

h3.card-title {
    font-size: 21px;
    margin-bottom: 0px;
}

p.card-text {
    font-size: 16px !important;
    font-weight: 300;
    padding-top: 2px;
    line-height: 20px;
}

      
        /* Custom card background colors for the gradient look */
        .card-challenge {
            background: linear-gradient(to right, #fce4ec, #f0f4ff); /* Light pink to light blue/white */
            border: none;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow */
        }
        .card-habits {
            background: linear-gradient(to right, #e8f5e9, #f9f9e9); /* Light green to light yellow/white */
            border: none;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        .card-checkin {
            background: linear-gradient(to right, #e3f2fd, #f5f5f5); /* Light blue to white/gray */
            border: none;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

  .card.custom-card {
    margin: 25px 20px;
}
       .card-content {
            display: flex;
            gap: 20px;
            align-items: center;
        }
  
        .card-body.card-content img {
            width: 75px;
            height: 75px;
            border-radius: 50%;
        }

  .daily-banner {
    background-color: #43b6c8;
    color: #fff;
    text-align: center;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 400;
}

  .notify-banner{
        display: flex;
    align-items: baseline;
    background-color: #43b6c8;
    color: #fff;
    text-align: center;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 400;
}


    .daily-banner strong {
      font-weight: 700;
    }

      /* Font and Background from the original visual style */
  
     

       



 /* --- Custom Component Styling --- */

        .status-tracker-container {
            padding: 40px 20px 20px;
            background-color: white;
            border-radius: 12px;           
        }

        .status-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin-bottom: 20px;
        }

        /* --- Progress Ring Styling --- */

        .progress-ring {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            /* Outer track color: light purple */
            background-color: #DCD4F7; 
            /* Box shadow simulates the inner border */
            box-shadow: inset 0 0 0 4px #DCD4F7; 
            
            /* CSS variable for controlling the fill amount, initialized to 0% */
            --progress-fill: 0%; 
        }

        /* Base progress style, now relying on the --progress-fill variable */
        .progress-ring::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            
            /* Use the CSS variable for dynamic fill */
            background: conic-gradient(
                #8A4BFF 0%, 
                #8A4BFF var(--progress-fill), 
                transparent var(--progress-fill), 
                transparent 100%
            );
            /* Important: use mask to cut out the center, leaving only the ring border */
            mask: radial-gradient(transparent 40px, #000 45px); 
            -webkit-mask: radial-gradient(transparent 40px, #000 45px);
        }
        
        /* Icon and text styling remains the same */
        .icon-wrapper {
            /* This is the inner white circle */
            width: 80px;
            height: 80px;
            background-color: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10;
            color: #8A4BFF; /* Icon color */
        }
        
        .status-text {
            font-style: italic;
            font-size: 1.2rem;
            margin-top: 10px;
            font-weight: 500;
        }

        /* Responsive adjustments for smaller screens */
        @media (max-width: 767.98px) {

            .dashboard-container {
                max-width: 1350px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
                padding: 0 !important;
                margin: 2em auto;
            }

            .progress-ring {
                width: 100px;
                height: 100px;
            }
            .icon-wrapper {
                width: 65px;
                height: 65px;
            }
            .progress-ring::before {
                mask: radial-gradient(transparent 32px, #000 37px); 
                -webkit-mask: radial-gradient(transparent 32px, #000 37px);
            }
            .status-text {
                font-size: 1rem;
            }
    .daily-banner.mobile {
        display: block;
        border-radius: 20px;
        padding: 10px;
        font-size: 16px;
                color: #000;
                        margin-bottom: 15px;
    }
    .progress-wrap {
    margin-bottom: 40px !important;
}
.daily-banner {
    display: none;
}
.btn-come-back, .btn-completed {
    padding: 10px 10px !important;
    font-size: 14px !important;
}
.progress-container {
    padding-top: 20px;
}
.status-tracker-container {
    padding: 40px 20px 0px;
}
.mobiles {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
p.card-text {
    font-size: 14px !important;
}
        }


        :root {
      --size: 518px;
      --stroke-width: 10;
      --bg: #A7D0CD;
      --accent: #0097B2;
      --accent-dot: #A7D0CD;
      --accent-negative: #ff5722; 
      --center-size: 80px;
      font-family: system-ui, sans-serif;
   }

 .progress-wrap {
    max-width: var(--size);
    position: relative;
    margin-bottom: 100px ;
    margin: auto;
}

    .progress-svg {
      display: block;
      width: 100%;
      height: auto;
      overflow: visible;
    }

    .center-objects {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    border-radius: 50%;
}


        /* Custom style to mimic the light cyan/teal color */
        :root {
            --bs-cyan-light: #80cedb; /* Lighter cyan for borders */
            --bs-cyan-dark: #007c91;  /* Darker cyan for text */
        }

        .text-cyan-dark {
            color: var(--bs-cyan-dark) !important;
        }

        .border-cyan-light {
            border-color: var(--bs-cyan-light) !important;
        }

        /* Custom styling for the Date Pill container */
        .date-pill {
            /* Flex properties for stacking Day and Month */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            /* Sizing and Spacing */
            width: 90px;
            height: 90px;
            padding: 5px;
            margin-right: 20px; /* Space between date and content */

            /* Border and Shape */
            border: 2px solid var(--bs-cyan-light);
            border-radius: 12px;
            
            /* Background */
            background-color: #f0faff; /* Very subtle light blue background */
        }

        /* Card styling to apply the consistent border and box-shadow */
        .event-card {
            border: 1px solid var(--bs-cyan-light);
            border-radius: 1rem; /* Rounded corners for the card */
            overflow: hidden;
            margin-bottom: 25px;
            padding: 20px;
            background-color: white;
            /* UPDATED: Box shadow using the border color (#80cedb is 128, 206, 219 in RGB) */
            box-shadow: 0 4px 12px 0 rgba(128, 206, 219, 0.4); /* Soft, cyan-colored shadow */
        }
        
        /* Typography */
        .date-pill-day {
            font-size: 2.2rem;
            font-weight: 800;
            line-height: 1;
        }

        .date-pill-month {
            font-size: 0.9rem;
            font-style: italic;
            font-weight: 500;
            line-height: 1;
            margin-top: -5px; /* Pull the month closer to the day */
        }
        
        .event-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        /* Responsive spacing for mobile */
        @media (max-width: 575.98px) {
            .date-pill {
                margin-right: 0;
                margin-bottom: 15px;
            }
            .event-card-body {
                padding-left: 0 !important;
            }
        }





        .custom-modal-dialog {
            /* Max width to match the visual size of a typical in-app card/modal */
            max-width: 500px; 
        }
        
        .custom-modal-content {
            border-radius: 20px; /* More rounded corners */
            overflow: hidden; /* Ensures the header image respects the top radius */
            border: none; /* Remove default border */
        }

        .modal-header-image {
            /* background-image: url('<?php echo esc_url($current_courses['image_url']); ?>');  
            background-size: cover;
            background-position: center;
            height: 250px; */
            position: relative;
        }
        .modal-dialog .modal-body h5#ChallengeLabel {
    padding-top: 10px;
}

      .modal-header-image .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    background: #0000004a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
}
        
       .modal-header-text-block {
    background-color: white;
    padding: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: absolute;
    top: -70px;
    width: 100%;
    left: 0;
}

        .renew-phase {
            font-size: 0.8rem;
            color: #4CAF50; /* Green color */
            font-weight: bold;
        }

        .master-habit-title {
            font-size: 1.5rem;
            font-weight: 800; /* Extra bold for the main title */
            line-height: 1.2;
            margin-top: 5px;
        }

        .modal-body {
            /* Adjust padding and font for the body content */
            padding-top: 0;
            padding-bottom: 20px;
            margin: 35px 0 0;
        }

        .action-title, .why-title {
            font-weight: 700; /* Bold for "Action" and "Why" titles */
            margin-top: 15px;
        }

        /* Custom button styling for the footer */
        .btn-come-back, .btn-completed {
            border-radius: 50rem; /* Pill shape */
            padding: 10px 20px;
            font-weight: bold;
            /* Added margin-right to separate the buttons */
            margin: 0 5px; 
            min-width: 150px; /* Ensure buttons have a similar minimum width */
            text-align: center;
        }
        
        .btn-come-back {
            /* Light orange/outline style */
            border-color: #FF7043; 
            color: #FF7043;
            background-color: transparent; /* Ensure transparent background */
        }

        .btn-completed {
            /* Filled orange style for "Mark As Completed" */
            background-color: #FF7043;
            border-color: #FF7043;
            color: white;
        }

        /* Corrected Footer Alignment */
        .modal-footer {
            /* Remove default Bootstrap padding, we'll control it with the inner div */
            padding: 0; 
            border-top: none;
        }
        
        .btn-group-custom {
            /* Uses Bootstrap Flex utilities for centering and spacing */
            display: flex;
               justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 20px 10px; /* Add padding to the whole button area */
        }
        .align-items-center {
            align-items: center !important;
            gap: 19px;
        }

        @media (min-width: 992px) {
        .align-items-center .col-md-6 {
            width: 49%;
        }
        }


           /* Parent Wrapper */
.daily-bonus-modal {
    --primary-start: #6366f1;
    --primary-end: #818cf8;
    --gold: #eab308;
    --card-bg: #1e293b;
}

/* Confetti Canvas */
.daily-bonus-modal #confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}



/* Modal Content */
.daily-bonus-modal .modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #fff;
    position: relative;
}

.daily-bonus-modal .modal-header {
    border-bottom: none;
    padding: 1rem 1rem 0;
}

.daily-bonus-modal .modal-body {
    padding: 0 2rem 2rem;
    text-align: center;
}

/* Modal Shine */
.daily-bonus-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Icon Animation */
.daily-bonus-modal .icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fcd34d, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.5);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.daily-bonus-modal .icon-container svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Reward Box */
.daily-bonus-modal .reward-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.daily-bonus-modal .reward-amount {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Claim Button */
.daily-bonus-modal .claim-btn {
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border: none;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.daily-bonus-modal .claim-btn:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

/* Success State */
.daily-bonus-modal .claim-btn.success {
    background: #22c55e;
}

/* Loader */
.daily-bonus-modal .loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

.daily-bonus-modal .claim-btn.loading .btn-text {
    display: none;
}

.daily-bonus-modal .claim-btn.loading .loader {
    display: block;
}

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