* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0f2f5; 
    font-family: 'Arial', sans-serif; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; 
}

.container {
    display: flex; 
    width: 80%; 
    height: 90%; 
    min-width: 900px; 
}

/* Sidebar Styling */
.sidebar {
    background-color: #2c3e50; 
    width: 220px; 
    min-width: 220px; 
    color: white; 
    display: flex;
    flex-direction: column; 
    padding: 20px; 
    border-radius: 10px; 
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #3498db; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    font-size: 1rem; 
    border-radius: 5px; 
    cursor: pointer; 
    margin-bottom: 20px; 
}

.back-button i {
    margin-right: 10px;
}

.back-button:hover {
    background-color: #2980b9; 
}

.sidebar ul {
    list-style-type: none; 
    padding: 0; 
}

.sidebar ul li {
    padding: 15px 10px; 
    cursor: pointer; 
    font-size: 1.2rem; 
    display: flex; 
    align-items: center; 
    transition: background-color 0.3s; 
}

.sidebar ul li i {
    margin-right: 10px; 
}

.sidebar ul li.active{
    background-color: #0022ff;
    border-radius: 5px;
} 
.sidebar ul li:hover {
    background-color: #0077ff; 
    border-radius: 5px; 
    opacity: 0.7;
}

/* Form */


.details {
    margin-bottom: 20px;
}

.details h3 {
    color: #333;
    margin-bottom: 10px;
}

.details p {
    margin: 5px 0;
    color: #555;
}

.edit-form {
    display: flex;
    flex-direction: column;
}

.edit-form input {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.edit-form input:focus {
    border-color: #4CAF50;
    outline: none;
}

.buttons {
    margin-top: 10px;
}

.btn {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #45a049;
}

.btn.btn-cancel {
    background-color: #f44336; /* Red */
}

.btn.btn-cancel:hover {
    background-color: #e53935;
}

.edit-form .btn {
    width: 100%;
    margin: 5px 0; /* Add some space between buttons */
}

.edit-form .buttons {
    display: flex;
    justify-content: space-between; /* Make buttons appear side by side */
}

.card h3,
.card p {
    margin: 5px 0; /* Adding margin for better spacing */
}

/* Additional styling for better layout */
.details,
.edit-form {
    margin-top: 15px; /* Space between title and details/form */
}

/* Content Styling */
.content {
    background-color: #fff;
    border-radius: 10px; 
    flex-grow: 1; 
    padding: 30px;
    margin-left: 20px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
    transition: box-shadow 0.3s ease; 
}

.card {
    margin: 0 auto;
    background-color: #fff; 
    border-radius: 10px; 
    padding: 30px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center text in card */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    border-radius: 50%; 
    height: 150px;
    width: 150px; 
    object-fit: cover;
    margin-bottom: 20px; 
    border: 4px solid #0022ff; 
}

.details h3 {
    color: #333;
    font-size: 1.8rem; 
    margin-bottom: 10px; 
    font-weight: bold; 
}

.details p {
    color: #555;
    font-size: 1rem; 
    margin-bottom: 10px; 
}

.details p i {
    color: #0022ff; 
    margin-right: 8px; 
}

.buttons {
    margin-top: 20px; 
}

.btn {
    background-color: #0022ff; 
    color: white; 
    border: none;
    padding: 10px 20px; 
    margin-right: 10px;
    font-size: 1rem; 
    border-radius: 5px; 
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s ease; /* Smooth transition for hover */
}

.btn:hover {
    background-color: #1000a5; /* Darker shade on hover */
}


/* Mood Tracking Section */

#mood-trends{
    padding: 10px;
}

#user-mood {
    background-color: #fff; 
    border-radius: 10px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Shadow for card */
    text-align: left;
    max-height: 100%;
    padding: 10px;
}

/* Mood Status Styling */
.mood-status p {
    font-size: 1.2rem;
    color: #333;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.mood-status p i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: #3498db;
}

/* Daily Affirmation Section */
.affirmation {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 5px solid #2ecc71;
    margin: 20px 0;
    border-radius: 5px;
}

.affirmation h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2ecc71;
}

.affirmation blockquote {
    font-style: italic;
    color: #34495e;
}

/* Weekly Mood Tracking */
.weekly-tracking h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.mood-tracking {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.mood-tracking li {
    font-size: 1.1rem;
    color: #555;
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.mood-tracking li i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Mental Health Tips */
.mental-health-tips {
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.mental-health-tips p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.mental-health-tips h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #f39c12;
    display: flex;
    align-items: center;
}

.mental-health-tips h4 i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: #f39c12;
}

/* Responsive for smaller screens */
@media (max-width: 600px) {
    #user-mood {
        padding: 20px;
    }

    .mood-status p {
        font-size: 1.1rem;
    }

    .affirmation h4,
    .weekly-tracking h4,
    .mental-health-tips h4 {
        font-size: 1.2rem;
    }

    .mood-tracking li {
        font-size: 1rem;
    }

    .mental-health-tips p {
        font-size: 1rem;
    }
}

/* Support Chat Styling */

#support-chat {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#support-chat h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

#support-chat p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #fff;
}

.message {
    display: flex;
    margin-bottom: 15px;
}

.message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.message-content {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    max-width: 70%;
}

.message.support .message-content {
    background-color: #3498db;
    color: white;
}

.timestamp {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-top: 5px;
}

.chat-input {
    display: flex;
    padding: 10px;
    background-color: #f0f0f0;
}

.chat-input textarea {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    font-size: 1rem;
}

.send-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-btn:hover {
    background-color: #2980b9;
}

.chat-options {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.option-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    margin: 0 5px;
}

.option-btn:hover {
    background-color: #27ae60;
}
/* Settings Styling */
#settings {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Header Styling */
#settings h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Paragraph Styling */
#settings p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

/* Label Styling */
#settings label {
    font-size: 1.1rem;
    display: block;
    margin: 20px 0;
    color: #333;
    cursor: pointer;
}

/* Checkbox Styling */
#settings input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

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

/* Checked State for Switch */
input:checked + .slider {
    background-color: #4caf50; /* Green */
}

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

/* Dropdown Styling */
.dropdown {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    margin-left: 15px;
}

.setting-item {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    margin: 10px 0; 
}

.btn-delete-account {
    background-color: #e74c3c; /* Red for delete action */
}

.btn-delete-account:hover {
    background-color: #c0392b; /* Darker red on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #settings {
        padding: 20px;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .setting-item label {
        margin-bottom: 5px;
    }
}
