html, body {
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  left: 0 !important;
  width: 100vw !important;
}

body {
  transform: none !important;
}
/* === Reset Tracker Daily Log === */

#dopamine-dashboard {
        max-width: 700px;
        margin: 0 auto;
        padding: 25px;
        background: #fff;
        
        
     
    }

    #dopamine-dashboard h3 {
        text-align: center;
        font-size: 24px;
        font-weight:600;
        margin-bottom: 20px;
    }
#dopamine-dashboard h4 {
      
        font-size: 18px;
        padding-left:8px;
        margin-bottom: 0px;
        font-weight:600;
    }
    #dopamine-log-form label {
        display: block;
        margin-bottom: 20px;
        font-weight: bold;
        position: relative;
    }

    #dopamine-log-form input[type="text"],
    #dopamine-log-form input[type="range"],
    #dopamine-log-form select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        margin-top: 5px;
        font-size: 15px;
        background-color: #fff;
    }

    .tooltip {
        position: relative;
        display: inline-block;
        cursor: pointer;
        margin-left: 8px;
        font-weight: normal;
        font-size: 14px;
        color: #555;
    }

    .tooltip .tooltiptext {
        visibility: hidden;
        max-width: 500px;
        width:300px;
        background-color: #333;
        color: #fff;
        text-align: left;
        border-radius: 6px;
        padding: 8px 10px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 13px;
        line-height: 1.4;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }

    #dopamine-log-form button {
    margin-top:50px !important;
    background-color: #ffdd7e;
    color: #333;
    border: none;
    padding: 20px 20px;
     letter-spacing: 0.1px !important;
    font-family: inherit; 
    font-weight: 700 !important;
    font-size:15px;
    border-radius: 6px;
    cursor: pointer;
    width:100%;
    transition: background-color 0.2s;
    margin-top: 15px;
    color: #333;
    }

    #dopamine-log-form button:hover,
    #dopamine-log-form button:focus {
        background-color: #fcd665;
     font-weight: bold !important;
    color: #222;
    }

    #log-result {
        margin-top: 15px;
        font-weight: bold;
        color: green;
        text-align: center;
    }
    
.reset-title {
    margin-top:30px;margin-bottom:15px;padding: 4px;
    background: #f4f4f4;
    border-left: 5px solid #2462c7;
    border-radius: 4px;
}    
    
    .mood-slider-container {
    position: relative;
    margin-top: 10px;
}

.mood-labels {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-top: 5px;
    padding: 0 5px;
    color: #444;
}
.streak-stats-box {
    margin-bottom: 25px;
    background: #e8f5ff;
    padding: 15px 20px;
    border-left: 4px solid #0073aa;
    border-radius: 6px;
    font-size: 16px;
}

.streak-count {
    margin-bottom: 10px;
    font-weight: bold;
    color: #0073aa;
}

.progress-bar {
    background-color: #ddd;
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
}

.progress-bar .progress-inner {
    height: 100%;
    width: 0;
    background-color: #2e7d32; /* ✅ green */
    transition: width 0.3s ease-in-out;
}

.progress-motivation {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #155724;
    background-color: #e9f7ef;
    padding: 10px 15px;
    border-left: 4px solid #28a745;
    border-radius: 4px;
     margin-bottom:40px;
}

.progress-motivation.complete {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
     margin-bottom:40px;
}


.new-challenge-message {
   font-size: 16px;
    font-weight: 400;
    color: #454545; 
    background-color: #e9f7ef;
    border-radius:6px;
    padding: 10px 15px;
    margin-bottom:40px;
}


.daily-log-note {
  background: #f5f5f5;
  border-left: 0px solid #2ecc71;
  padding: 20px;
  margin: 20px 0;
  border-radius: 6px;
  font-size: 16px;
  font-weight:400;
  color: #2c3e50;
}

.daily-log-note h4 {
  margin-top: 0;
  margin-left:0px !important;
  padding-left:0px !important;
  color: #27ae60;
}

