@font-face {
    font-family: 'ProggyClean';
    src: url('../fonts/ProggyClean.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-main: #0a0a0a;
    /* Outer void */
    --bg-window: #141414;
    /* The cheat window background */
    --bg-panel: #191919;
    /* SkeetChild Background (from C++: 25, 25, 25) */

    --accent: #e14eca;
    /* Purple (Reverted) */

    --text-main: #e6e6e6;
    --text-muted: #999;

    --border-outer: #020202;
    /* SkeetChild Outer Border (from C++: 2, 2, 2) */
    --border-inner: #323232;
    /* SkeetChild Inner Border (from C++: 50, 50, 50) */

    --btn-grad-top: #232323;
    --btn-grad-bot: #141414;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-main);
    font-family: 'ProggyClean', sans-serif;
    /* Pixel font */
    font-size: 13px;
    /* Adjust for pixel font readability */
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* The Main "Cheat Window" Container */
.cheat-window {
    width: 900px;
    background-color: var(--bg-window);
    border: 1px solid #000;
    /* Main window usually strictly black border */
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    /* Inner border simulation */
    box-shadow: inset 0 0 0 1px #373737;
    /* Main window inner border (from C++: 55, 55, 55) */
    padding: 1px;
}

/* Common "Double Border" for inner elements (Logo, Tabs) */
.skeet-border {
    border: 1px solid var(--border-outer);
    box-shadow: inset 0 0 0 1px var(--border-inner);
    background-color: var(--bg-panel);
}

/* --- LOGO PANEL --- */
.logo-panel {
    height: 50px;
    margin: 8px 8px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    font-size: 24px;
    /* Larger for logo */
}

.logo-text-white {
    color: #e6e6e6;
}

.logo-text-accent {
    color: var(--accent);
}

/* --- NAV TABS --- */
.nav-panel {
    margin: 8px;
    display: flex;
    gap: -1px;
    justify-content: space-between;
}

.nav-btn {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    background-image: linear-gradient(to bottom, var(--btn-grad-top), var(--btn-grad-bot));
    margin-right: -1px;

    border: 1px solid #000;
    box-shadow: inset 0 0 0 1px #3c3c3c;

    transition: all 0.1s;
}

.nav-btn:hover {
    color: #fff;
    text-decoration: none;
}

.nav-btn.active {
    box-shadow: inset 0 0 0 1px var(--accent);
    color: #fff;
}

/* --- MAIN CONTENT AREA --- */
.content-area {
    padding: 0 8px 8px 8px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

/* --- GROUP BOXES (SkeetChild) --- */
.groupbox {
    border: 1px solid var(--border-outer);
    box-shadow: inset 0 0 0 1px var(--border-inner);
    background-color: var(--bg-panel);
    margin-bottom: 16px;
    position: relative;
    padding: 10px;
    /* Reduced from 15px */
    margin-top: 10px;

    display: flex;
    flex-direction: column;
}

.groupbox-title {
    position: static;
    /* No longer absolute */
    width: 100%;
    text-align: center;
    background-color: transparent;
    padding: 0 0 5px 0;
    /* Space above line */
    margin-bottom: 10px;
    /* Space below line */
    font-size: 13px;
    color: var(--text-main);
    text-shadow: 1px 1px 0 #000;

    /* The line separator */
    border-bottom: 1px solid #3c3c3c;
}

/* Remove the old separator hack if it exists */
.groupbox::before {
    content: none;
}

/* Overwrite Bootstrap Utils completely */
.alert {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-outer);
    box-shadow: inset 0 0 0 1px var(--accent);
    color: var(--text-main);
    border-radius: 0;
    font-family: 'ProggyClean', sans-serif;
}

/* Custom Inputs */
.form-control {
    background-color: #1a1a1a !important;
    border: 1px solid var(--border-outer) !important;
    box-shadow: inset 0 0 0 1px var(--border-inner);
    color: var(--text-main) !important;
    border-radius: 0 !important;
    font-size: 13px;
    font-family: 'ProggyClean', sans-serif;
}

.form-control:focus {
    box-shadow: inset 0 0 0 1px var(--accent);
}

.btn {
    border: 1px solid var(--border-outer) !important;
    background-image: linear-gradient(to bottom, var(--btn-grad-top), var(--btn-grad-bot));
    box-shadow: inset 0 0 0 1px var(--border-inner);
    color: var(--text-main);
    font-size: 13px;
    border-radius: 0;
    font-family: 'ProggyClean', sans-serif;
    text-shadow: 1px 1px 0 #000;
}

.btn-primary,
.btn-outline-primary {
    box-shadow: inset 0 0 0 1px var(--accent);
}

/* --- FOOTER --- */
.cheat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px 6px 12px;
    font-size: 13px;
    /* Proggy size */
    color: #777;
    margin-top: auto;
    font-family: 'ProggyClean', sans-serif;
    width: 100%;
    /* Ensure it spans full width */
    box-sizing: border-box;
    /* Include padding in width */
}

.pagination-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #444;
    margin: 0 2px;
}

.pagination-dots span.active {
    background-color: var(--accent);
}

/* --- AUTH PAGE ISOLATION --- */
/* Center the groupbox on auth pages where there is no .cheat-window */
body>.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Ensure the groupbox inside the auth pages has a fixed width since it's now floating */
body>.container .groupbox {
    width: 320px;
    margin: 0 auto;
}

/* --- CHAT BOX STYLES --- */
#chat-box::-webkit-scrollbar {
    width: 6px;
}

#chat-box::-webkit-scrollbar-track {
    background: #111;
}

#chat-box::-webkit-scrollbar-thumb {
    background: #333;
    border: 1px solid #000;
}

#chat-box::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.chat-msg {
    font-family: 'ProggyClean', sans-serif;
    word-wrap: break-word;
}

/* End chat styles */