:root {
    --primary-color: #dbdbd4;

    --light-color: #F0F4F9;
    --dark-color: #20212E;
}

* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-decoration: none;
}

body {
    background-color: #f3af60;
    color: black;
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    scrollbar-width: 0px;
    overflow: hidden;
}

body:has(.dashboard) {
    overflow: scroll;
    align-items: unset;
    padding-top: 10%;
}

body::-webkit-scrollbar {
    display: none;
}

.main {
    width: 80%;
    height: auto;
}

.editor-wrapper {
    position: relative;
    border-radius: 12px;
}

.editor-wrapper .ql-toolbar {
    border-radius: 12px 12px 0 0;
}

.editor-wrapper #editor {
    border-radius: 0 0 12px 12px;
}

button:hover .ql-stroke,
.ql-picker-label:hover .ql-stroke {
    fill: none;
    stroke: var(--primary-color) !important;
}

.ql-active .ql-stroke {
    fill: none;
    stroke: var(--primary-color) !important;
}

button:hover .ql-fill,
.ql-picker-label:hover .ql-fill {
    fill: var(--primary-color) !important;
    stroke: none;
}

.ql-active .ql-fill {
    fill: var(--primary-color) !important;
    stroke: none;
}

.ql-toolbar .ql-stroke {
    fill: none;
    stroke: #908EA9;
}

.ql-toolbar .ql-fill {
    fill: #908EA9;
    stroke: none;
}

.ql-toolbar .ql-picker {
    color: #908EA9;
}

.ql-toolbar.ql-snow {
    border: none;
    background-color: var(--light-color);
}

.ql-container.ql-snow {
    border: none;
    background-color: var(--light-color);
}

.ql-editor {
    min-height: 50dvh;
    max-height: 50dvh;
}

.editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 20px;
}

.editor-footer-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 20px;
}

.note-type {
    display: flex;
    align-items: center;
}

.note-type label {
    font-size: 14px;
    margin-right: 10px;
    color: var(--primary-color);
}

.submit-btn {
    background-color: #575AC6;
    border: none;
    color: white;
    font-weight: 400;
    padding: 6px 30px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.submit-btn:hover {
    background-color: #5054bb;
}

footer {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    gap: 16px;
    justify-content: center;
}

footer a {
    color: #626177;
    text-decoration: none;
    font-size: 12px;
}

header {
    margin-bottom: 12px;
}

.login-actions {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #343644;
    padding-bottom: 10px;
}

.login-actions a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: all .2s ease-in-out;
}

.login-actions a:hover {
    background-color: #262736;
}