.daily-log-note ul {
  list-style: none;
  margin: 15px 0 0 0;
  padding-left: 0;
}

.daily-log-note li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  margin-right: 8px;
}

.daily-log-note li {
  padding-left: 28px; /* give space for the checkmark */
  position: relative;
}






/* === Reflection History === */

.challenge-block {
    padding: 10px;
    margin-bottom: 2rem;
    border: 1px solid #f3f3f3;
    border-radius: 8px;
    
    overflow: hidden;
    background-color: #fff;
}

.challenge-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f9fbff;
   
    width: 100%;
}

.challenge-title {
    font-size: 17px !important;
    font-weight: 600 !important;
     text-align: left;
    color: #333;

    cursor: pointer;
}

.challenge-status {
    font-size: 0.95rem;
    font-weight: 600;
    color: #198754;
    margin-left: 1rem;
    
}

/* Progress bar section */
.challenge-progress-bar {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.progress-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #444;
}

.progress-track {
    width: 100%;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #198754;
    width: 0;
    transition: width 0.4s ease;
    border-radius: 6px 0 0 6px;
}








.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding-bottom: 5px;
}

.challenge-header {
    padding: 0rem;
    text-align: center;
}




.challenge-days {
    margin-top: 15px;
}

.log-entry {
    margin-bottom: 15px;
}

.log-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s;

}

.log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 10px;
}

.log-reflection {
    margin: 0 0 10px;
    color: #1f2937;
}

.view-log-detailsbtn {
    background-color: #3596e6;
    color: #fff;
    border: none;
    text-transform:none;
    padding: 12px 20px !important;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.view-log-detailsbtn:hover {
    background: #2c7dbf;
}

.hidden {
    display: none;
}





















.log-date {
  
    font-size: 14px;
    color: #4b5563;
  font-weight:600;
}

 .log-entry {
        
        padding: 5px;
        margin-bottom: 5px;
        border-left: 0px solid #0073aa;
        border-radius: 6px;
    }
    .log-summary {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
    }
    .log-reflection {
        margin: 8px 0;
    }
    .view-log-details {
        padding: 6px 12px;
        background: #0073aa;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    .log-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0; top: 0;
        width: 100%; height: 100%;
        background-color: rgba(0,0,0,0.6);
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    .log-modal .modal-content {
        background: #ffffff;
        padding: 30px;
        max-width: 800px;
        width: 100%;
        border-radius: 12px;
        overflow-y: auto;
        max-height: 90vh;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
       
        color: #333;
    }
    .log-modal .close-modal {
        float: right;
        font-size: 22px;
        cursor: pointer;
        color: #999;
    }
    .log-modal .close-modal:hover {
        color: #000;
    }
    .log-modal:not(.hidden) {
        display: flex;
    }
    .log-modal h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .log-modal h4 {
        font-size: 17px;
        font-weight:600;
        margin-top:5px;margin-bottom:5px;padding: 4px;
    background: #f4f4f4;
    border-left: 5px solid #2462c7;
    border-radius: 4px;
    }
    .log-modal p {
        margin-bottom: 6px;
        line-height: 1.6;
    }
    .log-modal p strong {
        display: inline-block;
        width: 220px;
        font-weight: 600;
    }
    .modal {
    display: none; /* Default hidden */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal:not(.hidden) {
    display: block;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

 .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px !important;
    font-weight: bold;
    color: #333 !important;
    background-color: #d5d5d5;
    border: 0px solid #e5e5e5;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, box-shadow 0.2s;
    
}


.close-modal:hover {
    background-color: #f5f5f5;
   
}


.encouraging-message {
   margin-left:20px; margin-top: 15px;
    padding: 12px 15px;
    background: #e0ffe4;
    border-left: 5px solid #28a745;
    font-weight: 500;
    font-size: 16px;
    color: #155724;
    border-radius: 4px;
}





















