body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(48, 116, 255, 0.10), transparent 30%),
        linear-gradient(180deg, #f6f8fc 0%, #edf2f8 100%);
}

.app-shell {
    min-height: 100vh;
}

.guest-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(26, 115, 232, 0.12), transparent 25%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.08), transparent 30%),
        #f4f6fb;
}

.app-guest-wrap {
    min-height: 100vh;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.app-sidebar {
    width: 272px;
    flex: 0 0 272px;
    box-sizing: border-box;
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    margin: 0;
    padding: 0 1.25rem 0 0;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
}

.app-sidebar-inner {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-right: 1px solid rgba(27, 39, 60, 0.08);
    background: transparent;
}

.app-brand {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
}

.app-brand:hover {
    color: #111827;
    text-decoration: none;
}

.app-usercard {
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    background: rgba(241, 245, 249, 0.9);
}

.app-nav {
    gap: 0.375rem;
}

.app-nav-link {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 0.875rem;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.app-nav-link:hover {
    color: #0f172a;
    background: rgba(59, 130, 246, 0.08);
    text-decoration: none;
}

.app-nav-link.active {
    color: #0f172a;
    background: rgba(59, 130, 246, 0.14);
}

.app-main {
    min-width: 0;
    flex: 1;
}

.app-content {
    min-width: 0;
}

.app-content .container-xl.app-page-editor {
    max-width: none;
}

.app-mobilebar {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(27, 39, 60, 0.08);
}

.app-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(27, 39, 60, 0.08);
}

.badge.bg-secondary-lt {
    color: #1d273b;
}

.save-status-panel {
    max-width: 34rem;
}

.note-save-status {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(216, 222, 234, 0.95);
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.92);
}

.toast-note-editor .toastui-editor-defaultUI {
    border-radius: 0.75rem;
    border-color: #d8deea;
}

.toast-note-editor .toastui-editor-main {
    min-height: 420px;
}

.toast-note-editor .toastui-editor-md-container,
.toast-note-editor .toastui-editor-ww-container {
    min-height: 360px;
}

.toast-note-editor .toastui-editor-toolbar {
    border-bottom-color: #d8deea;
    background: #f9fbff;
}

.note-editor-layout {
    align-items: flex-start;
}

.editor-main-card,
.editor-side-card,
.editor-attachments-card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.editor-side-card .card-header,
.editor-attachments-card .card-header {
    background: rgba(248, 250, 252, 0.9);
}

.editor-attachments-card .list-group-item:last-child {
    border-bottom: 0;
}

@media (min-width: 992px) {
    .app-shell {
        display: flex;
    }

    .app-content .container-xl {
        margin-left: 0;
        margin-right: auto;
    }

    .app-content .container-xl.app-page-editor {
        padding-left: 1rem;
        padding-right: 1.5rem;
    }

    .editor-side-card {
        position: sticky;
        top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .toast-note-editor .toastui-editor-main {
        min-height: 320px;
    }

    .toast-note-editor .toastui-editor-md-container,
    .toast-note-editor .toastui-editor-ww-container {
        min-height: 260px;
    }

    .app-content .container-xl {
        padding-top: 1rem !important;
    }

    .editor-main-card .card-body,
    .editor-side-card .card-body,
    .editor-attachments-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 991.98px) {
    .app-offcanvas {
        width: min(82vw, 320px);
    }
}
