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

body {
    /* background:
        url("images/note-svgrepo-com.svg") repeat,
        linear-gradient(135deg, #0000ff 0%, #4e4eff 50%, #8989ff 100%);
    background-size:
        24px 24px,
        100%; */
    /* background: linear-gradient(135deg, #ebebff 0%, #ebebff 50%, #d8d8ff 100%); */
    min-height: 100vh;
    background-color: #efefea;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    overflow-x: hidden;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
}

/* Dark mode styles */
body.dark-mode {
    /* background:
        url("images/note-svgrepo-com.svg") repeat,
        linear-gradient(
            135deg,
            #000013 0%,
            #00003b 25%,
            #000076 50%,
            #0000b0 75%,
            #0000ff 100%
        );
    background-size:
        24px 24px,
        100%; */
    /* background: linear-gradient(135deg, #0000d8 0%, #0000c4 50%, #0000b0 100%); */

    min-height: 100vh;
    /* background-color: #44444f; */
    background-color: #1a1a1e;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

body.dark-mode .content {
    /* background-color: #181818; */
    background-color: #2f2f35;
    color: #ffffff;
}

body.dark-mode #textInput {
    background-color: #2f2f35;
    color: #ffffff;
}

body.dark-mode #textInput::placeholder {
    color: #aaaaaa;
}
body.dark-mode #textInput:focus {
    color: #ffffff;
}

.wrapper {
    width: 700px;
    justify-content: center;
}

/* Hamburger menu button */
.menu-toggle {
    position: sticky;
    top: 10px;
    left: 14px;
    z-index: 1000;
    background: #8989ff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #9d9dff;
    transform: scale(1.05);
}

/* Floating menu */
.side-menu {
    position: fixed;
    top: 60px;
    left: 10px;
    z-index: 999;
    pointer-events: none;
}

.side-menu.open {
    pointer-events: auto;
}

body.dark-mode .side-menu {
    color: #ffffff;
}

.menu-item {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    font-size: 16px;
    /* background: rgba(255, 255, 255, 0.2); */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(196, 196, 255, 0.1);
    padding: 4px 16px 4px 4px;
    border-radius: 34px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.8) translateX(-20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-item span {
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body.dark-mode .menu-item {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-item.show {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.menu-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .menu-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Toggle switch styles */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 40px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #8989ff;
    transition: 0.4s;
    border-radius: 34px;
}
.toggle-slider:hover {
    background-color: #9d9dff;
}
.toggle-slider:active {
    transform: scale(0.98);
}

.toggle-slider:before {
    position: absolute;
    content: "OFF";
    height: 32px;
    width: 32px;
    left: 4px;
    bottom: 4px;
    background-color: #ffffff;
    transition: 0.4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: #7676ff;
}

.theme-toggle input:checked + .toggle-slider {
    background-color: #8989ff;
}

.theme-toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
    content: "ON";
    color: #7676ff;
}
.input-wrapper {
    display: flex;
    justify-content: space-around;
}
#textInput {
    height: 44px;
    font-size: 16px;
    max-width: 100%;
    flex-grow: 1;
    border: 2px solid transparent;
    padding: 4px 4px 4px 1rem;
    border-radius: 40px;
    outline: none;
    transition: border-color 0.3s ease;
}

#textInput:focus {
    border-color: #8989ff;
}

.btn {
    border: none;
    padding: 2px;
    vertical-align: middle;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    background-color: #8989ff;
    transition: all 0.3s ease;
}
.btn:hover:not(.disabled) {
    background-color: #9d9dff;
    transform: scale(1.05);
}
.btn:active:not(.disabled) {
    transform: scale(0.95);
}
.btn.disabled {
    cursor: default;
}
.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}
.btn.disabled:active {
    transform: none;
    box-shadow: none;
}

.btn svg {
    vertical-align: middle;
}
.empty-btn,
.minus-btn {
    margin: 5px 10px 5px 0;
}
.clear-completed-btn {
    display: block;
    margin-left: 0;
}

.new-note-btn {
    display: block;
    margin-left: 0;
    width: 44px;
    height: 44px;
}
.new-note-btn svg {
    padding: 6px;
}

.lists-slider-container {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    max-width: 100%;
}
#lists-container {
    position: relative;
    display: flex;
    flex-grow: 1;
    align-items: center;
    gap: 10px;
}

.content {
    min-height: 200px;
    max-width: 100%;
    flex: 1;
    background-color: #ffffdd;
    margin-top: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    padding: 1em;
    border-radius: 24px;
}

.slider-nav {
    background-color: #8989ff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.slider-nav:hover:not(.disabled) {
    background-color: #9d9dff;
    transform: scale(1.05);
}

.slider-nav:active:not(.disabled) {
    transform: scale(0.95);
}

.slider-nav.disabled {
    opacity: 0;
    cursor: default;
}

body.dark-mode .slider-nav {
    background-color: #8989ff;
}

.pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 20px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #8989ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    transform: scale(1.4);
    background-color: #8989ff;
}

/* body.dark-mode .dot {
    background-color: #ffffff;
}

body.dark-mode .dot.active {
    background-color: #ffffff;
} */

.delete-list-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #8989ff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.delete-list-btn:hover {
    background-color: #9d9dff;
    transform: scale(1.05);
}

.content {
    position: relative;
}

.list-title {
    width: 100%;
    color: #dfdfe4;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    background: transparent;
    padding: 8px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid transparent;
    outline: none;
    color: inherit;
    transition: border-bottom-color 0.3s ease;
}

.list-title::placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.list-title:focus {
    border-bottom-color: #8989ff;
}

body.dark-mode .list-title {
    color: #ffffff;
}

body.dark-mode .list-title::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.item {
    width: 100%;
    font-size: 24px;
    display: flex;
    align-items: center;
    margin-bottom: 0.2em;
}

.item-text {
    position: relative;
    display: inline-block;
    overflow-wrap: anywhere;
}

.item.strikethrough .item-text {
    text-decoration: line-through;
    -webkit-text-decoration: line-through;
    -moz-text-decoration: line-through;
    animation: strikethrough 0.3s ease-out forwards;
}

@keyframes strikethrough {
    from {
        text-decoration: none;
        -webkit-text-decoration: none;
        -moz-text-decoration: none;
    }
    to {
        text-decoration: line-through;
        -webkit-text-decoration: line-through;
        -moz-text-decoration: line-through;
    }
}
@media only screen and (max-width: 768px) {
    .lists-slider-container {
        max-width: 90%;
    }

    .slider-nav {
        display: none !important;
    }

    #lists-container {
        touch-action: pan-y;
        user-select: none;
    }
}
@media only screen and (min-width: 769px) {
}
