/* Font Faces */
@font-face {
    font-family: pine;
    src: url("fonts/PineWords-xRZZR.ttf");
}

@font-face {
    font-family: lemon;
    src: url("fonts/LemonMilkLight-owxMq.otf");
}

/* Global Styling */
body {
    margin: 0;
    display: flex;
    font-family: lemon, sans-serif;
    background-color: #ffd5eb;
}

/* Sidebar */
.sidebar {
    width: 60px;
    background-color: #a71a65;
    color: white;
    transition: width 0.3s ease;
    overflow: hidden;
    height: 100vh;
}

.sidebar:hover {
    width: 210px;
    overflow: visible;
}

.logo-title {
    display: flex;
    align-items: center;
    padding: 10px;
    white-space: nowrap;
}

.logo-title img {
    height: 40px;
    margin-right: 10px;
}

.title {
    font-size: 1.5em;
    font-family: lemon;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .title {
    opacity: 1;
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
}

.menu a {
    width: 100%;
    text-decoration: none;
}

.menu button {
    font-family: pine;
    font-size: 1em;
    background: none;
    border: none;
    color: white;
    padding: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1em;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu button:hover {
    color: #A3BFFA;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu button span {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .menu button span {
    opacity: 1;
}

.menu button i {
    font-size: 1.2em;
}

/* Todo Editor Layout */
.maintext {
    margin-top: 60px;
    margin-left: 60px;
}

.content {
    width: 100%;
    overflow-x: scroll;
    scrollbar-width: none;
}

.content::-webkit-scrollbar {
    display: none;
}

/* Title and Change Button */
.titlecont {
    position: relative;
    top: 20px;
    display: flex;
    justify-content: center;
}

.titletext {
    width: 200px;
    height: 40px;
    text-align: center;
    font-family: lemon;
    font-size: 1.5em;
    color: white;
    background-color: #da3d93;
    border: 1px solid black;
    border-radius: 7px;
}

.titletext::placeholder {
    color: #ffd5eb;
}

.changebtn {
    margin-left: 15px;
    margin-top: 4px;
    width: 100px;
    height: 35px;
    padding: 0;
    border-radius: 20px;
    text-align: center;
}

/* Todo Container */
.todocont {
    margin: 50px 0 0 60px;
    width: 90%;
    min-width: 100vh;
    min-height: 80vh;
    height: fit-content;
    padding: 10px 10px 25px;
    background: linear-gradient(135deg, #bf1e76, #ffa4d6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.todoapp {
    width: 100%;
    max-width: 540px;
    background: #ffc7e6a0;
    padding: 40px 30px 70px;
    margin-top: 30px;
    border-radius: 10px;
}

.appcont {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
.todoapp h2 {
    color: #931056;
    display: flex;
    align-items: center;
    margin: 5px auto 20px;
}

.todoapp h2 i {
    margin-left: 10px;
}

/* Input Row */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f36dc8;
    border-radius: 30px;
    padding-left: 20px;
    margin-bottom: 25px;
}

#input-box {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px;
}

#input-box::placeholder {
    color: #482a3a;
}

#tag {
    border-radius: 10px;
    border: 0.5px solid black;
    background: #ff2fbd;
    width: 100px;
    margin-right: 10px;
}

#tag::placeholder {
    font-size: 1em;
    color: #482a3a;
}

.add {
    border: none;
    outline: none;
    padding: 16px 50px;
    background: #ff1281;
    color: #f1bbd9;
    font-size: 1em;
    border-radius: 40px;
    cursor: pointer;
}

/* Task List */
#list-container li {
    list-style: none;
    font-size: 1.5em;
    font-family: pine;
    color: #280418;
    padding: 12px 8px 12px 35px;
    position: relative;
    text-align: left;
    user-select: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#list-container li::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-image: url('imgs/unchecked.svg');
}

#list-container li.checked {
    color: #ff3b69;
    text-decoration: line-through;
}

#list-container li.checked::before {
    background-image: url('imgs/checked.svg');
}

.task-tag {
    margin-right: 10px;
    font-size: 0.9em;
    color: #610059;
    font-family: pine;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 22px;
    line-height: 40px;
    text-align: center;
    color: #610059;
    border-radius: 50px;
    cursor: pointer;
}

.close-btn:hover {
    background: #a71a65;
}

/* List Title Input */
#list-title {
    margin: 20px;
    height: 40px;
    font-size: 1.5em;
    border: 1px solid black;
    border-radius: 10px;
    background-color: #ff8aca;
    text-align: center;
}

/* Dropdown for Tag */
#list-container li select {
    cursor: pointer;
    color: #280418;
    background-color: rgb(255, 110, 187);
    border-radius: 20px;
    border: 0.5px solid #280418;
    margin-left: 10px;
    padding: 5px;
}

/* Scrollbar Customization */
.content::-webkit-scrollbar {
    display: none;
}

#list-container li::before {
    background-size: 24px;
}

/* Popup */
#popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 650px;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: scroll;
    background-color: rgb(255, 184, 244);
}

#popup-container::-webkit-scrollbar {
    display: none;
}
