body {
    font-family: sans-serif;
    margin: 0px;
    line-height: 1.5;
    background-color: #f7f7f7;
}

.site-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin: 0px;
    padding: 1.5rem 1rem;
    background: linear-gradient(to bottom, rgba(195, 240, 165, 0.534), rgba(255, 255, 255, 0.0));
    backdrop-filter: blur(12px);
    z-index: 10;
}

/* Intro Section */
.intro {
    padding: 30px 20px 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.intro-content {
    background-color: #e0f2d4;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.intro-content h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: #38761d;
    font-size: 40px;
    margin: 0 0 10px 0;
}

.intro-content p {
    color: #6a6a6a;
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    margin: 0;
}
.main-title-image{
    width: 250px;
    height: 250px;
}

/* --- Global Content Layout --- */
.content-grid {
    font-family: "Poppins", sans-serif;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Card Styling and Shadow Effect --- */
.left-column>section,
.side-panel>section {
    font-family: "Poppins", sans-serif;
    padding: 40px;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.left-column>section:hover,
.side-panel>section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --- Left Column (Scrollable Content) --- */
.left-column {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}


/* --- Right Column (Sticky) --- */
.side-wrapper {
    grid-column: 2 / 3;
}

.side-panel {

    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- Card Detail Styles (Daily Tasks & Habits) --- */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.card-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: #38761d;
    margin: 0;
}

.muted {
    font-size: 0.9rem;
    color: #6a6a6a;
}

.muted strong {
    font-weight: 600;
    color: #000;
}

/* Task List */
.task-category {
    margin-top: 15px;
}

.task-category h3 {

    font-size: 1.1rem;
    font-weight: 600;
    color: #5aa63c;
    margin: 0 0 10px 0;
    padding-left: 5px;
    border-left: 4px solid #a3d900;
}

.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.task:hover {
    background-color: #f0f0f0;
}

.task input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #5aa63c;
    border-radius: 6px;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    outline: none;
}

.task input[type="checkbox"]:checked {
    background-color: #5aa63c;
    border-color: #5aa63c;
}

.task input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.task label {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.task label span:first-child {
    font-weight: 500;
    color: #333;
}

.task label .meta {
    font-size: 0.85rem;
    color: #888;
    background-color: #e0f2d4;
    padding: 3px 8px;
    border-radius: 5px;
}

/* Task management forms */
.task-management {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.task-management button {
    padding: 8px 15px;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#btnClearCustom {
    background-color: #ff6347;
    color: white;
}

#btnClearCustom:hover {
    background-color: #e55338;
}

#btnResetToday {
    background-color: #a3d900;
    color: #333;
}

#btnResetToday:hover {
    background-color: #8cbf00;
}

/* Custom Task Form */
#customTaskForm {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    align-items: center;
}

#customTaskInput,
#customTaskImpact,
#customTaskCategory {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.9rem;
}

#customTaskInput {
    flex-grow: 1;
}

#customTaskImpact {
    width: 60px;
}

#customTaskCategory {
    width: 100px;
}

#customTaskForm button {
    background-color: #5aa63c;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#customTaskForm button:hover {
    background-color: #4a8c30;
}


/* Habits Section */
.habits-card form {
    font-family: "Poppins", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.form-group select {
    font-family: "Poppins", sans-serif;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 1rem;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.syf-text{
    height: 50px;
    width: auto;
    display: block;
}

/* Progress Circle */
.progress-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.ring-container {
    position: relative;
    width: 300px;
    height: 300px;
    text-align: center;
    font-size: 25px;
    padding-bottom: 55px;

}

.ring-container svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 12;
}

.ring-fg {
    fill: none;
    stroke: #5aa63c;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease-in-out;
}

.ring-middle {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    margin-left: 5px;
    justify-content: center;
    align-items: center;
}

.eco-score-display {
    font-size: 3.5rem;
    font-weight: 600;
    color: #38761d;
    line-height: 1;
    text-align: center;
}

.score-out-of {
    font-size: 1.2rem;
    font-weight: 500;
    color: #888;
}

/* Tips Section */
.tip-text {
    font-style: italic;
    color: #555;
    margin-top: 10px;
    padding: 10px;
    border-left: 4px solid #a3d900;
    background-color: #f5fff0;
    border-radius: 0 8px 8px 0;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.1s;
    color: #5aa63c;
    padding: 0;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .side-wrapper {
        grid-column: 1 / 2;
    }

    .side-panel {
        position: static;
        width: 100%;
        max-width: 100%;
        top: auto;
    }
}