* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    background: #11111B;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    cursor: grab;
    background: 
        linear-gradient(0deg, rgb(24, 24, 37) 1px, transparent 1px),
        linear-gradient(90deg, rgb(24, 24, 37) 1px, transparent 1px);
    background-size: 30px 30px;
}

#canvas-container.grabbing {
    cursor: grabbing;
}

#canvas {
    position: absolute;
    transform-origin: 0 0;
    transition: transform 0.1s ease-out;
}

.card {
    position: absolute;
    background: #ff4000;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: move;
    user-select: none;
    transition: box-shadow 0.2s;
    min-width: 200px;
    min-height: 150px;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.card.dragging {
    opacity: 0.8;
    cursor: grabbing;
    z-index: 1000;
}

.card-delete:hover {
    color: #e74c3c;
}

.card-content {
    padding: 16px;
}

.card-text {
    background: #313244;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100px;
    color: #cdd6f4;
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.toolbar {
    position: fixed;
    top: 20px;
    left: 20px;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.toolbar button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.toolbar button:hover {
    background: #0056b3;
}

.zoom-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    gap: 4px;
    z-index: 1000;
}

.zoom-controls button {
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: background 0.2s;
}

.zoom-controls button:hover {
    background: #e0e0e0;
}

.zoom-level {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}