@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    background: #2d2d2d;
    color: #fff;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
}

input, select {
    padding: 8px;
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    margin-bottom: 8px;
}

input.error, select.error {
    border-color: #f00;
    border-width: 2px;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.full-width {
    width: 100%;
}

input:focus, select:focus {
    outline: none;
    border-color: #0f0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wasm-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.load-default-btn {
    background: #006600;
    color: #fff;
    border: 1px solid #0f0;
    padding: 10px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    width: 100%;
}

.load-default-btn:hover {
    background: #008800;
}

.load-default-btn:disabled {
    background: #333;
    color: #666;
    border-color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.file-drop-zone {
    position: relative;
    border: 2px dashed #fff;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, border-style 0.3s;
}

.file-drop-zone:hover, .file-drop-zone.drag-over {
    border-color: #0f0;
    background-color: #111;
}

.file-drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.file-drop-zone.loaded {
    border-style: solid;
    border-color: #0f0;
}

.drop-text {
    font-size: 10px;
    pointer-events: none;
}

.progress-container {
    margin: 15px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #000;
    border: 1px solid #fff;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0f0;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 8px;
    margin-top: 5px;
}

.status-text {
    text-align: center;
    font-size: 10px;
    margin-top: 5px;
    color: #0f0;
}

.status-text.error {
    color: #f00;
    border: 1px solid #f00;
    background: #200;
    padding: 8px;
}

button {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 16px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    width: 100%;
}

button:hover {
    background: #333;
}

button:disabled {
    color: #555;
    cursor: not-allowed;
}

.results-section {
    background: #000;
    border: 1px solid #fff;
    padding: 10px;
    min-height: 200px;
    max-height: 400px;
    margin-top: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0f0 #000;
}

.seed-result {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.seed-title {
    color: #0f0;
    cursor: pointer;
    user-select: all;
    margin-bottom: 5px;
}

.coord-list {
    font-size: 10px;
    margin-left: 10px;
    max-height: 100px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0f0 #000;
}

.coord-list::-webkit-scrollbar {
    width: 8px;
}

.coord-list::-webkit-scrollbar-track {
    background: #000;
}

.coord-list::-webkit-scrollbar-thumb {
    background: #0f0;
    border-radius: 4px;
}

.coord-list::-webkit-scrollbar-thumb:hover {
    background: #0a0;
}

.coord-item {
    margin: 2px 0;
    cursor: pointer;
    user-select: all;
}

.coord-item:hover {
    color: #0f0;
}

.status {
    color: #0f0;
    font-size: 7px;
    margin-top: 5px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #555;
    font-size: 8px;
}

.info-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-btn {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-btn:hover {
    background: #333;
}

.info-content {
    display: none;
    position: absolute;
    bottom: 25px;
    left: 0;
    background: #000;
    border: 1px solid #fff;
    padding: 10px;
    width: 460px;
    z-index: 100;
    font-size: 11px;
    line-height: 1.4;
}

.info-content.active {
    display: block;
}

.author {
    color: #888;
    text-align: right;
}

.author a {
    color: #888;
    text-decoration: none;
}

.author a:hover {
    color: #0f0;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
    gap: 10px;
}