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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    overflow: hidden;
}

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

#map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#overlay-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: all;
}

#overlay-svg .dot {
    pointer-events: all;
    cursor: grab;
}

#overlay-svg .dot:active {
    cursor: grabbing;
}

#controls {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#save-btn,
#save-manifest-btn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

#load-manifest-btn {
    background: #FF3B30;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

#save-btn:hover,
#save-manifest-btn:hover {
    background: #0056CC;
}

#load-manifest-btn:hover {
    background: #D70015;
}

#save-btn:active,
#save-manifest-btn:active {
    background: #004499;
}

#load-manifest-btn:active {
    background: #B30012;
}

#info {
    font-size: 12px;
    color: #999;
}

/* Hover display */
.hover-display {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hover-display.visible {
    opacity: 1;
}

/* Settings */
.settings {
    display: flex;
    gap: 20px;
    align-items: center;
}

.setting-item {
    display: flex;
    align-items: center;
}

.setting-item label {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.setting-item input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #007AFF;
}

.setting-item input[type="text"] {
    margin-left: 8px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    color: #333;
    min-width: 150px;
}
