html, body {
    font-family: 'Manrope', sans-serif !important;
    background-color: #FEFCF1;
}


:root {
    --light-green: #D1FCE8;
    --primary-green: #7BF2AA;
    --secondary-green: #446C58;
    --light-lavendar: #D3CCFC;
    --primary-lavendar: #A78CFB;
    --secondary-lavendar: #58446C;
    --light-red: #FCD1D1;
    --primary-red: #F48E8E;
    --secondary-red: #744848;
    --light-blue: #CBEDFF;
    --primary-blue: #88C1FF;
    --secondary-blue: #485D74;
}

.title{
    font-size: 48px ;
    font-weight: 800;
}

.title, .note-header,h1,h2,h3 {
    font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
}

h1 {
    font-size: 36px ;
    font-weight: 700;
}

h2 {
    font-size:  20px ;
    font-weight: 500;
}

h3 {
    font-size: 20px ;
    font-weight: 600;
    margin: 0;
}

p, div, .std-text {
    font-family: 'Manrope', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 19.5px;
    color: #646557;
}

.sub-header {
    font-family: 'Manrope', Georgia, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: 13px;
}

.note-header {
    font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    font-style: italic;
}

.lil-text{
    font-family: 'Manrope', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 200;
    font-size: 12px;
}

.primary-btn {
    min-width: 150px;
    padding: 13px 20px;
    background-color: #69663C;
    color: #FEFCF1;
    border: none;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.primary-btn:hover:not(:disabled) {
    background-color: #4a4726;
    box-shadow: 0 6px 18px rgba(105, 102, 60, 0.3);
    transform: translateY(-1px);
}

.primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


.secondary-btn {
    min-width: 150px;
    padding: 12px 20px;
    background: rgba(105, 102, 60, 0.06);
    color: #69663C;
    border: 1.5px solid rgba(105, 102, 60, 0.18);
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.secondary-btn:hover {
    background: rgba(105, 102, 60, 0.12);
    box-shadow: 0 4px 12px rgba(105, 102, 60, 0.15);
    transform: translateY(-1px);
}


.note{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 12px;
    isolation: isolate;
    width: 275px;
    height: 250px;
    background: #EAE4B1;
    box-shadow: 0px 10px 30px rgba(55, 57, 44, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.note:hover {
    background: #EAE4B1;
    box-shadow: 0px 15px 40px rgba(55, 57, 44, 0.12);
}

    .note:nth-child(2n + 1) {
        transform: rotate(0.75deg);
    }
    .note:nth-child(2n + 2) {
        transform: rotate(-0.75deg);
    }

        .note:nth-child(4n + 1) {
        background-color: #EAE4B1;
    }
    .note:nth-child(4n + 2) {
        background-color: #FAE2EA;
    }
    .note:nth-child(4n + 3) {
        background-color: #d1f3fc;
    }
    .note:nth-child(4n + 4) {
        background-color: #D3CCFC;
    }

.folder{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 12px;
    width: 150px;
    height: 125px;
    background: rgba(234, 228, 177, 0.4);
    border-radius: 24px;
}

.folder-header{
    font-family: 'Newsreader', Arial, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 28px;
    font-weight: 300;
    transition: box-shadow 0.3s ease-in-out;
}

.folder:hover {
    background: rgba(234, 228, 177, 0.8);
    box-shadow: 0px 10px 30px rgba(55, 57, 44, 0.1);
    cursor: pointer;
}

    .folder:nth-child(4n + 1) {
        background-color: rgba(234, 228, 177, 0.4);
    }
    .folder:nth-child(4n + 2) {
        background-color: rgba(250, 226, 234, 0.4);
    }
    .folder:nth-child(4n + 3) {
        background-color: rgba(209, 243, 252, 0.4);
    }
    .folder:nth-child(4n + 4) {
        background-color: rgba(211, 204, 252, 0.4);
    }

.project{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 24px;

    max-width: 699.5px;
    min-width: 400px;
    min-height: 150px;

    background: #FBFAEC;
    border: 1px solid rgba(231, 229, 228, 0.5);
    box-shadow: 10px 10px 30px #D7D6CD, -10px -10px 30px #FFFFFF;
    border-radius: 16px;
}

.project-days-left{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 12px;

    width: 168px;
    height: 38px;

    background: rgba(80, 75, 239, 0.1);
    border-radius: 9999px;
}

.icon-btn{
    border-radius: 999px;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn-primary{
    border: 1px solid rgba(105, 102, 60, 0.3);
    background: #69693C;
    color: white;
}

.icon-btn-reminder{
    border: 1px solid rgba(246, 122, 223, 0.9);
    background: rgba(246, 122, 223, 0.2);
}

.icon-btn-task{
    border: 1px solid rgba(80, 75, 239, 0.9);
    background: rgba(80, 75, 239, 0.2);
}

.icon-btn-project{
    border: #FFB249 solid 1px;
    background: #ffb34934;
}

    .icon-btn-reminder:hover {
        box-shadow: 0 14px 24px rgba(246, 122, 223, 0.3);
    }

    .icon-btn-task:hover {
        box-shadow: 0 14px 24px rgba(80, 75, 239, 0.3);
    }

    .icon-btn-project:hover {
        box-shadow: 0 14px 24px rgba(255, 178, 73, 0.3);
    }

    .icon-btn:hover {
        transform: translateY(-1px);
    }

h1:focus {
    outline: none;
}


/* -------------------------- MISC -------------------------- */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: rgb(207, 131, 131);
}

#blazor-error-ui {
    background: rgb(223, 126, 126);
    display: flex;
    gap: 5px;
    color: black;
    border-radius: 5px;
    margin: 5px;
    left: 0;
    width: fit-content;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    z-index: 1000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: black;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #706C40;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.event {
    padding: 4px;
    margin: 2px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
}

.eventTask {
    background-color: var(--primary-green);
    font-weight: bold;
}

.eventReminder {
    background-color: var(--primary-red);
    font-weight: bold;
}

.icon {
    height: 26px;
    width: 26px;
    padding: 2px;
    border-radius: 100px;
    align-content: center;
    text-align: center;
}

.icon-button {
    display: inline-flex;
    padding: 8px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(186, 186, 169, 0.3);
    background: rgba(255, 252, 245, 0.95);
    border-radius: 999px;
    width: 46px;
    height: 46px;
    font-size: 2rem;
    line-height: 1;
    color: #6f6847;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

    .icon-button:hover {
        transform: translateY(-1px);
        background: white;
        box-shadow: 0 14px 24px rgba(95, 87, 55, 0.08);
    }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding: 0.75rem;
    border: 1px solid #d8d2eb;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
}

.toolbar button {
    min-width: 0;
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--primary-lavendar);
    background: white;
    color: var(--secondary-lavendar);
}

.toolbar button:hover {
    background: var(--light-lavendar);
}


/* ----------------------------------------- NOTE EDITOR --------------------------------------------- */
.note-editor{
        /* Background+Shadow */
    padding: 0px;
    max-width: 860px;
    background: #FBFAEC;
    box-shadow: 0px 15px 60px rgba(55, 57, 44, 0.08);
    transform: rotate(0.2deg);
    border: 1px solid #d8d2eb;
    width: 100%;
    z-index: 0;
    margin: 0 auto;
}

.top-line{
    height: 50px;
    background-color: #E9E9D7;
}

.note-editor-page {
    max-width: 1020px;
    margin: 0 auto;
    width: 100%;
    padding: 0.25rem 0.4rem 2.5rem;
}

.note-editor-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.4rem;
}

.note-editor-breadcrumb {
    color: rgba(105, 102, 60, 0.65);
    font-size: 14px;
    font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
}

.note-editor-breadcrumb-current {
    color: rgba(105, 102, 60, 0.85);
    font-weight: 600;
}

.note-editor-breadcrumb-sep {
    padding: 0 0.4rem;
    opacity: 0.7;
}

.note-editor-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.note-editor-cloud-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(186, 186, 169, 0.45);
    background: rgba(255, 252, 245, 0.85);
    border-radius: 999px;
    color: rgba(105, 102, 60, 0.85);
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    user-select: none;
}

