/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #222;
}

/* Custom Checkbox */
input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #1a1a1a;
    background: #0a0a0a;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

input[type="checkbox"]:hover {
    border-color: #222;
}

input[type="checkbox"]:checked {
    background: #1a1a1a;
    border-color: #333;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 12px;
}

/* Custom Radio */
input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #1a1a1a;
    background: #0a0a0a;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

input[type="radio"]:hover {
    border-color: #222;
}

input[type="radio"]:checked {
    background: #1a1a1a;
    border-color: #333;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
}

/* Custom Number Input Spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.3;
    cursor: pointer;
}

input[type="number"]::-webkit-inner-spin-button:hover,
input[type="number"]::-webkit-outer-spin-button:hover {
    opacity: 0.6;
}

/* Custom Range Slider */
input[type="range"] {
    appearance: none;
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #333;
    border: 1px solid #444;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #444;
    border-color: #555;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #333;
    border: 1px solid #444;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #444;
    border-color: #555;
}

/* Custom File Input */
input[type="file"] {
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #1a1a1a;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"]::file-selector-button:hover {
    border-color: #222;
    color: #888;
}

/* Custom Select */
select {
    appearance: none;
    background: #0a0a0a url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>') no-repeat right 12px center;
    background-size: 12px;
    border: 1px solid #1a1a1a;
    color: #666;
    padding: 12px;
    padding-right: 35px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

select:hover {
    border-color: #222;
}

select:focus {
    outline: none;
    border-color: #222;
    color: #888;
}

select option {
    background: #0a0a0a;
    color: #666;
    padding: 8px;
}

/* Custom Placeholder */
input::placeholder,
textarea::placeholder {
    color: #333;
    opacity: 1;
}

/* Custom Focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #222;
    color: #888;
}

/* Custom Textarea Resize */
textarea {
    resize: vertical;
}

textarea::-webkit-resizer {
    background: #1a1a1a;
}
