:root {
    --ink: #0d0d1a;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --cream: #faf8f3;
    --white: #ffffff;
    --muted: #6b6b7a;
    --border: #e4e0d6;
    --card-bg: #ffffff;
    --hero-dark: #0a0a14;
    --logo-green: #2bb673;
    --primary-black: #02021a;
    --primary-green: #1d9e43;
    --primary-purple: #6e45e9;
    --color-light-black: #0e0f23;
    --color-white: #fff;
    --color-light-white: rgb(205 205 205 / 90%);
    --color-medium-white: rgb(205 205 205 / 70%);
    --color-blue: #005e6a;
    --color-deep-blue: white;
    --color-text-heading: #031811;
    --color-text-body: #005e6a;
    --sidebar-width: 175px;
    --header-height: 50px;
    --primary: #6576ff;
    --primary-dim: #e8eaff;
    --warning: #f4bd0e;
    --info: #09c2de;
    --secondary: #8094ae;
    --success: #1ee0ac;
    --danger: #e85347;
    --text-dark: #364a63;
    --text-soft: #526484;
    --text-muted: #8094ae;
    --border: #dbdfea;
    --bg-light: #f5f6fa;
    --btn-bg-light: #ebedf4;
    --bg-white: #ffffff;
    --sidebar-bg: url(../siteimages/p6.webp);
    --header-bg: #f5f6fa;
    --overline: #8094ae;
    --back-color: #f5f6fa;
    --shadow: 0 3px 12px rgba(54, 74, 99, .1);
    --shadow-lg: 0 8px 28px rgba(54, 74, 99, .15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cabin', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    font-size: 16px;
}

.wordToggle {
    display: flex;
    align-items: center;
    background: #ddd;
    border-radius: 999px;
    padding: 4px;
    position: relative;
    user-select: none;
}

.wordToggle .pill {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    bottom: 4px;
    background: white;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.wordToggle.right .pill {
    left: 50%;
}

.wordToggle .label {
    position: relative;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #aaa;
    transition: color 0.3s;
    z-index: 1;
    width: 50%;
    cursor: pointer;
    text-align: center;
}

.wordToggle .label:hover {
    color: #555;
}

.wordToggle .label.active {
    color: #111;
    cursor: default;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Cabin', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--ink);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 8px rgba(120, 88, 2, 0.5);
}

.btn-primary {
    background: var(--color-light-white);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--color-medium-white);
}

.btn-outline {
    background: #e5e5e5;
    border: 1px solid var(--border);
    color: var(--text-soft);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    text-decoration: none;
}

.btn-icon:hover {
    background: var(--btn-bg-light);
    color: var(--primary);
}

.big-btn {
    padding: 8px 20px;
    font-size: 16px;
}

.btn-project {
    background: var(--primary);
    color: #fff;
    margin-left: auto;
}

.btn-project:hover {
    background: #4e62f5;
    box-shadow: 0 4px 12px rgba(101, 118, 255, .3);
}

.btn-green {
    background: green;
    color: #fff;
    margin-left: auto;
}

.btn-green:hover {
    background: rgb(5, 181, 5);
    box-shadow: 0 4px 12px rgba(101, 118, 255, .3);
}

.btn-red {
    background: red;
    color: #fff;
    margin-left: auto;
}

.btn-red:hover {
    background: lightpink;
    box-shadow: 0 4px 12px rgba(101, 118, 255, .3);
}

.btn-script {
    background: var(--warning);
    color: #fff;
    margin-left: auto;
}

.btn-script:hover {
    background: #e0ad00;
    box-shadow: 0 4px 12px rgba(244, 189, 14, .3);
}

.hide600 {
    display: block;
}

.ui-autocomplete {
    max-height: 350px;
    max-width: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative !important;
    z-index: 100;
    font-family: "Cabin Condensed", helvetica, sans-serif;
    font-size: 17px !important;
}

.uilistitem {
    padding: 3px !important;
    color: #333 !important;
}

.uilistitem:hover {
    background: #eee;
}

.centered {
    text-align: center !important;
}

.tippy-box[data-theme~='center-aligned'] .tippy-content {
    text-align: center;
}

.tdcenter {
    display: flex;
    align-items: center;
    /* Vertical centering */
    justify-content: center;
    /* Horizontal centering (Optional) */
    height: 100%;
}

.msgPopup {
    padding: 1px 0px !important;
    text-align: center !important;
    margin: 5px;
}

.bigTitle {
    font-size: 20px !important;
    font-weight: bold;
    color: rgb(1, 69, 111);
}

/* ── SIDEBAR ── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - 10px);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform 0.3s ease;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 5px;
    background-image: linear-gradient(#f4fcff, #d0e5e5, #a5e2f9);
    transform: translateX(-105%);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebarRight {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 40%;
    height: 100vh;
    z-index: 200;
    transition: transform 0.75s ease;
    padding: 5px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    transform: translateX(100%);
}

.sidebarRight.active {
    transform: translateX(0%);
}

.sidebar-head {
    padding: 12px 6px;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.sidebar-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.sidebar-logo .logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-menu {
    padding: 16px 0 0 0;
    overflow-y: auto;
    flex: 1;
}

.menu-list {
    height: 100%;
    display: flex;
    flex-flow: column;
    list-style: none;
    gap: 5px;
}

.menu-bottom {
    margin-top: auto;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 0;
    cursor: pointer;
}

.menu-link:hover {
    color: var(--primary);
    background: var(--primary-dim);
}

.menu-item.active .menu-link {
    color: var(--primary);
    background: var(--primary-dim);
}

.menu-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.menu-toggle-arrow {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.2s;
}

.menu-item.open .menu-toggle-arrow {
    transform: rotate(180deg);
}

.menu-sub {
    list-style: none;
    background: var(--bg-light);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.menu-item.open .menu-sub {
    max-height: 300px;
}

.menu-sub .menu-link {
    padding: 8px 24px 8px 56px;
    font-size: 13px;
    color: var(--text-muted);
}

.menu-sub .menu-link:hover {
    color: var(--primary);
    background: var(--primary-dim);
}

/* ── HEADER ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    /*border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-bottom-left-radius: 10px;*/
    display: flex;
    align-items: center;
    padding: 0 28px 0 0;
    z-index: 100;
}