.note-editor-cloud-icon {
    width: 16px;
    height: 16px;
}

.note-editor-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(186, 186, 169, 0.35);
    background: rgba(255, 252, 245, 0.75);
    color: rgba(105, 102, 60, 0.85);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.note-editor-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.note-editor-icon-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 24px rgba(95, 87, 55, 0.08);
}

.note-editor-save-btn {
    border: 0;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: #6e6a3f;
    color: #fff;
    font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(95, 87, 55, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.note-editor-save-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 16px 26px rgba(95, 87, 55, 0.18);
}

.note-editor-toolbar-wrap {
    display: flex;
    justify-content: center;
    padding: 0.4rem 0.4rem 1rem;
}

.note-editor-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(186, 186, 169, 0.35);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 40px rgba(95, 87, 55, 0.08);
    backdrop-filter: blur(10px);
}

.note-editor-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: rgba(73, 70, 45, 0.9);
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.note-editor-toolbar-btn:hover {
    background: rgba(186, 186, 169, 0.18);
    transform: translateY(-1px);
}

.note-editor-toolbar-btn.is-active {
    background: rgba(110, 106, 63, 0.12);
    color: rgba(73, 70, 45, 1);
}

.note-editor-toolbar-text {
    font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
}

.note-editor-toolbar-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.note-editor-toolbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(186, 186, 169, 0.5);
    margin: 0 0.2rem;
}

