body {
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
    background: #1a1a1a;
    color: #eee;
}

#ui-container {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(25, 25, 25, 0.95);
    padding: 15px;
    border-radius: 10px;
    z-index: 100;
    max-width: 320px;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #00d2ff;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 12px;
    color: #bbb;
}

.highlight-label {
    color: #ff9900;
}

input[type="file"] {
    width: 100%;
    font-size: 11px;
    color: #888;
}

.filter-grid {
    display: grid;
    grid-template-columns: 20px 20px 50px 1fr;
    gap: 6px;
    align-items: center;
    font-size: 12px;
}

select, input[type="number"] {
    background:#333;
    color:#fff;
    border:1px solid #555;
    padding: 4px;
    width: 100%;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    box-sizing: border-box;
}

input[type="number"]:focus, select:focus {
    outline: 1px solid #00d2ff;
    border-color: #00d2ff;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
}

.checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    color: #fff;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00d2ff;
    margin:0;
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 8px;
    transition: transform 0.1s;
}

button:hover {
    filter: brightness(1.1);
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

.export-button {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.export-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
}

.export-group button {
    padding: 8px;
    font-size: 11px;
    margin-top: 0;
}

#status {
    margin-top:10px;
    font-size: 12px;
    color: #ffd700;
    line-height: 1.4;
    min-height: 20px;
}

.hint {
    font-size: 11px;
    color: #666;
    margin-top:3px;
}
