body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
    font-family: Arial, Helvetica, sans-serif;
}

#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spritePosition {
    margin: 10px 0 0 10px;
    font-size: 0.8em;
}

.button {
    width: 140px;
    margin: 10px;
    padding: 10px;
    background-color: #000000;
    color: rgba(255, 255, 255, 0.87);
    border: 1px solid rgba(255, 255, 255, 0.87);
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
        border: 1px solid #0ec3c9;
        color: #0ec3c9;
    }

    &:active {
        background-color: #0ec3c9;
    }

    /* Disabled styles */
    &:disabled {
        cursor: not-allowed;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.3);
    }
}

/* Wave Builder Styles */
.wave-builder {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.wave-builder-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.wave-builder-header h1 {
    margin: 0;
    color: #0ec3c9;
}

.back-link {
    color: #0ec3c9;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #0ec3c9;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-link:hover {
    background-color: #0ec3c9;
    color: #000;
}

.wave-builder-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Enemy Section */
.enemy-section h2,
.waves-section h2,
.spawns-section h2 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 1.2em;
}

.enemy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.enemy-button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    text-transform: capitalize;
    transition: all 0.2s;
    min-width: 120px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.enemy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.enemy-gif {
    width: 24px;
    height: 24px;
    object-fit: contain;
    image-rendering: pixelated;
}

.delay-setting {
    margin-top: 15px;
}

.delay-setting label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

.delay-setting input {
    width: 100px;
    padding: 6px 10px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

/* Wave Tabs */
.wave-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wave-tab {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 6px;
    overflow: hidden;
}

.wave-tab.active {
    background: #0ec3c9;
}

.wave-tab-btn {
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.wave-tab.active .wave-tab-btn {
    color: #000;
}

.wave-tab-remove {
    padding: 10px;
    background: rgba(255, 0, 0, 0.3);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
}

.wave-tab-remove:hover {
    background: rgba(255, 0, 0, 0.6);
}

.add-wave-btn {
    padding: 10px 20px;
    background: #333;
    border: 2px dashed #666;
    color: #aaa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-wave-btn:hover {
    border-color: #0ec3c9;
    color: #0ec3c9;
}

/* Spawns Section */
.spawns-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.spawns-header h2 {
    margin: 0;
}

.clear-btn {
    padding: 8px 16px;
    background: #8b0000;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #b22222;
}

.spawns-list {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.empty-message {
    color: #666;
    text-align: center;
    margin: 20px 0;
}

.spawn-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: grab;
    transition: all 0.15s ease;
}

.spawn-item:active {
    cursor: grabbing;
}

.spawn-item.dragging {
    opacity: 0.5;
    background: #2a2a2a;
    border: 2px dashed #0ec3c9;
}

.spawn-item:last-child {
    margin-bottom: 0;
}

.drag-handle {
    color: #555;
    cursor: grab;
    font-size: 1.1em;
    user-select: none;
}

.drag-handle:hover {
    color: #888;
}

.spawn-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.arrow-btn {
    padding: 2px 6px;
    background: #333;
    border: 1px solid #555;
    color: #aaa;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7em;
    line-height: 1;
    transition: all 0.15s;
}

.arrow-btn:hover:not(:disabled) {
    background: #444;
    color: #0ec3c9;
    border-color: #0ec3c9;
}

.arrow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.spawn-index {
    color: #666;
    font-weight: bold;
    min-width: 30px;
}

.spawn-enemy {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: capitalize;
    min-width: 100px;
    text-align: center;
}

.spawn-delay {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    margin-left: auto;
}

.spawn-delay input {
    width: 80px;
    padding: 4px 8px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

.remove-spawn-btn {
    padding: 6px 12px;
    background: #8b0000;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
}

.remove-spawn-btn:hover {
    background: #b22222;
}

/* Export Section */
.export-section {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.generate-btn {
    padding: 15px 30px;
    background: #0ec3c9;
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.generate-btn:hover {
    background: #0fd8de;
    transform: scale(1.02);
}

.json-output {
    margin-top: 20px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.json-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.json-header h3 {
    margin: 0;
    color: #aaa;
    font-size: 0.9em;
}

.copy-btn {
    padding: 6px 12px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #444;
    border-color: #0ec3c9;
}

.json-output pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    color: #0ec3c9;
}

/* Import Section */
.import-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
}

.import-section h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 1.2em;
}

.json-import-input {
    width: 100%;
    padding: 12px 15px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.2s;
}

.json-import-input::placeholder {
    color: #666;
}

.json-import-input:focus {
    outline: none;
    border-color: #0ec3c9;
    box-shadow: 0 0 8px rgba(14, 195, 201, 0.3);
}

.import-btn {
    margin-top: 15px;
    padding: 12px 30px;
    background: #0ec3c9;
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.import-btn:hover {
    background: #0fd8de;
    transform: scale(1.02);
}

.import-error {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid #ff4444;
    border-radius: 6px;
    color: #ff6666;
    font-size: 0.95em;
}