.note-editor-surface {
    padding: 0.2rem 0.4rem 0.8rem;
}

.note-editor-paper {
    border: 0;
    overflow: hidden;
}

.editor-wrapper.note-editor-paper .ProseMirror {
    --rule-line: rgba(105, 102, 60, 0.22);
    --rule-gap: 44px;

    padding: 3.8rem 5.2rem 4.2rem;
    min-height: 640px;
    max-width: 860px;
    background:
        /* soft paper tone */
        radial-gradient(1200px 900px at 50% -10%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 55%),
        /* notebook ruled lines */
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0) 0px,
            rgba(255, 255, 255, 0) calc(var(--rule-gap) - 1px),
            var(--rule-line) calc(var(--rule-gap) - 1px),
            var(--rule-line) var(--rule-gap)
        );
    background-attachment: local;
    color: rgba(73, 70, 45, 0.92);
}

.editor-wrapper.note-editor-paper .ProseMirror p {
    font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(73, 70, 45, 0.80);
}

.editor-wrapper.note-editor-paper .ProseMirror .note-date {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0 0 0.9rem;
    color: rgba(105, 102, 60, 0.70);
}

.editor-wrapper.note-editor-paper .ProseMirror .note-title {
    font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 64px;
    line-height: 1.03;
    margin: 0 0 1.2rem;
    color: rgba(73, 70, 45, 0.92);
}

.editor-wrapper.note-editor-paper .ProseMirror .note-tags {
    margin: 0 0 1.4rem;
}

.note-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-right: 0.5rem;
    color: rgba(73, 70, 45, 0.75);
    border: 1px solid rgba(186, 186, 169, 0.45);
    background: rgba(255, 255, 255, 0.55);
}

.note-tag--lav {
    background: rgba(242, 229, 255, 0.75);
    border-color: rgba(203, 166, 255, 0.55);
}

.note-tag--blue {
    background: rgba(226, 236, 255, 0.8);
    border-color: rgba(160, 192, 255, 0.55);
}

.editor-wrapper.note-editor-paper .ProseMirror .note-quote {
    text-align: center;
    margin: 1.2rem 0;
    color: rgba(73, 70, 45, 0.72);
}

.editor-wrapper.note-editor-paper .ProseMirror .note-spacer {
    margin: 3rem 0 0;
}

.editor-wrapper.note-editor-paper .ProseMirror a {
    color: rgba(73, 70, 45, 0.92);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.editor-wrapper.note-editor-paper .ProseMirror img {
    max-width: 100%;
    border-radius: 18px;
    display: block;
    margin: 1.2rem auto;
    box-shadow: 0 18px 40px rgba(95, 87, 55, 0.12);
}

@media (max-width: 920px) {
    .editor-wrapper.note-editor-paper .ProseMirror {
        padding: 3.2rem 2.2rem 3.2rem;
    }

    .editor-wrapper.note-editor-paper .ProseMirror .note-title {
        font-size: 44px;
    }
}

@media (max-width: 520px) {
    .note-editor-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .note-editor-actions {
        width: 100%;
        justify-content: space-between;
    }

    .note-editor-cloud-pill {
        display: none;
    }
}

.editor-wrapper {
    overflow: hidden;
    min-height: 320px;
}

.editor-host,
.editor-surface {
    min-height: 320px;
    max-width: 860px;
}

.editor-wrapper .ProseMirror {
    min-height: 320px;
    padding: 1.25rem 1.5rem;
    outline: none;
    color: #2c2238;
    line-height: 1.7;
}

.editor-wrapper .ProseMirror h1,
.editor-wrapper .ProseMirror h2 {
    margin-bottom: 0.75rem;
}

.editor-wrapper .ProseMirror p,
.editor-wrapper .ProseMirror ul,
.editor-wrapper .ProseMirror ol,
.editor-wrapper .ProseMirror pre {
    margin-bottom: 0.9rem;
}

.editor-wrapper .ProseMirror ul,
.editor-wrapper .ProseMirror ol {
    padding-left: 1.5rem;
}

.editor-wrapper .ProseMirror pre {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: #f4f0ff;
    color: #36264a;
}

/* -------------------------- CUSTOM DIALOG -------------------------- */
.cd-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 28, 20, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1000;
}

.cd-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: min(480px, 95vw);
    max-height: 90vh;
    gap: 1.2rem;
    overflow-y: auto;
    background: #FFFFFF;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(55, 57, 44, 0.12);
    display: flex;
    flex-direction: column;
}


.cd-type-btn {
    border: 1.5px solid rgba(120, 113, 108, 0.3);
    background: transparent;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: #78716C;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cd-type-btn--active-task {
    background: #504BEF;
    border-color: #504BEF;
    color: #fff;
}