.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-toggle:hover {
    background: var(--bg-light);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-dim);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
    cursor: default;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar.green {
    border: 2px solid green;
}

.user-avatar.yellow {
    border: 2px solid #ffc107;
}

.user-avatar.red {
    border: 2px solid red;
}

.user-avatar.margin1 {
    margin: 0px 1px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    pointer-events: none;
}

.bordered-msg {
    font-size: 16px;
    color: var(--text-dark);
    background: #ffe4e4;
    text-align: center;
    margin-top: 0px !important;
    border: 1px solid grey;
    border-radius: 7px;
    padding: 3px;
}

.bordered-menu {
    position: relative;
    cursor: default;
}

.bordered-menu .link-list a {
    font-size: 18px;
    padding: 4px 10px;
}

.bordered-menu .link-list a.selected {
    color: var(--primary-purple);
    font-weight: bold;
}

.bordered-toggle {
    border: 1px solid #CCC;
    background: white;
    margin-top: 2px;
    padding: 1px 6px;
    font-size: 18px;
}

.dropdown-menu.bordered-toggle {
    top: calc(100% + 2px);
    left: 0px;
    padding: 4px;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
    pointer-events: auto;
}

.dropdown-inner {
    padding-bottom: 5px;
}

.dropdown-inner:last-child {
    border-bottom: none;
}

.user-card {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
}

.msgCard {
    background: #acfac5;
    background: radial-gradient(circle, rgba(172, 250, 197, 1) 6%, rgb(43 182 115 / 60%) 86%);
    margin-bottom: 12px;
}

#terms-page,
#guest {
    padding: 10px;
    width: 80vw;
    max-width: 650px;
    overflow: auto;
    height: 100%;
}

#terms-page h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 26px;
    color: #225790;
}

#terms-page h2 {
    text-align: left;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 22px;
    color: #225790;
}

#terms-page h3 {
    text-align: left;
    margin-bottom: 5px;
    font-size: 18px;
}

#terms-page p {
    text-align: left;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.2em;
}

#terms-page ul {
    list-style-type: square;
    margin: 10px;
    margin-left: 3em;
    font-size: 16px;
    line-height: 1.2em;
}

#terms-page ul li {
    margin-bottom: 5px;
}

.tvbutton {
    padding: 3px 28px 4px 28px;
    text-align: center;
    cursor: pointer;
    font-size: 20px;
    text-decoration: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    line-height: 20px;
    border: 1px solid rgb(183, 161, 119);
}

.mainbutton {
    background-color: #efe7c3;
    color: #581b02;
}

.mainbutton:hover {
    color: #766302;
    text-decoration: none;
    background: #d3e8ed;
    font-weight: bold;
}

.font18 {
    font-size: 18px !important;
}

.checkbox-wrapper-22 .switch {
    display: inline-block;
    height: 20px;
    position: relative;
    width: 40px;
}

.checkbox-wrapper-22 .switch input {
    display: none;
}

.checkbox-wrapper-22 .slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.checkbox-wrapper-22 .slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 13px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 13px;
}

.checkbox-wrapper-22 input:checked+.slider {
    background-color: #66bb6a;
}

.checkbox-wrapper-22 input:checked+.slider:before {
    transform: translateX(18px);
}

.checkbox-wrapper-22 .slider.round {
    border-radius: 34px;
}

.checkbox-wrapper-22 .slider.round:before {
    border-radius: 50%;
}

.contentIcon {
    font-size: 20px;
    margin-right: 5px;
}


/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
    .sidebar {
        transform: translateX(-105%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .header {
        left: 0;
        border-radius: 0px;
        border-left: none;
    }

    .main-wrap {
        margin-left: 0;
    }

    .content {
        padding: 16px;
    }

}

@media (max-width: 550px) {
    .hide600 {
        display: none;
    }
}