/* --- CSS VARIABLES --- */
:root {
    --bg-color: #0f0f13;
    --card-bg: #1a1a20;
    --text-main: #e0e0e0;
    --text-dim: #888;
    --accent: #7d5fff;
    --accent-hover: #9b84ff;
    --border-color: #333;
    --shadow: 4px 4px 0px #000;
    --font-mono: 'Courier New', Courier, monospace;
    --font-sans: 'Verdana', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    /* Grid Background */
    background-image: radial-gradient(#222 1px, transparent 1px);
    background-size: 20px 20px;
    padding-bottom: 80px;
}

/* --- BOOTSTRAP OVERRIDES (To keep the Retro Look) --- */

/* 1. Kill Rounded Corners */
.card, .btn, .form-control, .nav-link, .input-group-text {
    border-radius: 0 !important;
}

/* 2. Custom Card Styling */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px dashed #444;
    font-family: var(--font-mono);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
}

/* 3. Navigation Tabs (Pills) */
.nav-pills {
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
    /* Mobile Scroll Settings */
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

    .nav-pills::-webkit-scrollbar {
        display: none;
    }

    .nav-pills .nav-link {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-main);
        font-family: var(--font-mono);
        box-shadow: var(--shadow);
        transition: transform 0.1s;
        margin-right: 5px;
    }

        .nav-pills .nav-link:active {
            transform: translate(2px, 2px);
            box-shadow: 2px 2px 0px #000;
        }

        .nav-pills .nav-link.active {
            background-color: var(--accent);
            border-color: var(--accent);
            color: #fff;
        }

/* 4. Form Elements */
.form-control {
    background-color: #111;
    border: 1px solid #444;
    color: white;
}

    .form-control:focus {
        background-color: #000;
        color: white;
        border-color: var(--accent);
        box-shadow: none;
    }

.login-form input:not([type="checkbox"]) {
    width: 100%;
    margin-bottom: 10px;
    background: #111;
    border: 1px solid #444;
    color: white;
    padding: 8px;
}

.login-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: var(--accent);
}


/* 5. Buttons */
.btn-retro {
    background: #333;
    color: white;
    border: 1px solid #555;
    font-family: var(--font-mono);
}

    .btn-retro:hover {
        background: #444;
        color: white;
        border-color: var(--text-dim);
    }

/* --- CUSTOM ELEMENTS --- */
a {
    color: var(--accent);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.post {
    border-left: 2px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 15px;
}

.cv-date {
    font-family: var(--font-mono);
    background: #333;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.8em;
    display: inline-block;
    margin-bottom: 5px;
}

.chat-window {
    height: 300px;
    background: #000;
    border: 1px inset #333;
    overflow-y: scroll;
    padding: 10px;
    font-family: var(--font-mono);
}

.chat-user {
    color: var(--accent);
    font-weight: bold;
}

.stock-ticker {
    font-family: var(--font-mono);
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow-x: auto;
}

.stock-up {
    color: #0f0;
}

.stock-down {
    color: #f00;
}

/* Sidebar Elements */
.profile-pic {
    height: 150px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border-bottom: 1px solid #333;
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #0f0;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-dot-online {
    background-color: #0f0;
}

.status-dot-away {
    background-color: #ff0;
}

.status-dot-busy {
    background-color: #f00;
}

.status-dot-offline {
    background-color: #666;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.mood-cell {
    aspect-ratio: 1;
    background: #222;
    border: 1px solid #333;
}

    .mood-cell.filled {
        background: var(--accent);
    }

.odometer {
    font-family: var(--font-mono);
    font-size: 1.2em;
    background: #000;
    color: #0f0;
    padding: 5px;
    text-align: center;
    border: 2px inset #555;
    letter-spacing: 5px;
}

#oneko {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-pills-container {
        position: sticky;
        top: 0;
        background-color: var(--bg-color);
        z-index: 1020;
        border-bottom: 1px solid #333;
        margin-left: -12px; /* Compensate for container padding */
        margin-right: -12px;
        padding-left: 12px;
    }
}
