@font-face {
    font-family: 'WeaponiconFont';
    src: url('../fonts/Weaponicons-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body
{
    background-color: #22212c;
    font-family: 'Segoe UI', sans-serif;
    color: whitesmoke;
    padding: 0;
    margin: 0;
}

/* ── Mode Tabs ── */
.mode-tabs
{
    display: flex;
    width: 100%;
    gap: 2px;
    margin-bottom: 6px;
}

.mode-tab
{
    flex: 1;
    padding: 7px 0;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: all 0.15s ease;
}

.mode-tab:hover
{
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.mode-tab.active
{
    background: rgba(100, 140, 255, 0.25);
    color: #fff;
    box-shadow: 0 0 8px rgba(100, 140, 255, 0.15);
}

/* ── Section Headers ── */
.section-header
{
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    padding: 6px 4px 3px;
    margin-top: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
}

/* ── Radar / ESP Containers ── */
#radarContainer,
#radarContainerFull
{
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

#radar,
#radarFull
{
    border-radius: 50%;
    transform: scaleX(-1) translateX(160px);
    width: 800px;
    position: absolute;
    order: 1;
}

#radarBackgroundFull,
#radarFull
{
    border-radius: 0;
    width: 800px;
    height: 800px;
}

#radarBackgroundFull,
#radarBackground
{
    background-repeat: no-repeat;
    background-size: cover;
}

.flex-container
{
    display: flex;
}

/* ── Menu Toggle Button ── */
.menu-toggle
{
    background: rgba(40, 40, 50, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: absolute;
    z-index: 10;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.15s;
}

.menu-toggle:hover
{
    background: rgba(60, 60, 70, 0.9);
}

.icon
{
    font-size: 16px;
}

/* ── Settings Panel ── */
.input-container
{
    display: flex;
    flex-direction: column;
    position: absolute;
    background: rgba(30, 30, 38, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    margin-top: 50px;
    padding: 8px;
    width: 220px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

/* Scrollbar styling */
.input-container::-webkit-scrollbar { width: 4px; }
.input-container::-webkit-scrollbar-track { background: transparent; }
.input-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

input[type="color"]
{
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 0;
    cursor: pointer;
    height: 22px;
    width: 36px;
    background: transparent;
}

.hidden { opacity: 0; pointer-events: none; }
.visible { opacity: 1; pointer-events: auto; }

@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

/* ── Setting Rows ── */
.setting-container
{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 3px 4px;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.setting-container label
{
    flex: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.setting-container.sub-setting
{
    padding-left: 16px;
}

.setting-container.sub-setting label
{
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

/* ── Checkboxes ── */
input[type="checkbox"]
{
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

input[type="checkbox"]:checked
{
    background: rgba(100, 140, 255, 0.4);
    border-color: rgba(100, 140, 255, 0.6);
}

input[type="checkbox"]:checked::after
{
    content: '✓';
    position: absolute;
    color: #fff;
    font-size: 11px;
    top: -1px;
    left: 2px;
}

input[type="checkbox"]:hover { border-color: rgba(255, 255, 255, 0.35); }

/* ── Selects ── */
select
{
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 3px 6px;
    font-size: 11px;
    cursor: pointer;
    max-width: 100px;
}

select:focus { outline: none; border-color: rgba(100, 140, 255, 0.5); }

select option
{
    background: #2a2a35;
    color: #fff;
}

/* ── Range Sliders ── */
input[type="range"]
{
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb
{
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(100, 140, 255, 0.7);
    cursor: pointer;
}

/* ── Game Table ── */
#gameTable { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; }
#gameTable th { background-color: #2c2c2f; font-weight: bold; padding: 12px; text-align: left; border-bottom: 1px solid black; }
#gameTable tr { border-bottom: 1px solid black; }
#gameTable td { padding: 12px; }
#gameTable tr:nth-child(odd) { background-color: #726c6c; }
#gameTable a { color: whitesmoke; text-decoration: none; }
#gameTable a:hover { text-decoration: underline; }

#radarZoom, #nameSize, #viewAngleWidth, #viewAngleLength { width: 80px; }

/* ── Player Info Panel ── */
.player-info { min-width: 300px; width: 300px; display: flex; flex-direction: column; gap: 10px; align-items: center; user-select: none; }
.player-info > * { margin: 0; }
.player-info > div { min-width: 300px; width: 300px; border-radius: 3px; }

.CT-team { background-color: royalblue; }
.T-team { background-color: sandybrown; }

.CT-team > p, .T-team > p { display: flex; align-items: center; justify-content: center; margin: 0; gap: 10px; }

#Dead-CT-team, #Dead-T-team { filter: brightness(0.65) grayscale(0.65); }

.WeaponIcon { font-family: 'WeaponiconFont', sans-serif; font-size: 24pt; }

@media only screen and (max-width: 600px)
{
    #radarContainer, #radarContainerFull { flex-direction: column; }
    #radarBackgroundFull { transform: scale(0.5); }
    #radarFull { transform: scaleX(-1) translateY(-125px) scale(0.5); }
    .player-info { margin-top: -210px; }
    .input-container { width: 200px; }
}
