@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rubik", serif;
}

:root {
 /* ===== COLOR ===== */
     --primary-color: #2B2D42;
     --secondary-color: #8d99ae;
     --text-color: #EDF2F4;
     --text-prime-color: #D90429;
     --button-color: #feb11e; 
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--primary-color);
}

.container-up {
    position: relative;
    border-radius: 30px;
    margin: 20px;
    overflow: hidden;
    display: flex;
    padding: 10px;
}

.date{
    display: flex;
    align-items: center;
}

.custom-date-display {
    gap: 15px;
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 300;
    padding: 10px 15px;
    border-radius: 20px;
    width: fit-content;
    transition: background 0.5s;
}

.custom-date-display:hover {
    background-color: var(--button-color);
    color: var(--primary-color); 
    font-weight: 400;
}

#datePicker {
    display: none;  
}

.container-down {
    position: relative;
    width: 850px;
    height: 550px;
    background: var(--text-color);
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    margin: 20px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 10px;
}

.stats-container, .tasks-container {
    width: 50%;
}

.divider {
    width: 1px;
    background-color: var(--secondary-color);
    height: 95%;
    align-self: center;
}

.stats-container{
    margin: 10px 0 0 10px;
}

.stats-container .stats-details h1{
    color: var(--text-prime-color);
}

.stats-container .stats-details p {
    font-size: 20px;
}

.stats-numbers{
    display: flex;
    justify-content: center;
    margin-top: 90px;
}

#numbers {
    width: 150px;
    height: 150px;
    background-color: var(--text-prime-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 37px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 60px;
}

#progressBar {
    width: 100%;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    margin-top: 20px;
}

#progress {
    width: 0%;
    height: 10px;
    background-color: var(--text-prime-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tasks-container {
    margin: 10px 10px 0 0;

}

form {
    width: 100%;
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    padding: 16px;
    background: var(--text-color);
    border: 2px solid var(--text-prime-color);
    border-radius: 10px;
    outline: none;
    color: var(--primary-color);
}

button {
    width: 50px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 500;
    background-color: var(--text-prime-color);
    color: var(--text-color);
    cursor: pointer;
    outline: none;
}

#task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.taskItem {
    width: 100%;
    display: flex;
    padding: 10px;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--secondary-color);
}

.task {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: row;
}

.task p {
    margin: 0;
    max-width: 210px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.task input {
    width: 20px;
    height: 20px;
}

.completed p {
    text-decoration: line-through;
    color: var(--button-color);
}

.taskItem span {
    width: 24px;
    height: 24px;
    color: #D90429;
    margin: 0 6px;
    cursor: pointer;
}

@media (max-width: 820px) {
    .container-down {
        flex-direction: column;
        height: fit-content;
        width: fit-content;
    }

    .divider {
        display: none;
    }

    .stats-container, .tasks-container {
    width: 100%;
}

    .stats-container {
        margin: 0;
    }
} 