main.dashboard {
    width: 80%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title {
    font-weight: 400;
}

.section-header-actions {
    display: flex;
    gap: 12px;
}

.section-header-actions a {
    color: var(--primary-color);
    background-color: #262838;
    border: 1px solid rgba(197, 196, 220, 0.138);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.list-notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    /* overflow-y: scroll; */
    padding-right: 10px;
}

.list-notes::-webkit-scrollbar {
    width: 10px;
}

.list-notes::-webkit-scrollbar-track {
    width: 10px;
}

.list-notes::-webkit-scrollbar-thumb {
    background-color: #242631;
    border-radius: 10px;
}

.list-notes .note {
    display: flex;
    justify-content: space-between;
    min-height: 26px;
    background-color: #242631;
    padding: 10px 26px;
    border-radius: 8px;
    border: 1px solid rgba(197, 196, 220, 0.1);
    transition: all .2s ease-in-out;
}

.list-notes .note:hover {
    background-color: #343644;
    border: 1px solid rgba(197, 196, 220, 0.13);
}

.list-notes .note .note-stats {
    display: flex;
    gap: 6px;
    align-items: center;
}

.list-notes .note .note-stats span {
    color: rgba(197, 196, 220, 0.5);
}

.note-stats-purchase {
    color: rgb(233, 233, 165);
}

.list-notes .note .note-details {
    display: flex;
    gap: 12px;
    align-items: center;
}

.list-notes .note .note-details span {
    color: var(--primary-color);
}

.note-details-date {
    font-size: 12px;
}

.list-notes .note .note-details a {
    color: white;
    margin-left: 6px;
}


.right {
    margin-left: auto;
}



body {
    font-family: Arial, sans-serif;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #3498db;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    z-index: 1000;
    top: 100%;

    background: rgba(36, 38, 51, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(197, 196, 220, 0.138);
    padding: 10px;
    flex-direction: column;
    gap: 8px;
}

.dropdown-content a {
    cursor: pointer;
    color: var(--primary-color);
    padding: 4px 16px;
    text-decoration: none;
    display: block;
    border-radius: 4px;
}

.dropdown-content a:hover {
    background-color: #343644;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown:hover .dropbtn {
    background-color: #2980b9;
}

hr {
    background-color: #343644;
}

.editor-footer-view {
    color: var(--primary-color);
    font-size: 13px;
}

.view-note {
    height: 80dvh;
}

.view-note .ql-editor {
    height: 100%;
    max-height: 100%;
}


.view-note .ql-editor::-webkit-scrollbar {
    width: 10px;
}

.view-note .ql-editor::-webkit-scrollbar-track {
    width: 10px;
}

.view-note .ql-editor::-webkit-scrollbar-thumb {
    background-color: #242631;
    border-radius: 10px;
}

.list-gifts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.list-gifts .gift {
    display: flex;
    flex-direction: column;
    height: 100px;
    background-color: #242631;
    padding: 20px 26px;
    border-radius: 8px;
    border: 1px solid rgba(197, 196, 220, 0.1);
    transition: all .2s ease-in-out;
}

.list-gifts .gift:hover {
    background-color: #272935;
    border: 1px solid rgba(197, 196, 220, 0.13);
}

.list-gifts .gift-title {
    font-weight: 500;
}

.list-gifts .gift-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-gifts .gift-bottom a {
    color: var(--primary-color);
    background-color: #262838;
    border: 1px solid rgba(197, 196, 220, 0.138);
    padding: 4px 12px;
    font-size: 14px;
    border-radius: 6px;
    transition: all .2s ease-in-out;
}

.gift-bottom a:hover {
    background-color: #2c2d3d;
}


.editor-paywall {
    position: absolute;
    inset: 0;

    background: rgba(36, 38, 51, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.editor-paywall-timer {
    display: flex;
    gap: 8px;
}

.editor-paywall-timer>div {
    border: 1px solid rgba(197, 196, 220, 0.138);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 10px 10px;
}

.editor-paywall-timer>div span {
    font-weight: 900;
    font-size: 32px;
}

.editor-paywall-timer>div p {
    margin: 0;
}

.pri-btn {
    background-color: #575AC6;
    border: none;
    color: white;
    font-weight: 400;
    padding: 6px 30px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.pri-btn:hover {
    background-color: #5054bb;
}



.sec-btn {
    color: var(--primary-color);
    background-color: #262838;
    border: 1px solid rgba(197, 196, 220, 0.138);
    padding: 4px 12px;
    font-size: 14px;
    border-radius: 6px;
    transition: all .2s ease-in-out;
    outline: none;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 30000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    width: 40%;
    background: rgba(36, 38, 51, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(197, 196, 220, 0.138);
    padding: 20px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-inner {
    display: flex;
    flex-direction: column;
    padding-top: 32px;
}

.modal-inner>* {
    width: fit-content;
}

.purchase-modal-input {
    margin-bottom: 14px;
    color: var(--primary-color);
    background-color: #262838;
    border: 1px solid rgba(197, 196, 220, 0.138);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    height: 32px;
    outline: none;
    width: auto;
}



.editor-footer-left {
    flex: 1 1 60%;
}

.title-input {
    color: var(--primary-color);
    background-color: var(--light-color);
    border: 1px solid rgba(197, 196, 220, 0.138);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    height: 32px;
    outline: none;
    width: -webkit-fill-available;
}

@media screen and (max-width: 580px) {
    .editor-footer {
        flex-wrap: wrap;
    }

    .editor-footer-left {
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 1100px) {
    .list-gifts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 540px) {
    .list-gifts {
        grid-template-columns: 1fr;
    }
}

.notification {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    height: 40px;
    background-color: #242631;
    padding: 10px 26px;
    border-radius: 8px;
    border: 1px solid rgba(197, 196, 220, 0.1);
    z-index: 5000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    animation: notification 5s ease-in-out .3s;
}

.notification .notification-button {
    cursor: pointer;
    background-color: #272935;
    padding: 4px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid rgba(197, 196, 220, 0.1);
}

@keyframes notification {
    0% {
        top: -50px;
    }

    10% {
        top: 4%;
    }

    90% {
        top: 4%;
    }

    100% {
        top: -50px;
    }
}

.faq-section {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-section .faq-question {
    background-color: #20212E;
    padding: 10px 16px;
    border-radius: 8px 8px 0 0;
}

.faq-section .faq p {
    background-color: #262838;
    margin: 0;
    padding: 16px;
    border-radius: 0 0 8px 8px;
    color: #c5c4dc;
}


@media screen and (max-width: 800px) {
    .faq-section {
        grid-template-columns: 1fr;
    }
}

.night-mode {
    display: flex;
    align-items: center;
    padding: 5px;
    transition: all .5s;
    width: 70px;
    background-color: rgb(93 144 196);
    border: 2px solid white;
    border-radius: 50px;

    img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        border-radius: 50%;
        cursor: pointer;
        padding: 2px;
    }

    img:first-child {
        background-color: black;
    }

    img:last-child {
        margin-left: auto;
        background-color: rgb(93 144 196);
    }
}

body.dark-mode {
    background-color: #191A23;
    color: white;

    .night-mode {
        background-color: #000000;
    }

    .ql-toolbar.ql-snow {
        background-color: var(--dark-color);
    }

    .ql-container.ql-snow {
        background-color: var(--dark-color);
    }

    .title-input {
        background-color: var(--dark-color);
    }
}