* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-secondary:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

#addPageBtn {
    padding: 0.5rem 1rem;
}

.btn-tools {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    justify-content: center;
}

/* Tools Dropdown */
.tools-dropdown {
    position: relative;
    z-index: 1000;
}

.tools-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 150px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0.25rem;
    animation: fadeIn 0.2s;
}

.tools-content.active {
    display: flex;
}

.tools-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    border-radius: 8px;
}

.tools-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

/* View Mode Switcher */
.view-mode-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
}

.view-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    position: relative;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.view-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.view-icon {
    font-size: 1.1rem;
}

.trash-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    z-index: 20;
}

/* Tab Bar */
.tab-bar {
    background: rgba(22, 33, 62, 0.6);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
}

.tabs-container {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    overflow-x: auto;
}

.tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.tab-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.tab-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.tab-close:hover {
    background: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}

.btn-add-tab {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #a5b4fc;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-add-tab:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
}

/* View Sections */
.view-section {
    display: none;
    flex: 1;
    overflow: hidden;
}

.view-section.active {
    display: flex;
}

/* Editor View */
#editorView {
    flex-direction: row;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: rgba(22, 33, 62, 0.6);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-collapse {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-collapse:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.page-tree {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Tree Node Styles */
.tree-node {
    margin-bottom: 0.25rem;
}

.tree-node-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tree-node-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tree-node-header.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.tree-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.tree-toggle.expanded {
    transform: rotate(90deg);
}

.tree-toggle.hidden {
    visibility: hidden;
}

.tree-node-title {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-node-actions {
    display: none;
    gap: 0.25rem;
}

.tree-node-header:hover .tree-node-actions {
    display: flex;
}

.tree-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.tree-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.tree-action-btn.delete-page:hover {
    background: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}

.tree-node-children {
    margin-left: 1.5rem;
    display: none;
}

.tree-node-children.expanded {
    display: block;
}

/* Drag and Drop Styles */
.tree-node-header.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.tree-node-header.drag-over {
    background: rgba(99, 102, 241, 0.3) !important;
    border-left: 3px solid var(--accent-primary);
}

.tree-node-header[draggable="true"] {
    cursor: grab;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.breadcrumbs {
    padding: 1rem 2rem;
    background: rgba(22, 33, 62, 0.4);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--accent-primary);
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* Resize Handle */
.resize-handle {
    width: 4px;
    background: transparent;
    cursor: col-resize;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s;
}

.resize-handle:hover {
    background: var(--accent-primary);
}

.resize-handle::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -4px;
    right: -4px;
    /* Wider hit area for easier dragging */
}

.editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow: hidden;
}

.page-title-input {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.page-title-input::placeholder {
    color: var(--text-secondary);
}

.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.toolbar-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.toolbar-btn:active {
    background: rgba(99, 102, 241, 0.2);
}

.toolbar-divider {
    width: 1px;
    background: var(--border-color);
    margin: 0 0.25rem;
}

.editor-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    overflow-y: auto;
    outline: none;
}

.editor-content:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.editor-content h1 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
    font-weight: 700;
}

.editor-content h2 {
    font-size: 1.5rem;
    margin: 1.25rem 0 0.75rem;
    font-weight: 600;
}

.editor-content h3 {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.editor-content p {
    margin: 0.75rem 0;
}

.editor-content ul,
.editor-content ol {
    margin: 0.75rem 0;
    padding-left: 2rem;
}

.editor-content li {
    margin: 0.25rem 0;
}

.editor-content a {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* Code Blocks */
.editor-content code {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9em;
}

.editor-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
}

/* Blockquotes */
.editor-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
}

/* Horizontal Rule */
.editor-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 2rem 0;
}

/* Tables */
.editor-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.editor-content td,
.editor-content th {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.editor-content th {
    background: rgba(99, 102, 241, 0.2);
    font-weight: 600;
}

.editor-content tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Strikethrough */
.editor-content s,
.editor-content strike {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Subscript & Superscript */
.editor-content sub {
    vertical-align: sub;
    font-size: 0.75em;
}

.editor-content sup {
    vertical-align: super;
    font-size: 0.75em;
}

/* Images */
.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Color Picker in Toolbar */
.toolbar-color {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    padding: 2px;
}

.toolbar-color:hover {
    border-color: var(--accent-primary);
}

/* List View */
.list-container {
    flex: 1;
    padding: 2rem;
    overflow: auto;
}

.list-header {
    margin-bottom: 1rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.pages-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 16px;
}

.pages-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.pages-table th {
    background: rgba(99, 102, 241, 0.2);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.pages-table th:first-child {
    border-top-left-radius: 16px;
}

.pages-table th:last-child {
    border-top-right-radius: 16px;
}

.pages-table tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.pages-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

.pages-table td {
    padding: 1rem 1.5rem;
    color: var(--text-primary);
}

.col-title {
    width: 30%;
}

.col-space {
    width: 20%;
}

.col-parent {
    width: 20%;
}

.col-modified {
    width: 20%;
}

.col-actions {
    width: 10%;
    text-align: right;
}

.pages-table th.col-actions {
    text-align: right;
}

.list-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.view {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.action-btn.view:hover {
    background: rgba(99, 102, 241, 0.3);
}

.action-btn.delete {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

.action-btn.delete:hover {
    background: rgba(220, 38, 38, 0.3);
}

/* Trash View */
.trash-container {
    flex: 1;
    padding: 2rem;
    overflow: auto;
}

.trash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.trash-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.trash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.trash-note {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.trash-note:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trash-note-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.trash-note-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.trash-actions {
    display: flex;
    gap: 0.5rem;
}

.trash-actions .action-btn {
    flex: 1;
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 400px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    text-align: center;
}

.modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.modal-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Space Tag and Selector */
.space-tag {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    color: #a5b4fc;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.space-tag:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.space-selector-popover {
    position: absolute;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 150px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1000;
    animation: fadeIn 0.2s;
}

.space-selector-item {
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-align: left;
    transition: all 0.2s;
}

.space-selector-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.space-selector-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.clickable {
    cursor: pointer;
}
/* Hide mobile toolbar dropdown on desktop */
.mobile-toolbar-dropdown {
    display: none !important;
}
