/* PilzWare Cheat Menu */
#cheat-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    pointer-events: auto;
}

#cheat-menu.dragging {
    user-select: none;
}

.cheat-menu-content {
    width: 680px;
    background: rgba(18, 14, 28, 0.96);
    border: 1px solid rgba(180, 77, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(180, 77, 255, 0.15), 0 8px 32px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.cheat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(180, 77, 255, 0.15), rgba(255, 77, 148, 0.1));
    border-bottom: 1px solid rgba(180, 77, 255, 0.2);
    cursor: grab;
}

.cheat-header:active {
    cursor: grabbing;
}

.cheat-logo {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #b44dff, #ff4d94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cheat-ver {
    color: #555;
    font-size: 12px;
}

/* Tabs */
.cheat-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

.cheat-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.cheat-tab:hover {
    color: #aaa;
    background: rgba(180, 77, 255, 0.05);
}

.cheat-tab.active {
    color: #b44dff;
    border-bottom-color: #b44dff;
    background: rgba(180, 77, 255, 0.08);
}

/* Cheat Body */
.cheat-body {
    padding: 15px 20px;
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b44dff transparent;
}

.cheat-body::-webkit-scrollbar {
    width: 4px;
}

.cheat-body::-webkit-scrollbar-thumb {
    background: #b44dff;
    border-radius: 2px;
}

/* Cheat Setting Row */
.cheat-group {
    margin-bottom: 15px;
}

.cheat-group-title {
    font-size: 11px;
    font-weight: 600;
    color: #b44dff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(180, 77, 255, 0.15);
}

.cheat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    min-height: 30px;
}

.cheat-label {
    font-size: 13px;
    color: #bbb;
}

/* Toggle Switch */
.cheat-toggle {
    position: relative;
    width: 36px;
    height: 18px;
    cursor: pointer;
}

.cheat-toggle input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    transition: 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background: #666;
    border-radius: 50%;
    transition: 0.2s;
}

.cheat-toggle input:checked + .toggle-slider {
    background: rgba(180, 77, 255, 0.4);
}

.cheat-toggle input:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: #b44dff;
}

/* Slider */
.cheat-slider {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheat-slider input[type="range"] {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.cheat-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #b44dff;
    border-radius: 50%;
    cursor: pointer;
}

.cheat-slider input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #b44dff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    font-size: 12px;
    color: #b44dff;
    font-family: 'Consolas', monospace;
    min-width: 35px;
    text-align: right;
}

/* Dropdown */
.cheat-select {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    min-width: 120px;
}

.cheat-select:focus {
    border-color: rgba(180, 77, 255, 0.5);
}

.cheat-select option {
    background: #1a1428;
    color: #ccc;
}

/* Color Picker */
.cheat-color {
    width: 30px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.cheat-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.cheat-color::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

/* Config Section */
.config-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.config-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.config-slot:hover {
    border-color: rgba(180, 77, 255, 0.3);
    background: rgba(180, 77, 255, 0.05);
}

.config-slot.active {
    border-color: #b44dff;
    background: rgba(180, 77, 255, 0.1);
}

.config-slot-name {
    flex: 1;
    font-size: 13px;
    color: #ccc;
}

.config-slot-name input {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 13px;
    width: 100%;
    outline: none;
}

.config-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.config-btn {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(180, 77, 255, 0.3);
    background: rgba(180, 77, 255, 0.1);
    color: #b44dff;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 0.5px;
}

.config-btn:hover {
    background: rgba(180, 77, 255, 0.2);
    border-color: #b44dff;
}

.config-btn.danger {
    border-color: rgba(255, 77, 77, 0.3);
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
}

.config-btn.danger:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: #ff4d4d;
}

/* Export/Import textarea */
.config-textarea {
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #888;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    padding: 8px;
    resize: none;
    outline: none;
    margin-top: 8px;
}

.config-textarea:focus {
    border-color: rgba(180, 77, 255, 0.4);
}

/* Keybind button */
.cheat-keybind {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    color: #888;
    font-size: 11px;
    font-family: 'Consolas', monospace;
    cursor: pointer;
    min-width: 50px;
    text-align: center;
}

.cheat-keybind.binding {
    border-color: #b44dff;
    color: #b44dff;
}

/* Multi-select checkboxes */
.cheat-multiselect {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cheat-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #999;
    cursor: pointer;
}

.cheat-checkbox input {
    accent-color: #b44dff;
    cursor: pointer;
}
