:root {
    /* Main Backgrounds */
    --color-dark-bg: #1a1b1e;
    --color-card-bg: #25262b;
    --color-card-bg-secondary: #2c2e33;

    /* Text Colors */
    --color-text-light: #d3d4d6;
    --color-text-secondary: #74c3ff;
    --color-text-secondary-hover: #97d4ff;

    /* Utility & Accent Colors */
    --color-border: #373a40;
    --timeline-line: #373a40;

    /* Status Colors */
    --color-success: #a2da8c;
    --color-warning: #f0c68c;
    --color-info: #74c3ff;
    --color-start: #d889ee;
    --color-error: #ff8591;

    /* --- NEW UTILITY VARIABLES --- */
    --color-scrollbar-thumb: #626a7a;
    --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 8px 20px rgba(0, 0, 0, 0.4);
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.no-drag {
    -webkit-user-drag: none;
    /* non-standard */
    -webkit-touch-callout: none;
    /* iOS callout */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    /* disables clicking */
}

/* --- SCROLLBAR STYLING --- */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-card-bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-scrollbar-thumb);
    border-radius: 10px;
    border: 2px solid var(--color-card-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
    border-color: var(--color-card-bg-secondary);
}

/* For Firefox support */
* {
    scrollbar-color: var(--color-scrollbar-thumb) transparent;
}


/* Global/Body Styles */
body {
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
    font-family: var(--font-primary);
    margin: 0;
    font-size: 14px;
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

a {
    text-decoration: none;
}


#content_container {
    overflow: auto;
    width: 100%;
}

/* --- SIDEBAR STYLING --- */
#sidebar {
    background-color: var(--color-card-bg);
    width: 160px;
    margin-right: 20px;
    padding-top: 25px;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Section */
#pfp {
    padding: 5px 5px 1px 5px;
    border: 1px solid var(--color-border);
    text-align: center;
    width: fit-content;
    height: fit-content;
    border-radius: var(--border-radius-md);
}

#pfp img {
    width: 120px;
    height: auto;
    filter: brightness(1.2);
    border-radius: var(--border-radius-md);
}

#menu {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--color-text-light);
    transition: background-color 0.2s, color 0.2s;
}

.nav-item:hover {
    background-color: var(--color-card-bg-secondary);
    color: var(--color-text-secondary);
}

/* Active Navigation Item */
.nav-item.active {
    background-color: var(--color-card-bg-secondary);
    color: var(--color-text-secondary);
    border-left-color: var(--color-text-secondary);
}

.nav-item span.material-symbols-outlined {
    margin-right: 12px;
    font-size: 24px;
    font-variation-settings:
        'FILL' 0,
        'wght' 500,
        'GRAD' 0,
        'opsz' 24;
    color: inherit;
    transition: color 0.2s;
}

.nav-item p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* --- TABS STYLING --- */

.tabs-container {
    display: flex;
    gap: 10px;
    margin: 8px 0;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tabs-container button {
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;

    /* Default (Inactive) State */
    background-color: var(--color-card-bg-secondary);
    color: var(--color-text-light);
}

.tabs-container button.active {
    /* Active State */
    background-color: var(--color-text-secondary);
    color: var(--color-dark-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tabs-container button:hover {
    background-color: var(--color-text-secondary);
    color: var(--color-dark-bg);
}

/* Cards */
.card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-elevated);
    height: fit-content;
    max-width: 100%;
    border: 1px solid var(--color-border);
}


/* Blue Button */
.blue-button {
    background-color: var(--color-text-secondary);
    color: var(--color-card-bg);
    border: none;
    padding: 7px 10px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
    white-space: nowrap;
    width: fit-content;
    gap: 5px;
    font-weight: 700;
}

.blue-button:hover {
    background-color: var(--color-text-secondary-hover);
}

.blue-button .g_icons {
    margin-right: 4px;
}


.badge_free {
    background-color: var(--color-border);
    color: var(--color-text-light);
}

.badge_supporter {
    background-color: var(--color-text-light);
    color: var(--color-card-bg);
}

.badge_tier_1 {
    background-color: var(--color-text-secondary);
    color: var(--color-card-bg);
}

.badge_tier_2 {
    background-color: var(--color-start);
    color: var(--color-card-bg);
}

input[type="text"],
textarea {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 7px;
    border-radius: 5px;
    width: 300px;
    font-size: 13px;
}

.comm_note::placeholder {
    color: #777;
}

.comm_note:focus {
    border-color: var(--color-text-secondary);
    outline: none;
}


#wa_gif {
    /* Styles moved from inline HTML */
    position: absolute;
    bottom: 0;
    right: 0;
    height: 300px;
}

/* CHECKBOX */
/* Custom Checkbox Styling */
.checkbox-container {
    /* Adjusted height for alignment with padded input */
    height: 30px;
    /* Target height, matching comm_note's total height */
    width: 30px;
    /* Making it a square for better click area */
    display: flex;
    /* Added flex to help center the inner checkmark */
    align-items: center;
    position: relative;
    padding-left: 0;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: static;
    /* Change to static so it's controlled by the container's flex/height */
    height: 100%;
    /* Take full height of the container */
    width: 100%;
    /* Take full width of the container */
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    /* Matched to the comm_note's border-radius */
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkbox-container:hover input~.checkmark {
    background-color: #38384a;
    border-color: var(--color-text-secondary);
    /* Highlight border on hover */
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--color-success);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    left: 8px;
    /* Adjusted position to center it within the larger box */
    top: 7px;
    /* Adjusted position to center it within the larger box */
    width: 6px;
    /* Slightly larger checkmark */
    height: 12px;
    border: solid var(--color-dark-bg);
    border-width: 0 3px 3px 0;
    /* Thicker checkmark line */
    transform: rotate(45deg);
}

/* Checkmark for 'Done' (default check icon) */
.checkbox-container input:checked~.checkmark:after {
    left: 4px;
    /* Adjusted position */
    top: 1px;
    width: 4px;
    /* Smaller checkmark */
    height: 8px;
    border: solid var(--color-dark-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Icons for other checkboxes */
.checkmark .material-symbols-outlined {
    font-size: 25px;
    /* Increased icon size for better visibility in the larger box */
    color: #777;
    transition: color 0.2s;
}

.checkbox-container input:checked~.checkmark .material-symbols-outlined {
    color: var(--color-card-bg);
    /* Icon color when checked */
}

span .icon-r34,
span .icon-px {
    font-size: 12px !important;
    font-weight: bold;
    transform: scaleY(1.5);
    transform-origin: center center;
    padding-bottom: 3px;
    margin-left: -1px;
}

/* CHECKBOX END */