/* design-sync.css - Synced from workspace.html */
:root {
    --bg-main: #0a0a0a;
    --text-main: #e5e5e5;
    --sidebar-bg: #0a0a0a;
    --border-color: rgba(255, 255, 255, 0.05);
    --panel-bg: rgba(23, 23, 23, 0.4);
    --header-bg: rgba(10, 10, 10, 0.8);
    --nav-island-bg: rgba(23, 23, 23, 0.8);
    --nav-island-border: rgba(255, 255, 255, 0.1);
}

body.light-mode {
    --bg-main: #ffffff;
    --text-main: #171717;
    --sidebar-bg: #f9f9f9;
    --border-color: rgba(0, 0, 0, 0.08);
    --panel-bg: rgba(245, 245, 245, 0.7);
    --header-bg: rgba(255, 255, 255, 0.8);
    --nav-island-bg: rgba(0, 0, 0, 0.05);
    --nav-island-border: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    /* Prevent body scroll, let views scroll */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar-gradient-top {
    background: linear-gradient(to bottom, var(--sidebar-bg) 0%, transparent 100%);
}

.sidebar-gradient-bottom {
    background: linear-gradient(to top, var(--sidebar-bg) 0%, transparent 100%);
}

.glass-panel {
    background-color: var(--panel-bg);
    border-color: var(--border-color);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

.header-glass {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
}

.nav-island {
    background-color: var(--nav-island-bg);
    border: 1px solid var(--nav-island-border);
    backdrop-filter: blur(8px);
}

.selectable-thumb {
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (max-width: 1024px) {
    .sidebar-hidden {
        display: none;
    }
}

/* Dynamic styles for light mode overrides if needed */
body.light-mode .bg-neutral-900 {
    background-color: #f0f0f0;
}

body.light-mode .bg-neutral-800 {
    background-color: #e5e5e5;
}

body.light-mode .text-neutral-400 {
    color: #737373;
}

body.light-mode .text-neutral-500 {
    color: #525252;
}

body.light-mode textarea {
    color: #171717;
}

.viewport-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.view-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hidden-view {
    display: none !important;
    opacity: 0;
    transform: translateY(10px);
}

.image-overlay-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

/* Active Thumb */
.thumb-active {
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    opacity: 1 !important;
}

body.light-mode .thumb-active {
    border: 2px solid black;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}