@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

/* ================= LOADING SCREEN ================= */

#loadingScreen{
    position: fixed;
    inset: 0;
    z-index: 999;

    background: rgba(255, 245, 238, 0.95);
    backdrop-filter: blur(10px);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 1;
    visibility: visible;

    transition: 0.5s ease;
}

.loading-content{
    width: 350px;

    padding: 30px;

    border-radius: 30px;

    background: rgba(255,255,255,0.6);

    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.loading-content img{
    width: 120px;
    margin-bottom: 15px;
}

.loading-content h1{
    font-size: 2rem;
    color: #ff9f7f;
}

.loading-content p{
    margin-top: 10px;
    color: #666;
}

.loading-bar{
    width: 100%;
    height: 12px;

    margin-top: 20px;

    border-radius: 20px;
    overflow: hidden;

    background: #eee;
}

.loading-fill{
    width: 0%;
    height: 100%;

    background: linear-gradient(
        to right,
        #ffb38a,
        #8fd6d6,
        #ffc9de
    );

    animation: loading 3s forwards;
}

@keyframes loading{
    to{
        width: 100%;
    }
}

body{
    width: 100%;
    height: 100vh;

    overflow-x: hidden;

    position: relative;

    background: url("backgroundideas.png");
    background-size: cover;
    background-position: center;

    color: #4b3b36;
}

body::before{
    content: "";

    position: fixed;
    inset: 0;

    background: rgba(255,255,255,0.50);

    backdrop-filter: blur(2px);

    z-index: 0;

    pointer-events: none;
}




/* ================= MAIN CONTAINER ================= */

.container{
    width: 100%;
    height: 100vh;

    display: flex;
    gap: 25px;

    padding: 25px;
}



/* ================= SIDEBAR ================= */

.sidebar{
    width: 320px;
    height: 100%;

    padding: 25px;

    border-radius: 35px;

    background: rgba(255,255,255,0.35);

    backdrop-filter: blur(12px);

    border: 2px solid rgba(255,255,255,0.4);

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column;
    gap: 25px;
}

.logo-area h1{
    font-size: 2rem;
    color: #ff9f7f;
}

.logo-area p{
    color: #666;
}


/* BUTTONS */

.menu-buttons{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-buttons button{
    padding: 14px;

    border: none;
    border-radius: 18px;

    background: rgba(255,255,255,0.7);

    color: #4b3b36;

    font-size: 1rem;
    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.menu-buttons button:hover{
    transform: translateY(-3px);

    background: #ffd9c8;
}



/* CLOCK */

.clock-widget{
    padding: 20px;

    border-radius: 25px;

    background: rgba(255,255,255,0.55);

    text-align: center;
}

#clock{
    font-size: 2.2rem;
    color: #ff9f7f;
}

#date{
    margin-top: 8px;
    color: #666;
}



/* PROGRESS */

.progress-widget{
    padding: 20px;

    border-radius: 25px;

    background: rgba(255,255,255,0.55);
}

.progress-widget h3{
    margin-bottom: 15px;
}

.progress-bar{
    width: 100%;
    height: 18px;

    border-radius: 20px;
    overflow: hidden;

    background: #eee;
}

.progress-fill{
    width: 40%;
    height: 100%;

    border-radius: 20px;

    background: linear-gradient(
        to right,
        #8fd6d6,
        #ffc9de
    );
}



/* MUSIC PLAYER */

.music-player{
    padding: 20px;

    border-radius: 25px;

    background: rgba(255,255,255,0.55);
}

.music-controls{
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 15px;
}

.music-controls button{
    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    cursor: pointer;

    background: #ffd9c8;

    transition: 0.3s;
}

.music-controls button:hover{
    transform: scale(1.08);
}



/* ================= MAIN WINDOW ================= */

.main-window{
    flex: 1;

    padding: 30px;

    border-radius: 35px;

    background: rgba(255,255,255,0.35);

    backdrop-filter: blur(12px);

    border: 2px solid rgba(255,255,255,0.4);

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    overflow-y: auto;
}



/* QUOTE */

.quote-section{
    padding: 20px;

    border-radius: 25px;

    background: rgba(255,255,255,0.5);

    margin-bottom: 25px;

    text-align: center;

    font-style: italic;
}



/* TASK SECTION */

.task-section h2,
.done-section h2{
    margin-bottom: 20px;
}

#taskContainer,
#doneContainer{
    display: flex;
    flex-direction: column;
    gap: 18px;
}



