body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
}

#app {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header .version-badge {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 10px;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
}

.main {
    flex: 1;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
}

.canvas-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.vscrollbar-container {
    width: 16px;
    height: 100%;
    background: #f5f5f5;
    border-left: 1px solid #e0e0e0;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.hscrollbar-container {
    width: 100%;
    height: 16px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
}

.scrollbar-button {
    width: 16px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #999;
    transition: color 0.2s;
}

.scrollbar-button:hover {
    color: #666;
}

.scrollbar-button:active {
    color: #333;
    transform: scale(0.85);
}

.scrollbar-track {
    flex: 1;
    position: relative;
    background: #f5f5f5;
}

.scrollbar-area {
    width: 100%;
    height: 100%;
    position: relative;
}

.vscrollbar-thumb {
    width: 14px;
    height: 10px;
    background: #b8b8b8;
    border-radius: 7px;
    position: absolute;
    left: 1px;
    top: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.hscrollbar-thumb {
    width: 10px;
    height: 14px;
    background: #b8b8b8;
    border-radius: 7px;
    position: absolute;
    left: 0;
    top: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

.scrollbar-thumb:hover {
    background: #999;
}

.canvas-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.toolbar {
    padding: 10px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.status {
    margin-left: 20px;
    color: #666;
    font-size: 14px;
}

canvas {
    width: 100%;
    height: 100%;
    cursor: default;
    display: block;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}
