/* css/styles.css */
/* Ensure the body and html elements take full height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* The main content should take the remaining space after the header and footer */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Footer stays at the bottom when content is short */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333; /* Default text color */
}

header {
    background-color: #444;
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    color: #fff; /* Link color */
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.logo a:hover {
    color: #ccc; /* Lighten the color on hover */
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    margin-left: 20px;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu li a:hover {
    background-color: #555;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
    color: #333; /* Darken text color */
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555; /* Darker text for contrast */
}

.cta {
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s;
}

.cta:hover {
    background-color: #218838;
}

footer {
    background-color: #444;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

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

    .menu li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }
}

.form-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.centered-container {
    text-align: center;
    margin-bottom: 20px;
}

/* Form container and form group styles */
.styled-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

.form-container label {
    margin-bottom: 5px;
    color: #333;
}

.form-container input,
.form-container select,
.form-container textarea,
.form-container button {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding is included in the total width */
}

/* Custom styling for the textarea */
.form-container textarea {
    min-height: 100px;
    resize: vertical; /* Allows vertical resizing */
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.3s ease-in-out;
}

.form-container textarea:focus {
    border-color: #28a745;
    outline: none;
}

.form-container input:focus,
.form-container select:focus {
    border-color: #28a745;
    outline: none;
}

.form-container button.cta {
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.form-container button.cta:hover {
    background-color: #218838;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.dashboard {
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dashboard h2,
.dashboard h3 {
    margin-bottom: 20px;
    color: #333;
}

#activitiesList {
    margin-top: 20px;
}

button.cta {
    width: 100%;
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button.cta:hover {
    background-color: #218838;
}

/* Activities list styling */
.activities-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.activities-list div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.activities-list div:last-child {
    border-bottom: none;
}

.activities-list strong {
    flex: 1;
}

.activities-list a {
    margin-left: 15px;
    color: #28a745;
    text-decoration: none;
}

.activities-list a:hover {
    text-decoration: underline;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.activity-item:last-child {
    border-bottom: none;
}

.emotion-icon,
.level-icon {
    margin-right: 15px;
    font-size: 1.5em;
}

.activity-text {
    flex: 1;
    margin-right: 15px;
}

.activity-date {
    color: #777;
    font-size: 0.9em;
    margin-right: 15px;
}

.activity-item a {
    margin-left: 15px;
    color: #28a745;
    text-decoration: none;
}

.activity-item a:hover {
    text-decoration: underline;
}

.profile {
    max-width: 600px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.profile-details p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.profile-details p strong {
    color: #555;
}