.cd-type-btn--active-reminder {
    background: #F67ADF;
    border-color: #F67ADF;
    color: #fff;
}

/* Form fields */
.cd-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cd-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

label {
    font-family: 'Manrope';
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    font-weight: 300;
    text-transform: uppercase;
    color: #818272;
}

.cd-required {
    color: #E53E3E;
    margin-left: 2px;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #FBFAEC;
    font: 300 13px 'Manrope',Arial;
    color: #37392C;
    outline: none;
    transition: border-color 0.15s;
}

input:focus, textarea:focus {
    border-color: #6e6a3f;
}

/* Error banner */
.cd-error {
    background: rgba(229, 62, 62, 0.08);
    border-left: 3px solid #E53E3E;
    border-radius: 6px;
    padding: 0.55rem 0.85rem;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #C53030;
}

/* Scope MudTimePicker to strip its outer spacing */
.cd-mud-time .mud-input-control {
    margin: 0;
}

/* ----------------------------------------- NOTE EDITOR PAGE --------------------------------------------- */

/* Make article.content stretch to fill main */
article.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}


/* =========================================================
   AUTH PAGE  –  Login / Register / Verify / Reset flows
   ========================================================= */

/* ---- Left branding panel ---- */
.auth-brand-panel {
    position: relative;
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    background: linear-gradient(160deg, #4a4726 0%, #69663C 55%, #87814d 100%);
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.auth-brand-content {
    position: relative;
    z-index: 1;
}

.auth-brand-logo {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    display: block;
}

.auth-brand-name {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #FEFCF1;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.auth-brand-tagline {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(254, 252, 241, 0.7);
    margin: 0;
    line-height: 1.6;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: rgba(254, 252, 241, 0.4);
}

.auth-brand-dots {
    position: absolute;
    bottom: 3rem;
    right: 2.5rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-brand-dots span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(254, 252, 241, 0.3);
}

.auth-brand-dots span:nth-child(2) {
    background: rgba(254, 252, 241, 0.5);
    margin-left: 8px;
}

.auth-brand-dots span:nth-child(3) {
    background: rgba(254, 252, 241, 0.2);
    margin-left: 4px;
}

/* ---- Right form panel ---- */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-form-title {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2e2c1a;
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.auth-form-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #888571;
    margin: 0 0 2rem;
    line-height: 1.55;
}

/* ---- Input fields ---- */
.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.auth-input-label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #4a4726;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-input:focus {
    border-color: #69663C;
    box-shadow: 0 0 0 3px rgba(105, 102, 60, 0.1);
}

.auth-input.invalid {
    border-color: #e05858;
    box-shadow: 0 0 0 3px rgba(224, 88, 88, 0.08);
    outline: none;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper .auth-input {
    padding-right: 44px;
}

.auth-input-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888571;
    padding: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    min-width: 0;
}

.auth-input-eye:hover {
    color: #69663C;
}

/* ---- Divider ---- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #c4c0a8;
    font-size: 12px;
    font-family: 'Manrope', sans-serif;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(105, 102, 60, 0.12);
}

/* ---- Links & helper text ---- */
.auth-link {
    background: none;
    border: none;
    padding: 0;
    color: #69663C;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
    min-width: 0;
}

.auth-link:hover {
    color: #4a4726;
}

.auth-link-muted {
    background: none;
    border: none;
    padding: 0;
    color: #888571;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
    min-width: 0;
}

.auth-link-muted:hover {
    color: #69663C;
    text-decoration: underline;
}

.auth-helper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-helper-text {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #888571;
    text-align: center;
    margin: 0;
}

/* ---- Error & success alerts ---- */
.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(224, 88, 88, 0.08);
    border: 1px solid rgba(224, 88, 88, 0.25);
    border-radius: 10px;
    color: #b53333;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.auth-success {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(123, 242, 170, 0.12);
    border: 1px solid rgba(68, 108, 88, 0.25);
    border-radius: 10px;
    color: #2d6647;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ---- Code input (6-digit verify) ---- */
.auth-code-hint {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    color: #888571;
    margin-top: 4px;
}

/* ---- Password strength hint ---- */
.auth-pw-hint {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: #aaa897;
    margin-top: 3px;
    line-height: 1.5;
}

/* ---- Back link row ---- */
.auth-back-row {
    margin-bottom: 1.75rem;
}

/* ---- Spinner ---- */
.auth-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(254, 252, 241, 0.4);
    border-top-color: #FEFCF1;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* ---- Validation summary override ---- */
.auth-form-container .validation-message {
    font-size: 11px;
    color: #b53333;
    margin-top: 3px;
}

.auth-form-container .validation-errors {
    display: none;
}

/* ---- Responsive: stack on small screens ---- */
@media (max-width: 768px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 2rem 1.25rem;
    }

    .auth-form-container {
        max-width: 100%;
    }
}