/* --- GENERAL --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffe5ec;
}

/* --- HEADER --- */
#mainHeader {
    width: calc(100% - 200px);
    margin-left: 200px;
    background-color: #fdccd9;
    color: rgb(0, 0, 0);
    padding: 15px 20px;
    box-sizing: border-box;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* --- CONTAINER WRAPPER --- */
#container {
    display: flex;
    min-height: 100vh;
    margin-top: 80px;
}

/* --- SIDEBAR --- */
#sidebar {
    width: 200px;
    background-color: #fcc5d4;
    padding: 20px;
    box-sizing: border-box;
    border-right: 1px solid #f2a1b0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 2;
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar li {
    margin-bottom: 15px;
}

#sidebar a {
    text-decoration: none;
    color: black;
}

#sidebar a:hover {
    text-decoration: underline;
}

/* --- CONTENT --- */
#content {
    margin-left: 200px;
    padding: 20px 15px;
    flex: 1;
}

/* --- INPUT + MAIN BUTTONS --- */
button,
input[type="button"],
input[type="submit"] {
    border: none;
    cursor: pointer;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 14px;
    background-color: #ffb3c6;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #d68398;
}

#taskInput {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    width: 260px;
    box-sizing: border-box;
}

#difficulty {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    cursor: pointer;
    appearance: auto;
}

/* --- TASK LIST ALIGNMENT FIX --- */
#taskList {
    padding-left: 0;  
    margin-left: 0;
}

#taskList li {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 4px 8px 0;

    margin-bottom: 10px;
    border-bottom: 1px solid #f2a1b0;
    width: 100%;
}

/* Complete button inside tasks */
#taskList button {
    margin-left: auto;
    background-color: #ffb3c6;
    padding: 6px 10px;
}
#taskList button:hover {
    background-color: #d68398;
}

/* "Done" button */
.doneButton {
    padding: 5px 10px;
    border-radius: 8px;
    background-color: #cfcfcf;
    color: #555;
    cursor: default;
}
.doneButton:disabled {
    opacity: 1;
}

/* --- POINTS IN TOP-RIGHT --- */
#pointsDisplay {
    position: fixed;
    top: 70px;
    right: 10px;
    background: #ffcbd9;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    z-index: 5;
}

/* --- DIFFICULTY BADGES --- */
.difficulty-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    color: white;
}

.difficulty-badge.easy {
    background-color: #8bc34a;
}

.difficulty-badge.medium {
    background-color: #ffb74d;
}

.difficulty-badge.difficult {
    background-color: #e57373;
}

.task-text {
    flex-grow: 1;
}

.difficulty-badge.done-badge {
    background-color: #cfcfcf !important;
    color: #555 !important;
}

/*The sorting buttons */
#sortByCompletion,
#sortByDifficulty {
    margin-right: 2px; 
}

#sortByDifficulty {
    margin-right: 0; 
}

#sortingControls,
#sortByCompletion,
#sortByDifficulty {
    margin-top: 2px;
    margin-bottom: 10px;
}
