body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    touch-action: manipulation;
    overflow: hidden;
    height: 100vh;
}

#map {
    position: absolute;
    top: 60px;
    bottom: 0;
    width: 100%;
}

#toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    padding: 0 8px;
    z-index: 1000;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
}

.tool-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tool-btn {
    padding: 6px 10px;
    background: #0078A8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    height: 32px;
    min-width: 70px;
}

.tool-btn:hover {
    background: #005580;
}

#file-input {
    display: none;
}

#color-picker {
    height: 32px;
    width: 32px;
    padding: 0;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

#status {
    font-size: 12px;
    color: #555;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-left: auto;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 120px;
}

.tooltip {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    text-align: center;
    display: none;
}

.ol-zoom {
    left: auto;
    right: 8px;
    top: 70px;
}

/* Mobile styles */
@media (max-width: 600px) {
    #toolbar {
        height: 50px;
        padding: 0 5px;
        gap: 4px;
    }
    
    .tool-btn {
        padding: 4px 6px;
        font-size: 11px;
        height: 28px;
        min-width: 60px;
    }
    
    #color-picker {
        height: 28px;
        width: 28px;
    }
    
    #status {
        font-size: 11px;
        padding: 3px 6px;
        max-width: 80px;
    }
    
    .ol-zoom {
        top: 60px;
    }
    
    .tooltip {
        display: block;
    }
}

@media (max-width: 400px) {
    #toolbar {
        height: 44px;
    }
    
    .tool-btn {
        font-size: 10px;
        min-width: 50px;
    }
    
    #status {
        display: none;
    }
}