
/* Profile Card Styles */
.profile-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}
#logout-link button {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    font-family: 'Fira Sans', sans-serif; /* Font style */
    font-size: 16px; /* Font size */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 20px; /* Padding for the button */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

#logout-link button:hover {
    background-color: #45a049; /* Darker green on hover */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow on hover */
}

#logout-link button:active {
    background-color: #3e8e41; /* Even darker green on click */
    transform: translateY(2px); /* Simulate a button press */
}
.profile-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
  }
.banner-image  {
    width: 100%;         /* Adjust the width of the banner */
    height: auto;       /* Set the height of the banner */
    overflow: hidden;
}
.banner-img{
    margin-top: 50px ;
    min-width: 1600px;
    height: 200px;        /* Stretch the image to fill the container */
    object-fit: cover;
}

.profile-info {
    display: flex;
    justify-content: space-between; /* Create space between left and right columns */
    margin-top: -40px;
    background-color: #fff;
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-info .left-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-info .right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 300px; /* Set a width for right section */
}

.profile-info .profile-image {
    
        width: 200px;
        height: 200px;
        background-color: rgb(255, 139, 201);
        border-radius: 50%;
        overflow: hidden;
        object-fit: cover;
        margin-top: -50px;
        border: 5px solid #fff;
      
}

.profile-info .profile-details {
    max-width: 400px;
}

.edit-profile-btn {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block;
}
.add-product-btn{
    background-color: #207ee2;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block;

}
.right-column .progress-container {
    background-color: #e0e0e0;
    border-radius: 25px;
    height: 12px; /* Reduced height */
    width: 200px; /* Adjusted width */
    margin-top: 10px;
    overflow: hidden;
}
.progress-container{
    margin-left: 50px;
}

.progress-bar {
    background-color: #4caf50;
    height: 100%;
    width: 0%; /* Will be dynamically updated */
    border-radius: 25px;
    transition: width 0.5s;
}

.right-column .badges {
    margin-top: 20px;
    text-align: center;
}

.badge-earned {
    width: 70px;
    height: 60px;
    margin: 20px;
    display: inline-block;
}

.recent-activities {
    margin-top: 20px;
    width: 100%;
}

.recent-activities ul {
    list-style: none;
    padding: 0;
}

.recent-activities ul li {
    background-color: #f4f4f4;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 8px;
}

.qr-code-section {
    margin-top: 20px;
    text-align: center;
}

.qr-code {
    width: 150px;
    height: 150px;
}

/* Dark Mode Toggle Styles */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.4s;
    width: 100%;
    height: 100%;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background-color: white;
    bottom: 3px;
    left: 3px;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}


/* Main Container to Adjust Width */
.sustainability-container {
    max-width: 700px; /* Further decrease the container width */
    margin: 0 auto; /* Center the container */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px; /* Decreased spacing between items */
    margin-top: 20px;
}

.sustainability-tip,
.green-summary,
.leaderboard {
    box-sizing: border-box; /* Prevents padding from increasing width */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px; /* Reduced padding inside sections */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Adjust Tip Section */
.sustainability-tip {
    width: 100%; /* Full width within the reduced container */
    background-color: #f0fdf4;
}

/* Green Summary and Leaderboard */
.green-summary,
.leaderboard {
    width: calc(48% - 5px); /* Slightly narrower width with small spacing */
}

/* Text and Font Sizes Adjustments */
h3, h4 {
    margin-bottom: 8px; /* Smaller spacing for headings */
    font-size: 16px; /* Decreased font size */
    color: #4caf50;
}

ul, ol {
    padding-left: 10px; /* Reduced indentation */
    font-size: 15px; /* Smaller font size for list items */
    color: #555;
}

li {
    margin-bottom: 6px; /* Reduced spacing between list items */
}

.green-summary li strong {
    color: #4caf50;
    font-size: 19px; /* Slightly smaller emphasis text */
}
@media (max-width: 412px) {
    /* Adjust Profile Card */
    .profile-card {
        padding: 15px;
    }
    .profile-image  {
        
        margin-left:92px;
    }

    /* Adjust Banner */
    .banner-img {
        min-width: 100%;
        height: 150px;
    }

    /* Profile Info Adjustments */
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -30px;
        padding: 15px;
    }

    .profile-info .profile-image {
        width: 150px;
        height: 150px;
        margin-top: -40px;
    }

    .profile-info .profile-details {
        max-width: 100%;
        text-align: center;
    }

    .profile-info .right-column {
        max-width: 100%;
        align-items: center;
    }

    /* Adjust Buttons */
    .edit-profile-btn, 
    .add-product-btn {
        width: 100%;
        text-align: center;
        padding: 8px;
        font-size: 14px;
    }

    /* Adjust Progress Bar */
    .right-column .progress-container {
        width: 100%;
    }

    /* Adjust QR Code */
    .qr-code {
        width: 120px;
        height: 120px;
    }

    /* Adjust Sustainability Section */
    .sustainability-container {
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .sustainability-tip, 
    .green-summary, 
    .leaderboard {
        width: 100%;
        padding: 8px;
    }

    /* Adjust Text */
    h3, h4 {
        font-size: 14px;
    }

    ul, ol {
        font-size: 14px;
    }

    
}
