:root {
    --foreground: #030213;
    --accent: #ffd6d6;
    --accent-dark: #ffb3b3;
    --mint: #c2dbf0;
    --mint-dark: #709aaa;
    --card: #ffffff;
}

.container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
}

* {
    user-select: none;
}

/* ---------- DARK MODE ---------- */
body.dark {
    background: var(--darkBG);
    color: whitesmoke;
}

body.dark .pixel-card {
    background: var(--dark2BG);
    color: whitesmoke;
}

body.dark p {
    color: whitesmoke;
}

body.dark .todo-list,
body.dark .todo-list * {
    color: #000 !important;
}

.todoList::-webkit-scrollbar-thumb {
    background: rgb(120, 104, 98);
    border-radius: 4px;
}

.todoList::-webkit-scrollbar-thumb:hover {
    background: rgb(76, 61, 51);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 4px solid var(--border);
    background: var(--background);
    position: sticky;
    top: 0;
    z-index: 10;
}

.pixel-title {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.pixel-subtitle {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.pixel-timer {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.pixel-text.small {
    font-size: 1rem;
}

.pixel-button {
    border: 3px solid rgba(0, 0, 0, 0.2);
    padding: 0.6rem 1rem;
    background: rgb(154, 142, 138);
    cursor: pointer;
    transition: 0.1s;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.pixel-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.pixel-button.small {
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
}

.pixel-card {
    background: var(--paper);
    border: var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;

    height: 50vh;
}

.small-card {
    min-width: 10vw;
    max-width: 30vw;
    max-height: 25vh;
    padding: 1rem;

    background: rgba(255, 255, 255, 0.6);
    border: var(--border);
    border-radius: 10px;
}

.mini-card {
    width: 2vw;
    padding: 1rem;
}

.large-card {
    width: 50vw;
    min-width: 10vw;
    max-width: 50vw;
    padding: 1rem;
    height: 60vh;
}

.notes-area {
    width: 95%;
    height: 45vh;

    max-width: 95%;
    max-height: 45vh;

    padding: 0.5rem;

    background: rgba(255, 255, 255, 0.46);
    border: var(--border);
    border-radius: 10px;
    user-select: text !important;
}

.todo-input {
    display: flex;
    gap: 0.5rem;
}

.todo-input input {
    flex: 1;
    padding: 0.6rem;

    background: rgba(255, 255, 255, 0.46);
    border: var(--border);
    border-radius: 10px;
}

.todo-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;

    max-height: 40vh;
    overflow-y: auto;
}

.todo-list::-webkit-scrollbar {
    width: 8px;
}

.todo-list::-webkit-scrollbar-thumb {
    background: rgb(151, 132, 125);
    border-radius: 4px;
    cursor: pointer;
}

.todo-list::-webkit-scrollbar-thumb:hover {
    background: rgb(113, 102, 99);
}

.todo-list::-webkit-scrollbar-track {
    background: transparent;
}

body.dark .todo-list::-webkit-scrollbar-thumb {
    background: rgb(221, 209, 188) !important;
}

body.dark .todo-list::-webkit-scrollbar-thumb:hover {
    background: rgb(151, 132, 125) !important;
}

::placeholder {
    font-family: 'Cortfont', serif;
    font-size: 1rem;
    color: #666;
    opacity: 1;
}

#todoInput, #textInput {
    font-family: 'Cortfont', serif;
    font-size: 1rem;
    color: #000;
    font-size: 1.1rem;
}

.todo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;

    background: rgba(255, 255, 255, 0.46);
    border: var(--border);
    border-radius: 10px;

    font-size: 1.1rem;
}

.todo-item {
    animation: fadeIn 0.3s ease;
}

.todo-item.completed span {
    text-decoration: line-through;
    opacity: 0.6;
}

.todo-item.completed {
    opacity: 0.6;
}

.todo-item.completed img[Alt="Complete"] {
    filter: grayscale(100%);
}

.todo-item.removing {
    animation: fadeOut 0.3s ease forwards;
}

.todo-buttons {
    display: flex;
    gap: 0.3rem;
}

.todo-buttons button {
    font-size: 0.6rem;
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    background: var(--button-bg);
    cursor: pointer;
    transition: transform 0.1s;
}

.todo-buttons button:hover {
    transform: scale(1.1);
}

.todo-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    padding: 0;
    transition: transform 0.1s ease, filter 0.1s ease;
}

.todo-icon:hover {
    transform: scale(1.1);
}

.todo-buttons {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.timer {
    text-align: center;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer {
    height: 10vh;
    text-align: center;
    padding: 1rem;
    border-top: 4px solid var(--border);
}

.selected-emojis {
    position: absolute;
    bottom: 80px;
    left: 10px;
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.pixel-input.small {
    width: 60px;
    text-align: center;
    border: 2px solid var(--button-bg, #ccc);
    border-radius: 6px;
    background: var(--card-bg, #fff);
    padding: 4px;
    color: inherit;
}
.timer-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.draggable {
    font-family: Cortfont, serif;
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 9999;
    user-select: none;
}

.drag-handle {
    background: var(--cortis-color);
    color: white;
    letter-spacing: 2px;
    text-align: center;
    font-weight: bold;
    padding: 6px;
    border-radius: 12px 12px 0 0;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

iframe {
    display: block;
    pointer-events: auto;
    border-radius: 0 0 12px 12px;
    width: 20vw;
}

.pixel-card {
    border-radius: 0 0 12px 12px;
}

.topbar-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pixel-button.small {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.play-btn {
    width: 40px;
    height: 40px;
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    outline: none;
    padding: 0;
}

.play-btn:hover {
    transform: scale(1.1);
}

.plus-btn {
    width: 20px;
    height: 20px;
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    outline: none;
    padding: 0;
}

.plus-btn:hover {
    transform: scale(1.1);
}

.items {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.items img {
    height: 20px;
    padding: 0;
}

#toggleSpotify,
#togglePomodoro {
    transition: opacity 0.3s ease;
}
.hidden {
    display: none;
}

#todoInput:focus,
.notes-area:focus {
    outline: none !important;
    box-shadow: none !important;
    border: var(--border);
}
