@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap');

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 76px;
    --properties-width: 280px;
    --properties-collapsed-width: 0px;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

#toast-container {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
}

.file-menu {
    position: absolute;
    top: 46px;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 70;
}

.file-menu button {
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
}

.file-menu button:hover {
    background: #f1f5f9;
}

.file-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 2px 0;
}

.file-menu-danger {
    color: #ef4444;
}

.toast {
    background: #0f172a;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { background: #16a34a; }
.toast-warn { background: #b45309; }
.toast-error { background: #dc2626; }

.node-display {
    min-height: 120px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #334155;
    cursor: text;
}

.node-display:empty::before {
    content: 'Click to add content...';
    color: #94a3b8;
}

.node-display p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.node-display ul {
    margin: 0.75rem 0;
    padding-left: 2rem;
    line-height: 1.8;
    list-style-type: disc;
    list-style-position: outside;
}

.node-display ol {
    margin: 0.75rem 0;
    padding-left: 2rem;
    line-height: 1.8;
    list-style-type: decimal;
    list-style-position: outside;
}

.node-display ul ul {
    list-style-type: circle;
    margin: 0.25rem 0;
}

.node-display ul ul ul {
    list-style-type: square;
    margin: 0.25rem 0;
}

.node-display li {
    margin: 0.35rem 0;
    display: list-item;
}

.node-display strong {
    font-weight: 600;
}

.node-display em {
    font-style: italic;
}

.node-display code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9em;
}

.node-display pre {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.node-display pre code {
    background: none;
    padding: 0;
}

.node-display blockquote {
    border-left: 3px solid #0ea5e9;
    padding-left: 1rem;
    margin: 0.75rem 0;
    color: #64748b;
    font-style: italic;
}

.node-display h1, .node-display h2, .node-display h3, .node-display h4, .node-display h5, .node-display h6 {
    margin: 0.75rem 0 0.5rem 0;
    font-weight: 700;
    color: #0f172a;
}

.node-display h1 { font-size: 1.25rem; }
.node-display h2 { font-size: 1.1rem; }
.node-display h3 { font-size: 1rem; }

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.print-mirror {
    display: none;
}

