/* Base Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Toolbar Styles */
.toolbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.tool-btn {
    @apply p-2 rounded hover:bg-gray-700 transition-colors;
}

.tool-btn.active {
    @apply bg-blue-600 hover:bg-blue-700;
}

/* Asset Library Styles */
.asset-library {
    border-right: 1px solid #ccc;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.asset-thumbnail {
    @apply bg-white p-1 rounded border border-gray-300 cursor-move;
    transition: transform 0.1s, box-shadow 0.1s;
}

.asset-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.asset-thumbnail img {
    max-width: 100%;
    height: auto;
    pointer-events: none;
}

/* Canvas Styles */
.canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-canvas {
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    touch-action: none;
}

#canvas-grid {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

/* Modal Styles */
.modal {
    z-index: 1000;
}
/* Selection Box Styles */
.selection-box {
    position: absolute;
    border: 2px dashed #3b82f6;
    pointer-events: none;
    z-index: 10;
}

.selection-box.hidden {
    display: none;
}

.resize-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    pointer-events: all;
    z-index: 11;
    cursor: pointer;
}

.resize-handle.hidden {
    display: none;
}

.rotate-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #3b82f6;
    border-radius: 50%;
    pointer-events: all;
    z-index: 11;
    cursor: grab;
}

.rotate-handle.hidden {
    display: none;
}

/* Canvas Controls */
.canvas-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 5;
}

.canvas-controls label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.canvas-controls input {
    width: 60px;
    margin-bottom: 10px;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}