/* TASK CARD */

.task-card{
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px;

    border-radius: 25px;

    background: rgba(255,255,255,0.7);

    transition: 0.3s;
}

.task-card:hover{
    transform: translateY(-4px);
}

.task-left{
    display: flex;
    align-items: center;
    gap: 18px;
}

.task-left input{
    width: 24px;
    height: 24px;

    accent-color: #ff9f7f;
}

.task-info h3{
    margin-bottom: 5px;
}

.task-info p{
    color: #666;
}

.task-info span{
    display: inline-block;
    margin-top: 8px;

    font-size: 0.9rem;
}



/* STATUS */

.task-status{
    padding: 10px 18px;

    border-radius: 20px;

    font-size: 0.9rem;
    font-weight: bold;
}

.near-deadline{
    background: #ffc9de;
    color: #8b3d5c;
}



/* DONE SECTION */

.done-section{
    margin-top: 35px;
}



/* ================= MODAL ================= */

#taskModal{
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.3);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.modal-content{
    width: 420px;

    padding: 30px;

    border-radius: 30px;

    background: #fff7f1;

    display: flex;
    flex-direction: column;
    gap: 15px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-content h2{
    text-align: center;
    color: #ff9f7f;
}

.modal-content input,
.modal-content textarea{
    padding: 15px;

    border: none;
    border-radius: 18px;

    background: rgba(255,255,255,0.8);

    resize: none;

    outline: none;
}

.modal-buttons{
    display: flex;
    gap: 15px;
}

.modal-buttons button{
    flex: 1;

    padding: 14px;

    border: none;
    border-radius: 18px;

    cursor: pointer;

    background: #ffd9c8;

    transition: 0.3s;
}

.modal-buttons button:hover{
    transform: translateY(-3px);
}



/* ================= POPUP ================= */

#customPopup{
    position: fixed;

    top: 30px;
    right: 30px;

    z-index: 999999;

    padding: 18px 25px;

    border-radius: 20px;

    background: rgba(255, 245, 238, 0.98);

    backdrop-filter: blur(10px);

    border: 2px solid rgba(255,255,255,0.5);

    color: #4b3b36;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    animation: popupFade 0.3s ease;

    opacity: 1;
}

@keyframes popupFade{

    from{
        opacity: 0;
        transform: translateY(-15px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}



/* ================= UTILITIES ================= */

.hidden{
    display: none !important;
}

.medium-deadline{
    background: #ffe0b3;
    color: #9b6500;
}

.safe-deadline{
    background: #c8f1f1;
    color: #246b6b;
}

/* FIX LAYER */
.container{
    position: relative;
    z-index: 2;
}

/* MUSIC TITLE */

.song-title{
    margin-top: 15px;

    text-align: center;

    font-size: 0.9rem;

    color: #666;

    word-break: break-word;
}



/* AUDIO */

audio{
    display: none;
}



/* SCROLLBAR */

.main-window::-webkit-scrollbar{
    width: 10px;
}

.main-window::-webkit-scrollbar-thumb{
    background: #ffd9c8;

    border-radius: 20px;
}



/* BETTER TASK CARD */

.task-card{
    border: 2px solid rgba(255,255,255,0.35);
}



/* DONE TASK */

#doneContainer .task-card{
    opacity: 0.75;
}

/* ================= TASK RIGHT ================= */

.task-right{
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ================= TASK ACTION BUTTONS ================= */

.task-actions{
    display: flex;
    gap: 10px;
}

.task-actions button{
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 12px;

    cursor: pointer;

    font-size: 1rem;

    background: rgba(255,255,255,0.8);

    transition: 0.3s;
}

.task-actions button:hover{
    transform: scale(1.08);
}

/* EDIT BUTTON */

.edit-btn{
    color: #246b6b;
}

.edit-btn:hover{
    background: #c8f1f1;
}

/* DELETE BUTTON */

.delete-btn{
    color: #8b3d5c;
}

.delete-btn:hover{
    background: #ffc9de;
}