/* Shared styles for SciCanvas */
:root {
    --header-height: 64px;
    --drawer-width: 300px;
    --radius: 8px;
    --transition: 0.2s ease;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --border: #e0e0e0;
    --panel: #ffffff;
    --bg: #f5f5f5;
    --text: #333333;
    --text-light: #666666;
    --accent: #4361ee;
    --accent-light: #e8eaff;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Canvas styles */
#editor-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Draggable elements */
.draggable-element {
    position: absolute;
    cursor: move;
    user-select: none;
}

.draggable-element.selected {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Image library */
.image-library-sidebar {
    position: fixed;
    right: 0;
    top: var(--header-height);
    bottom: 0;
    width: var(--drawer-width);
    background: var(--panel);
    border-left: 1px solid var(--border);
    padding: 1rem;
    overflow-y: auto;
}

.image-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.image-library-item {
    cursor: grab;
    padding: 0.5rem;
    border-radius: var(--radius);
    background: var(--bg);
    transition: var(--transition);
}

.image-library-item:hover {
    transform: translateY(-2px);
    background: var(--accent-light);
}

.image-library-item img {
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* Status bar */
#status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Toast notifications */
#toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

#toast.show {
    opacity: 1;
} 