/* Author: Fatima Bouzid
   Date: 4/7/2026
   Filename: styles.css
   Styles for Todoist Clone Web App
*/

#container {
    display: flex;
    height: 100vh;       /* full viewport height */
    width: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f5f7;
    color: #333;
    display: flex;
    height: 100vh;
}

/* Sidebar */
aside {
    width: 220px;
    background-color: #fff;
    border-right: 1px solid #ddd;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

aside h1 {
    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

aside ul {
    list-style: none;
    flex: 1;
}

aside li {
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

aside a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 0.8rem 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

aside a:hover {
    background-color: #e4e7eb;
}

/* Main content */
main {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Header / Section Titles */
main h2 {
    font-family: Cambria, serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Task Input Section */
#task-form {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

#taskInput {
    flex: 1;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 0.5rem;
}

#addBtn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #E03110;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#addBtn:hover {
    background-color: #AD1F03;
}

/* Task list */
#taskList {
    list-style: none;
    width: 100%;
}

#taskList li {
    background-color: #fff;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#taskList li span {
    flex: 1;
    margin-left: 0.5rem;
}

#taskList li.completed span {
    text-decoration: line-through;
    color: #888;
}

/* Task buttons */
#taskList li button {
    margin-left: 0.5rem;
    padding: 0.3rem 0.6rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

#taskList li button:hover {
    opacity: 0.9;
}

/* Checkbox */
#taskList li input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* Projects Page */
#projectList {
    list-style: none;
    margin-bottom: 2rem;
}

#projectList li {
    background-color: #fff;
    padding: 0.6rem 1rem;
    margin-bottom: 0.4rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#projectList button {
    padding: 0.3rem 0.6rem;
    border: none;
    border-radius: 6px;
    background-color: #d9534f;
    color: #fff;
    cursor: pointer;
}

#projectList button:hover {
    background-color: #c9302c;
}

/* Profile Page */
#profile-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 400px;
}

#profile-section p {
    margin-bottom: 1rem;
}

#editBtn {
    padding: 0.5rem 1rem;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#editBtn:hover {
    background-color: #357abd;
}

/* Footer */
footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    padding-top: 1rem;
}