/* ============================================================================
   BASE STYLES - Wikipedia Dark Mode Theme
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Liberation Sans', sans-serif;
    background-color: #202122;
    color: #eaecf0;
    line-height: 1.6;
    min-height: 100vh;
    overflow: hidden;
}

/* Main container - full width since sidebar is now fixed */
.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
}

/* Add class to body when sidebar is expanded */
.sidebar-expanded .app-container {
    /* Container stays the same, sidebar overlays */
}

/* Scrollbars - Wikipedia style */
.left-sidebar::-webkit-scrollbar,
.canvas-area::-webkit-scrollbar,
.block-content::-webkit-scrollbar,
.collapsed-analysis-content::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.left-sidebar::-webkit-scrollbar-track,
.canvas-area::-webkit-scrollbar-track,
.block-content::-webkit-scrollbar-track,
.collapsed-analysis-content::-webkit-scrollbar-track {
    background: #27292a;
}

.left-sidebar::-webkit-scrollbar-thumb,
.canvas-area::-webkit-scrollbar-thumb,
.block-content::-webkit-scrollbar-thumb,
.collapsed-analysis-content::-webkit-scrollbar-thumb {
    background: #3a3b3c;
    border-radius: 5px;
    border: 2px solid #27292a;
}

.left-sidebar::-webkit-scrollbar-thumb:hover,
.canvas-area::-webkit-scrollbar-thumb:hover,
.block-content::-webkit-scrollbar-thumb:hover,
.collapsed-analysis-content::-webkit-scrollbar-thumb:hover {
    background: #4a4b4c;
}

/* Loading indicator */
.loading-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27292a;
    border: 1px solid #3a3b3c;
    border-radius: 2px;
    padding: 12px 20px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.loading-indicator.active {
    display: flex;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #3a3b3c;
    border-top-color: #3366cc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}