/* Options Modal */
.options-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease-out;
}

.options-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    width: 500px;
    max-width: 90%;
    border-radius: 12px;
    border: 1px solid #4ecca3;
    box-shadow: 0 0 20px rgba(78, 204, 163, 0.3);
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.options-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(78, 204, 163, 0.2);
}

.options-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #4ecca3;
    font-family: 'Orbitron', 'Roboto', sans-serif;
}

.options-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.options-close:hover {
    color: #ff6b6b;
}

.options-content {
    display: flex;
    height: 300px;
}

.options-tabs {
    width: 120px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- TABS THEME A (Default: Cyber Glass) --- */
body:not(.theme-b):not(.theme-c) .options-tab {
    background: transparent;
    border: none;
    color: #8899a6;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Segoe UI', sans-serif;
    border-left: 3px solid transparent;
    /* Reserve space */
    border-radius: 0 20px 20px 0;
    /* Pill shape on right */
    margin-bottom: 5px;
}

body:not(.theme-b):not(.theme-c) .options-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

body:not(.theme-b):not(.theme-c) .options-tab.active {
    color: #4ecca3;
    /* Or Main Color #00f3ff */
    background: linear-gradient(90deg, rgba(78, 204, 163, 0.15), transparent);
    border-left: 3px solid #4ecca3;
    text-shadow: 0 0 8px rgba(78, 204, 163, 0.4);
    font-weight: 600;
}

/* --- TABS THEME B (Retro CRT) --- */
body.theme-b .options-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #008800;
    /* Dim Green */
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Consolas', monospace;
    text-transform: uppercase;
    margin-bottom: 5px;
    transition: none;
    /* Instant for retro feel */
}

body.theme-b .options-tab:hover {
    color: #33ff33;
    text-decoration: underline;
}

body.theme-b .options-tab.active {
    background: #33ff33;
    color: #000;
    border: 1px solid #33ff33;
    font-weight: bold;
}

/* --- TABS THEME C (Neon Flux) --- */
body.theme-c .options-tab {
    /* Reset & Base */
    background: transparent;
    border: none;
    color: var(--main-color, #1793d1);
    padding: 12px 15px;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    /* Create context for pseudo-elements */
    margin-bottom: 8px;
    transition: all 0.3s;
    text-align: left;
    filter: drop-shadow(0 0 1px var(--main-color, #1793d1));
}

/* The Button Body (Simulating .btn-tech) */
body.theme-c .options-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(30, 30, 40, 0.95);
    /* Clip Path (Same as button) */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);

    z-index: -1;
    transition: all 0.3s;
}

/* The Triangle (Simulating .btn-tech-wrapper::after) */
body.theme-c .options-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 6px;
    height: 6px;

    background: var(--main-color, #1793d1);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);

    z-index: 1;
    pointer-events: none;
    transition: all 0.3s;
}

/* Hover Effects */
body.theme-c .options-tab:hover,
body.theme-c .options-tab.active {
    filter: drop-shadow(0 0 2px var(--main-color, #1793d1)) drop-shadow(0 0 6px var(--main-color, #1793d1));
    color: white;
    text-shadow: 0 0 8px var(--main-color, #1793d1);
    padding-left: 20px;
}

body.theme-c .options-tab:hover::before,
body.theme-c .options-tab.active::before {
    background: rgba(255, 255, 255, 0.05);
}

.options-tab-content {
    flex: 1;
    padding: 20px;
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.options-row label {
    font-size: 1rem;
}

/* Custom Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #4ecca3;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* --- BLUE TOGGLE SWITCH --- */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-left: 10px;
}

/* Hide default HTML checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
    /* Round */
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: var(--main-color, #2196F3);
    /* Dynamic Color */
}

input:focus+.toggle-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.toggle-slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
}


/* --- BLUE RADIO BUTTONS --- */
.custom-radio-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    margin-bottom: 12px;
}

/* Hide default radio */
.custom-radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Circle */
.checkmark {
    height: 22px;
    width: 22px;
    background-color: #ccc;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: background-color 0.3s;
}

/* Hover */
.custom-radio-container:hover input~.checkmark {
    background-color: #bbb;
}

/* Checked State: Blue Body */
.custom-radio-container input:checked~.checkmark {
    background-color: var(--main-color, #2196F3);
}

/* Inner Dot (Hidden by default) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show Dot when checked */
.custom-radio-container input:checked~.checkmark:after {
    display: block;
}

/* Style the Dot (White) */
.custom-radio-container .checkmark:after {
    top: 7px;
    left: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}