*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    padding: 0;
    margin: 0;
    overflow: hidden;
    font-family: "Courier New", monospace;
}

.todo_list_window {
    min-height: 3vmin;
    height: auto;
    max-height: 60vmin;
    overflow: hidden;
    backdrop-filter: blur(1.25rem) saturate(180%);
    background-color: rgba(255, 255, 255, 0.08);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0.8vmin 3.2vmin 0 rgba(0, 0, 0, 0.3);
}

.todo_content {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(60vmin - 3vmin - 4.5vmin);
}

.window_maximized .todo_content {
    max-height: calc(100vh - 3vmin - 4.5vmin);
}

.todo_content::-webkit-scrollbar {
    width: 0.375rem;
}
.todo_content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.todo_content::-webkit-scrollbar-thumb {
    background: rgba(255, 127, 80, 0.45);
    border-radius: 0.1875rem;
}
.todo_content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 127, 80, 0.7);
}

.dark_mode .todo_content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.dark_mode .todo_content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.todo_top_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8vmin 1.5vmin;
    height: 4.5vmin;
    width: 100%;
    border-bottom: 0.0625rem solid rgba(255, 127, 80, 0.35);
}

.dark_mode .todo_top_bar {
    border-bottom: 0.0625rem solid rgba(35, 25, 50, 0.15);
}

.todo_top_bar label {
    display: flex;
    flex: 1;
}

.todo_top_bar_add_name {
    position: relative;
    z-index: 10;
    cursor: text;
    width: 100%;
    height: 3vmin;
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5vmin;
    background: rgba(0, 0, 0, 0.25);
    color: #f9f9fb;
    padding: 0 1vmin;
    font-size: 1.4vmin;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.todo_top_bar_add_name:focus {
    border-color: coral;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0.8vmin rgba(255, 127, 80, 0.4);
}

.dark_mode .todo_top_bar_add_name:focus {
    border-color: #231932;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0.8vmin rgba(74, 65, 71, 0.6);
}

.todo_top_bar_add_name::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.todo_top_bar_add_button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3vmin;
    width: 5vmin;
    border-radius: 0.5vmin;
    margin-left: 1.5vmin;
    cursor: pointer;
    background: linear-gradient(135deg, coral, #ff4500);
    box-shadow: 0 0.3vmin 0.6vmin rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.dark_mode .todo_top_bar_add_button {
    background: linear-gradient(90deg, #231932, #0d091e);
}

.todo_top_bar_add_button::before {
    content: "+";
    color: white;
    font-size: 1.8vmin;
    font-weight: bold;
}

.todo_top_bar_add_button:hover {
    transform: translateY(-0.1vmin);
    box-shadow: 0 0.5vmin 1vmin rgba(35, 25, 50, 0.4);
    filter: brightness(1.15);
}

.dark_mode .todo_top_bar_add_button:hover {
    box-shadow: 0 0.5vmin 1vmin rgba(92, 44, 77, 0.4);
    filter: brightness(0.85);
}

.todo_top_bar_add_button:active {
    transform: translateY(0.1vmin);
    box-shadow: 0 0.2vmin 0.4vmin rgba(0, 0, 0, 0.2);
}

.todo_list_task {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.8vmin 1.5vmin;
    height: 4.5vmin;
    width: 100%;
    border-bottom: 0.0625rem solid rgba(255, 127, 80, 0.15);
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.dark_mode .todo_list_task {
    border-bottom: 0.0625rem solid rgba(35, 25, 50, 0.15);
}

.todo_list_task:hover {
    background-color: rgba(255, 255, 255, 0.07);
}

.task_animate_in {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(1vmin);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.todo_list_complete_and_name {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.todo_list_item_complete {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    margin-right: 1.5vmin;
    width: 2.2vmin;
    height: 2.2vmin;
    border-radius: 50%;
    flex-shrink: 0;

    background-color: rgba(255, 255, 255, 0.1);
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);


    transition: all 0.2s ease;
}

.todo_list_item_complete:hover {
    transform: scale(1.15);
    border-color: #38ef7d;
    background-color: rgba(56, 239, 125, 0.2);
}

.dark_mode .todo_list_item_complete:hover {
    border-color: #2e7d32;
    background-color: rgba(46, 125, 50, 0.2);
}

.todo_list_item_name {
    position: relative;
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.4vmin;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.todo_list_item_name::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0.15vmin;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease-in-out;
}

.task_completed {
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

.task_completed::after {
    width: 100%;
}

.todo_list_item_delete {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.2vmin;
    height: 2.2vmin;
    border-radius: 50%;
    cursor: pointer;
    background-color: rgba(255, 0, 0, 0.25);
    border: 0.0625rem solid rgba(255, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.todo_list_item_delete::before {
    content: "\00d7";
    color: white;
    font-size: 1.6vmin;
    font-weight: bold;
    line-height: 1;
}

.todo_list_item_delete:hover {
    transform: scale(1.15);
    background-color: rgba(255, 0, 0, 0.7);
    box-shadow: 0 0 0.8vmin rgba(255, 0, 0, 0.6);
}