/* Basic Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Body and Font Styling */

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f0f0f5;
    color: #333;
    padding: 20px;
}


/* Header Styling */

.header {
    background-color: #4949B4;
    /* Primary color */
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}


/* Container for Content */

.container {
    margin-top: 20px;
}


/* Goals Section Styling */

.goals,
.goal-list,
.reflection {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Form Elements */

label {
    display: block;
    margin-bottom: 8px;
}

input[type="text"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #4949B4;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus {
    border-color: #3c3ca1;
}


/* Button Styles with Hover Animation */

button {
    background-color: #4949B4;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #3c3ca1;
    transform: translateY(-2px);
}


/* Progress Bar */

.progress {
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 20px;
    width: 0%;
    background-color: #4949B4;
    transition: width 0.4s ease;
}

#progress-percentage {
    text-align: center;
}


/* Goals List */

.goal-list ul {
    list-style-type: none;
    padding-left: 0;
}

.goal-list ul li {
    padding: 10px;
    background-color: #e0e1f5;
    border: 1px solid #4949B4;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}


/* Crossed-off task styling */

.crossed-off {
    text-decoration: line-through;
    color: grey;
}

.goal-list ul li:hover {
    background-color: #d4d5eb;
    transform: scale(1.02);
}


/* Footer Styling */

.footer {
    text-align: center;
    margin-top: 20px;
    color: white;
    background-color: #4949B4;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}


/* Media Queries for Responsive Design */

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    button {
        width: 100%;
    }
}


/* Media Queries for Large Screens */

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 2fr;
        grid-gap: 20px;
    }
    .goals,
    .reflection {
        grid-column: 1 / 2;
    }
    .goal-list {
        grid-column: 2 / 3;
    }
}