
    :root {
        --bg: #121212;
        --card-bg: #1e1e1e;
        --fg: #e0e0e0;
        --accent: #bb86fc;
        --accent-hover: #9a66e0;
    }

    * {
        box-sizing: border-box;
    }

    body {
        font-family: Arial, sans-serif;
        background: var(--bg);
        color: var(--fg);
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100vh;
        padding: 1rem;
        position: relative;
        font-size: 1.15rem;
    }

    h1 {
        margin-bottom: 1rem;
        color: var(--accent);
        margin-top: -44px;
    }

    #controls {
        display: none;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    button,
    #new-quest {
        padding: 0.5rem;
        border: none;
        border-radius: 4px;
        background: var(--card-bg);
        color: var(--fg);
        cursor: pointer;
        font-size: 1.15rem;
    }

    button:hover {
        background: var(--accent-hover);
        color: var(--bg);
    }

    #new-quest {
        width: 100%;
        max-width: 850px;
        margin-bottom: 1.2rem;
    }

    #quest-list {
        list-style: none;
        padding: 0;
        width: 100%;
        max-width: 850px;
    }

    .quest-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--card-bg);
        padding: 0.5rem;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }

    .quest-item.completed {
        opacity: 0.5;
    }

    .quest-item.completed select {
        appearance: none;
        cursor: default;
        pointer-events: none;
    }

    .quest-text {
        flex: 1;
        margin: 0 0.5rem 0 0.6rem;
        overflow-wrap: break-word;
        text-align: left;
    }

    .quest-text.completed {
        text-decoration: line-through;
    }

    .focused-quest {
        border: var(--accent) solid 2px;
    }

    .focused-quest-bg {
        background: rgb(107, 12, 196);
    }

    .selector-button {
        position: relative;
        min-width: 100px;
        min-height: 35px;
        height: 100%;
        left: 5px;
        justify-content: left;
        margin-right: 12px;
    }

    .timer-input {
        right: 2rem;
        width: 120px;
        top: -2rem;
    }

    .quest-timer-holder.hidden {
        display: none;
    }

    #quest-timer-holder-holder {
        display: flex;
        position: sticky;
        top: 1rem;
        margin-left: 0;
        margin: 0;
        left: 0;
        align-items: flex-start;
        flex-direction: row;
        width: 100%;
        height: 100%;
        padding: 2px;
        text-align: center;
        z-index: 100;
        height: 25px;
        box-sizing: content-box;
    }

    #quest-timer-holder {
        position: fixed;
        background-color: #222;
        border-radius: 3px;
        padding: 3px 5px 5px 5px;
        width: 150px;
        height: 200px;
        border: var(--accent) solid 2px;
        box-sizing: border-box;
    }

    #quest-timer {
        right: 5px;
        position: absolute;
        font-size: 24px;
    }

    .round-timer {
        margin: 20px;
        display: inline-block;
        position: relative;
        width: 100px;
        height: 100px;
        background: conic-gradient(#ddd 0%, #ddd 100%);
        border-radius: 50%;
        line-height: 100px;
        font-size: 20px;
        color: white;
        text-align: center;
    }

    select {
        appearance: none;
        background: var(--bg);
        color: var(--fg);
        border: 1px solid var(--accent);
        border-radius: 4px;
        padding: 0.35rem;
        margin-right: 0.5rem;
        font-size: 1rem;
    }

    select:hover {
        border: 1px solid lightpink !important;
    }

    .priority-sel {
        text-align: center;
        font-size: 1.4rem;
        padding: .1rem;
    }

    .category-sel:hover {
        opacity: 0;
        /*mix-blend-mode: hard-light;*/
    }

    .category-sel:focus {
        background-color: black;
    }

    select.category-sel {
        background-color: var(--bg);
    }

    option.category-sel {
        background-color: var(--bg);
    }

    #delete-controls {
        display: none;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    #select-all {
        transform: scale(1.2);
        margin-right: 0.25rem;
    }

    #delete-selected {
        background: #b00020;
    }

    #delete-selected:hover {
        background: #cf1333;
    }

    div:has(#sort-button) {
        position: relative;
        width: 890px;
        max-width: 900px;
        margin: -10px;
    }

    #hide-button,
    #separator-button,
    #sort-button,
    #date-button,
    #focus-category-button,
    #calendar-button .repeatable-button {
        padding: 0.30rem;
        padding-left: 0.9rem;
        color: var(--fg);
        cursor: pointer;
        font-size: 1rem;
        background: var(--bg);
        border: 1px solid #8886ff;
        border-radius: 4px;
    }

    #separator-button {
        align-items: center;
        padding: 10px 0 10px 0;
        margin: 4px 25px 4px 25px;
        border: 1px solid grey;
        height: 30px;
        cursor: default;
    }

    /* #sort-button {
        top: 10px;
    } */

    #hide-button,
    #date-button,
    #calendar-button,
    .repeatable-button {
        padding-left: 0.60rem;
        padding-right: 0.60rem;
    }

    #deadline-picker {
        padding: 0.5rem;
        font-size: 1rem;
        border-radius: 6px;
        border: 1px solid #555;
        background-color: #1f1f1f;
        color: #e0e0e0;
        width: 100px;
        display: flex;
    }

    #deadline-picker.hide-dates {
        max-width: 38px;
        padding-right: .3rem;
        padding-left: .3rem;
        align-items: center;
        text-align: center;
    }

    .starred-button {
        margin-left: .2rem;
        height: 2rem;
        vertical-align: middle;
        top: 50%;
        left: 50%;
        padding-bottom: -50px;
        color: gold;
        background-color: initial;
        cursor: default;
        appearance: auto;
        box-sizing: border-box;
        margin: 3px .2rem 3px .4rem;
        padding: initial;
        border: initial;
        width: 1.5rem;
        justify-content: center;
        justify-items: center;
    }

    .blue {
        color: #55aaff;
    }

    #deadline-picker.late {
        border: 1.5px solid #f30;
        background-color: #220804;
    }

    #deadline-picker.hide-dates.late {
        border: 1.5px solid #f30;
        background-color: #220804;
    }

    .repeatable-button {
        height: 30px;
        width: 30px;
        max-height: 30px;
        display: flex;
        justify-content: center;
        /* Centers horizontally */
        align-items: center;
        margin-right: 6px;
    }

    .color-placeholder-orange::placeholder {
        color: orange;
    }

    .color-placeholder-yellow::placeholder {
        color: yellow;
    }

    .color-placeholder-lime::placeholder {
        color: #af0;
    }

    .color-placeholder-white::placeholder {
        color: white;
    }

    .color-placeholder-gray::placeholder {
        color: #ccf;
    }

    input[type="file"] {
        display: none;
    }
