/* Dining Room Interactive Map Editor Styles */

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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.toolbar {
    background: #333;
    color: white;
    padding: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

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

.toolbar button.active {
    background: #28a745;
}

.toolbar .help-text {
    font-size: 12px;
    color: #ccc;
    margin-left: 10px;
}

.toolbar input[type="file"] {
    color: white;
}

.image-container {
    position: relative;
    overflow: auto;
    background: #f8f9fa;
    min-height: 400px;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#diningRoomImage {
    display: block;
    user-select: none;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
    pointer-events: auto;
}

.selected-shape {
    box-shadow: 0 0 10px #007bff;
}

.shape-list {
    padding: 20px;
    background: #f8f9fa;
}

.shape-item {
    background: white;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shape-item input {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 3px;
    margin: 0 10px;
}

.shape-item button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.tooltip {
    position: absolute;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    max-width: 200px;
    display: none;
}

.upload-area {
    text-align: center;
    padding: 40px;
    color: #666;
}

.upload-area.dragover {
    background: #e3f2fd;
    color: #1976d2;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .toolbar {
        flex-direction: column;
        gap: 5px;
    }
    
    .toolbar button {
        width: 100%;
    }
}