/* Font Family */
@font-face {
    font-family: "Frutiger 45 Light";
    src: url('../fonts/Frutiger_45_Light.otf') format('truetype');
}

@font-face {
    font-family: "Frutiger Bold";
    src: url('../fonts/Frutiger_bold.ttf') format('truetype');
}

:root {
    --WHITE: #FFFFFF;
    --BACKGROUND: #000011;
    --RED: #ff0000;
    --GREEN: #008000;
    --GRAY: #cccccc;
    --BLACK: #000000;
}

/* Common CSS */
* {
    font-family: "Frutiger 45 Light";
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    margin: 0;
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
}

*:focus {
    outline: none !important;
}

strong,
b {
    font-family: 'Frutiger Bold';
}

h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 900;
}

footer {
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    border-top: 1px solid var(--WHITE);
    background-color: var(--BACKGROUND);
    z-index: 1;
    position: relative;
}

footer p {
    margin: 0;
}

.no-results {
    text-align: center;
    font-size: 14px;
    width: 100%;
    margin: 14px;
}

table.dataTable tbody tr {
    background-color: var(--BACKGROUND);
}

form button,
.add-function-block button {
    border: 1px solid var(--WHITE);
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 5px;
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
}

button:hover {
    background-color: var(--WHITE);
    border: 1px solid var(--BACKGROUND);
    color: var(--BACKGROUND);
}

.dropdown-item {
    font-size: 15px;
    color: var(--WHITE);
    padding: 12px 16px;
    transition: all 0.2s ease;
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    color: var(--WHITE);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.dropdown-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    width: auto;
    min-width: 240px;
    background: linear-gradient(145deg, #000019, #000011);
    color: var(--WHITE);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0;
    margin-top: 8px;
}

.dropdown-header {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-header .user-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.dropdown-header .user-email {
    font-size: 14px;
    color: var(--WHITE);
    font-weight: 600;
    word-break: break-word;
    line-height: 1.4;
}

.dropdown-divider {
    height: 0;
    margin: 0;
    overflow: hidden;
    border: none;
}

.dropdown-submenu {
    position: relative;
}

.dropdown {
    z-index: 99999;
}


.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .1rem;
    margin-right: .1rem;
    display: none;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block !important;
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--WHITE);
    font-weight: bolder;
    background-color: var(--BACKGROUND);
}


.error {
    color: var(--RED);
}

.success {
    color: var(--GREEN);
}

.min-h-100 {
    min-height: 100%;
}

.flex-1 {
    flex: 1;
}

textarea {
    width: 100%;
    background: transparent;
    color: var(--WHITE);
}


.text-content {
    text-align: initial;
    text-wrap: wrap;
}

.text-content pre {
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
}

#map {
    height: 100%;
    width: 100%;
}

#map.chart-portrait {
    margin: 0 auto;
    width: unset;
    max-width: 100%;
}

#map.chart-portrait canvas {
    margin: 0 auto;
}

#universe-graph {
    height: 100%;
    width: 100%;
}

.navbar {
    border-bottom: 1px solid var(--WHITE);
    padding: 5px 15px;
}

.navbar-toggler:hover {
    background-color: transparent;
}

.nav-item {
    margin-left: 1rem;
    font-size: 18px;
}

.nav-link {
    color: var(--WHITE) !important;
}

.nav-link.active {
    font-weight: bolder;
}

.container-fluid {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 50px - 64px);
}

.content-column {
    height: 100%;
    border-top: 1px solid var(--white);
}

.tile {
    border: 1px solid var(--BACKGROUND);
    text-align: center;
    padding: 20px;
    min-width: 50%;
    height: calc(100vh - 65px - 39px);
    overflow: auto;
}

.form-box button {
    height: 4.5rem;
    background-color: transparent;
    padding: 10px 20px;
}

.dataTables_wrapper .dataTables_filter {
    float: left !important;
    margin-left: 12px;
}

.dataTables_filter label {
    color: var(--WHITE);
    font-size: 16px;
}

.form-box button:hover {
    background-color: var(--WHITE);
}

table.dataTable tbody th,
table.dataTable tbody td {
    background-color: var(--BACKGROUND);
}

table.dataTable tbody th,
table.dataTable tbody td {
    padding: 5px 18px !important;
}

.dataTables_wrapper .dataTables_filter input {
    color: var(--WHITE);
}

.dataTables_info {
    display: none;
}

.reset-button {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 9999;
}

.reset-button i {
    font-size: 36px;
}

#rotate-button {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;
}

.popup-container {
    position: fixed;
    width: 34rem;
    left: 50%;
    top: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    font-size: 1.6rem;
    justify-content: center;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease, height 0.2s;
    z-index: 999;
    background-color: rgba(0, 0, 17, 0.7);
    max-height: 80vh;
}

.popup-container.active-popup {
    transform: translate(-50%, -50%) scale(1);
}

.popup-container.active-popup-large {
    transform: translate(-50%, -50%) scale(1);
    width: 80%;
    height: auto;
    left: 50%;
    top: 50%;
}

.popup-container.active-popup-medium {
    transform: translate(-50%, -50%) scale(1);
    width: 50%;
    height: auto;
    left: 40%;
    top: 50%;
}

@media (max-width: 768px) {
    .popup-container.active-popup-medium {
        width: 95%;
        left: 2.5%;
        transform: translateY(-50%) scale(1);
    }
}

@media (max-width: 480px) {
    .popup-container.active-popup-medium {
        width: 100%;
        left: 0;
        transform: translateY(-50%) scale(1);
        margin: 0;
    }
}

.popup-container>span {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0.8rem;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    font-size: 2.4rem;
    color: var(--WHITE);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 20px;
}

.form-box {
    width: 100%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    display: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-filter: blur(0px);
    filter: blur(0px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.form-box {
    transition: none;
    overflow: auto;
}

.popup-container .form-box {
    height: auto;
}

.form-box::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.form-box::-webkit-scrollbar-track {
    background: transparent;
}

.form-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.form-box::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.form-box.left {
    transform: translateX(-800px);
}

.form-box.right {
    transform: translateX(800px);
}

.form-box.active {
    transition: transform 0.18s ease;
    transform: translateX(0);
}

.form-box h2 {
    font-size: 2.4rem;
    text-align: center;
    color: var(--WHITE);
}

.form-box form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-box form .message {
    font-size: 14px;
    text-align: center;
}

.form-box form .input-box {
    position: relative;
    width: 100%;
    border-bottom: 2px solid var(--WHITE);
    padding: 1rem;
    margin-top: 15px;
}

.form-box form .input-box span {
    position: absolute;
    right: 8px;
    font-size: 2rem;
    color: var(--WHITE);
}

.form-box form .input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 30px 0 0px;
    font-size: 1.5rem;
    color: var(--WHITE);
    font-weight: 500;
}

.form-box form .input-box input:focus~label,
.form-box form .input-box input:valid~label {
    top: -5px;
    font-size: 1.3rem;
}

.form-box form .input-box label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: var(--WHITE);
    pointer-events: none;
    font-weight: 500;
    transition: 0.2s;
}

.form-box form .select-box label {
    top: -5px;
    font-size: 1.2rem;
}

.form-box form select {
    width: 100%;
}

.form-box form .remember-forgot {
    font-size: 1.4rem;
}

.form-box .forgot-password-link {
    float: right;
}

.form-box form .remember-forgot label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--WHITE);
    user-select: none;
}

.form-box select {
    padding: 10px;
    color: var(--WHITE);
    background: transparent;
}

.form-box form .remember-forgot label input {
    accent-color: var(--WHITE);
}

.form-box form .remember-forgot a {
    color: var(--WHITE);
}

.form-box form .remember-forgot a:hover {
    text-decoration: underline;
}

.form-box form .action-link {
    font-size: 1.4rem;
    text-align: center;
    color: var(--WHITE);
}

.form-box form .action-link a {
    color: var(--WHITE);
    font-weight: 600;
}

.form-box form .action-link a:hover {
    text-decoration: underline;
}

form .reset-password-form {
    width: 320px;
}

.form-container {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.inner-content.reset-password {
    align-items: center;
}

.form-box.reset {
    position: relative;
    display: block;
    width: 350px;
}

.checkbox-section .section-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--WHITE);
}

.checkbox-section {
    padding-left: 10px;
}

.checkbox-section .checkbox-container label {
    display: inline-block;
    margin: 3px 5px 3px 0;
    padding: 4px 5px;
    background-color: var(--WHITE);
    border: 1px solid var(--WHITE);
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

.table {
    color: var(--WHITE);
    font-size: 16px;
    table-layout: fixed;
}

td,
th {
    padding: 8px;
}

#table-b td {
    position: relative;
    vertical-align: middle;
}

#table-b {
    height: auto;
    margin-top: -2px;
    table-layout: fixed;
}

#table-b td .function-link {
    position: absolute;
    right: 0;
    top: 0;
    color: var(--WHITE);
    margin-bottom: -1px;
    line-height: 1;
    padding-left: 6.5px;
    padding-right: 6.5px;
}

.table-responsive {
    overflow: auto;
}

.add-function-block {
    padding: 10px;
    border-left: 1px solid var(--WHITE);
    border-top: 1px solid var(--WHITE);
    margin-top: -1px;
    background-color: var(--BACKGROUND);
    position: sticky;
    bottom: 0;
    right: 0;
    left: 0;
    text-align: center;
}

#table-b td .function-link:hover {
    color: var(--BACKGROUND);
    background-color: var(--WHITE);
}

.checkbox-section .checkbox-container input[type="checkbox"] {
    display: none;
}

.select2-selection__clear {
    padding: 0 !important;
}

.select2-container--default .select2-selection--multiple {
    background-color: transparent;
    color: var(--WHITE);
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--WHITE);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: none;
    border-bottom: 1px solid var(--WHITE);
}

.select2-container--default .select2-selection--multiple textarea {
    color: #FFFFFF;
}

.select2-container--default .select2-results__option {
    background-color: var(--BACKGROUND);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--WHITE);
    color: var(--BACKGROUND);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
    border: 1px solid var(--BACKGROUND);
}

.select2-container--default button {
    color: var(--BACKGROUND) !important;
    background-color: var(--WHITE) !important;
}

.select2-container--default .select2-selection__choice__display {
    color: var(--BACKGROUND) !important;
}

.function-cell {
    width: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: auto;
    margin-bottom: -1px;
    border: 1px solid var(--WHITE);
}

.name-cell {
    text-align: center;
}

.function-cell.portrait-view {
    flex-direction: column-reverse;
}

.function-cell.portrait-view .cell-belt {
    flex-direction: row;
    align-items: center;
    border-left: 0;
    gap: 6px;
    border-bottom: 1px solid var(--WHITE);
}

.function-cell .cell-belt .like-btn-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 5px 0;
}

.function-cell.portrait-view .cell-belt .like-btn-group {
    flex-direction: row;
    margin: 0 auto 0 5px;
}

.function-cell .content-block {
    flex: 1;
    padding: 8px;
    width: 100%;
    margin: auto 0;
    overflow: auto;
}

.function-cell .cell-belt {
    border-left: 1px solid var(--WHITE);
    gap: 4px;
    padding: 3px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 100%;
}

.function-cell .btn,
.function-cell button {
    padding: 0px;
    border: none;
    display: flex;
    color: var(--WHITE);
    background-color: transparent;
    text-decoration: none;
    justify-content: center;
}

.description-block {
    width: calc(100% - 50px);
}

.description-block .overflow-auto {
    max-height: 200px;
}

.protected-content {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.protected-content-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--BACKGROUND);
    font-size: 24px;
    display: None;
}

code {
    color: var(--WHITE);
}

.resizable-x {
    height: 100%;
}

.resizable-y {
    flex-direction: column;
    overflow: hidden;
}

.resize-handle {
    cursor: col-resize;
    width: 10px;
    height: 100%;
    position: relative;
    box-sizing: border-box;
    background-color: var(--BACKGROUND);
    user-select: none;
    border: 1px solid var(--WHITE);
}

.resizable-y .resize-handle {
    cursor: row-resize;
    height: 10px;
    width: 100%;
}

.resize-handle::after {
    height: 15px;
    width: 1.5px;
    left: 2px;
    top: 50%;
    content: "";
    position: absolute;
    background-color: var(--WHITE);
    transform: translateY(-50%);
}

.resizable-y .resize-handle::after {
    height: 1.5px;
    width: 15px;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.resizable-y .resize-handle::before {
    height: 1.5px;
    width: 15px;
    left: 50%;
    top: unset;
    bottom: 2px;
    transform: translateX(-50%);
}

.resize-handle::before {
    content: "";
    position: absolute;
    height: 15px;
    width: 1.5px;
    top: 50%;
    background-color: var(--WHITE);
    transform: translateY(-50%);
    right: 2px;
}

#table-b th,
#table-b td {
    position: relative;
}

#table-b .resize-bar {
    cursor: col-resize;
    display: block;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
}

.scrollable-table {
    min-width: 200px;
}

.search-category {
    display: flex;
    align-items: center;
}

.search-bar {
    margin-right: 10px;
}

.filter-section {
    padding-top: 10px 0;
    gap: 24px;
}

.filter-section>* {
    flex: 1;
}

.filter-section>.search-category {
    flex: 2.7;
}

.filter-section>.add-card {
    flex: 0.3;
}

.category-chips {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 0;
}

.category-chips .btn {
    margin-right: 5px;
}

.search-category-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    min-width: 35px;
    width: 35px;
    height: 18px;
    margin-top: 5px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--BACKGROUND);
    border: 1px solid var(--WHITE);
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 5px;
    bottom: 2px;
    background-color: var(--WHITE);
    border: var(--WHITE);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--WHITE);
}

input:checked+.slider:before {
    transform: translateX(13px);
    background-color: var(--BACKGROUND);
}

/* Privacy Slider Styling */
.privacy-slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 15px 0;
}

.privacy-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.privacy-label {
    font-size: 1.5rem;
    color: var(--WHITE);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.privacy-switch input[type="checkbox"] {
    display: none;
}

.privacy-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: var(--BACKGROUND);
    border: 2px solid var(--WHITE);
    transition: 0.4s;
    border-radius: 24px;
    cursor: pointer;
}

.privacy-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 2px;
    background-color: var(--WHITE);
    transition: 0.4s;
    border-radius: 50%;
}

.privacy-switch input:checked + .privacy-slider {
    background-color: var(--WHITE);
}

.privacy-switch input:checked + .privacy-slider:before {
    transform: translateX(26px);
    background-color: var(--BACKGROUND);
}

.privacy-switch input:not(:checked) ~ .privacy-label:first-of-type {
    opacity: 1;
}

.privacy-switch input:not(:checked) ~ .privacy-label:last-of-type {
    opacity: 0.5;
}

.privacy-switch input:checked ~ .privacy-label:first-of-type {
    opacity: 0.5;
}

.privacy-switch input:checked ~ .privacy-label:last-of-type {
    opacity: 1;
}

/* Spacing for Problem Switch */
.problem-filter-switch {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--WHITE);
}

.keyword-chips-container,
.asker-chips-container {
    max-height: 49px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.keyword-chips-container.expanded,
.asker-chips-container.expanded {
    max-height: none;
}

.expand-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 30px;
    height: 30px;
}

.expand-icon i {
    font-size: 16px;
    color: var(--WHITE);
}

@media (max-width: 1400px) {
    .search-category-inner {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .search-bar {
        margin-bottom: 10px;
    }

    .category-chips {
        width: 100%;
    }

    .round-chips {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}
@media (max-width:1024px){
    .search-category-inner {
       flex-direction: column;
    }
    .category-chips { 
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {

    .filter-section {
        gap: 10px;
        flex-direction: column !important;
    }

    .search-category {
        width: 100% !important;
        justify-content: center;
    }

    .search-category-inner {
        flex-direction: column !important;
        width: 100% !important;
    }

    .search-bar {
        width: 100% !important;
        max-width:400px;
        margin:0 auto;
        margin-bottom: 10px;
    }

    .category-chips {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .round-chips {
        width: 100% !important;
        margin-bottom: 10px;
        justify-content: center;
    }
}

@supports((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .protected-content::after {
        content: "";
        z-index: 3;
        position: absolute;
        inset: 0;
        backdrop-filter: blur(5px);
        background-color: rgba(0, 0, 17, 0.7);
        -webkit-backdrop-filter: blur(5px);
    }
}

.btn.chip {
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
    border: 1px solid var(--WHITE);
    margin-right: .25rem;
    cursor: pointer;
    padding: .325rem .475rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn.chip:hover {
    background-color: var(--WHITE);
    color: var(--BACKGROUND);
}

.btn.chip.active {
    background-color: var(--WHITE);
    color: var(--BACKGROUND);
}

.station-type-chips .btn.chip {
    margin-bottom: 2px;
}

.round-chips .btn.chip {
    border-radius: 20px;
    margin-bottom: 2px;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0 2.5rem 0 0.75rem;
    height: 30px;
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
    border: 1px solid var(--WHITE);
}

.search-input-wrapper .clear-btn {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--WHITE);
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.search-input-wrapper input::placeholder {
    color: var(--WHITE);
}

.search-input-wrapper input:focus {
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
    outline: none;
    box-shadow: none;
    border-color: var(--WHITE);
}

.search-bar .btn {
    background-color: var(--BACKGROUND);
    color: var(--WHITE);
    min-height: 30px;
    border-color: var(--WHITE);
}

.search-bar .btn:hover,
.search-bar .btn:focus,
.search-bar .btn:active {
    background-color: var(--WHITE);
    color: var(--BACKGROUND);
    border: 1px solid var(--WHITE);
}

button:focus,
input:focus {
    outline: none;
}

table {
    font-family: "Frutiger 45 Light";
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}

td,
th {
    border: 1px solid var(--WHITE);
    text-align: left;
    padding: 10px;
}

fieldset {
    border-spacing: 10px;
    border: 1px solid var(--WHITE);
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.thumb-buttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thumb-up,
.thumb-down {
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.score-value {
    font-weight: bold;
    font-size: 16px;
}

/* Responsive CSS */
@media screen and (max-width:991px) {
    .navbar h1 {
        font-size: 30px;
    }

    .container-fluid {
        height: auto;
    }

    .main-menu-dropdown {
        width: 100% !important;
    }

}

@media screen and (max-width:768px) {
    .tile {
        min-height: max-content;
    }

    .reset-button {
        top: 8px;
        left: 8px;
    }

    .reset-button i {
        font-size: 24px;
    }
}

@media screen and (max-width:449px) {
    footer p {
        max-width: 370px;
        margin: 0 auto;
        font-size: 11px;
    }

    #table-b td,
    #table-b th {
        position: relative;
        padding: 5px;
    }

    #table-b {
        height: calc(100% + 2px);
        font-size: 12px;
        margin-top: -2px;
    }

    td .name-card {
        margin-top: 22px;
    }

    #table-b td .function-link {
        font-size: 9px;
    }

    #table-b tr th:nth-child(2) {
        width: 42%;
    }

    .add-function-block button {
        font-size: 12px;
    }
}

/* Extra CSS */
@supports((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .popup-container {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background-color: var(--BACKGROUND);
    }
}

.blur-text {
    filter: blur(3px);
}

#DataTables_Table_0_filter {
    display: flex;
    align-items: center;
}

.clickable-div {
    cursor: pointer;
}

.clickable-problem-cell {
    cursor: pointer;
}

.clickable-solution-cell {
    cursor: pointer;
}

.clickable-solution-cell.tooltip-container {
    position: relative;
}

.questionnaire-public-view .function-cell {
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-filter: blur(0px);
    filter: blur(0px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.questionnaire-public-view .function-card {
    margin-bottom: 2rem;
}

.current-problem-solutions {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: var(--BACKGROUND);
}

.solutions-header {
    text-align: center;
    margin-bottom: 1rem;
}

.solutions-header h5 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.solution-item {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background-color: var(--BACKGROUND);
    position: relative;
    margin-bottom: 0.5rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-filter: blur(0px);
    filter: blur(0px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.solution-selection {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.selection-radio {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.selection-radio:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.selection-radio:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.solution-item.selected {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

.solution-item.selected .selection-radio {
    color: var(--WHITE);
}

.solution-item.selected .selection-radio i {
    content: "\f111";
    font-family: "FontAwesome";
}

.solution-item.selected .selection-radio i:before {
    content: "\f111";
}

.solution-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.solution-item:active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.solution-item .solution-name {
    font-weight: 600;
    color: var(--WHITE);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.4;
}

.solution-item .solution-description {
    color: var(--GRAY);
    font-size: 0.9rem;
    line-height: 1.4;
}

.questionnaire-public-view {
    background: var(--BACKGROUND);
    color: var(--WHITE);
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-filter: blur(0px);
    filter: blur(0px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.questionnaire-start-container {
    text-align: center;
    padding: 40px 20px;
    background: var(--BACKGROUND);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 15px 0;
}

.start-content h4 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--WHITE);
}

.start-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--WHITE);
    opacity: 0.9;
}

.start-btn {
    font-size: 1.3rem;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--WHITE) !important;
    background-color: var(--BACKGROUND) !important;
    color: var(--WHITE) !important;
}

.start-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
    color: var(--WHITE) !important;
}

.start-btn:active {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: var(--WHITE) !important;
}

.questionnaire-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.questionnaire-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--WHITE);
}

.questionnaire-description {
    font-size: 0.9rem;
    color: var(--WHITE);
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto 8px;
}

.questionnaire-traits {
    margin: 6px 0;
    padding: 3px 0;
    text-align: center;
}

.traits-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--WHITE);
    margin-right: 8px;
}

.trait-value {
    font-size: 1.1rem;
    color: var(--WHITE);
    font-weight: 500;
}

.questionnaire-completed-container,
.questionnaire-completion-success-container {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--BACKGROUND);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

.completed-content h4,
.completion-success-content h4 {
    color: var(--WHITE);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.completed-content p,
.completion-success-content p {
    color: var(--WHITE);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.problem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 8px 12px;
    background-color: var(--BACKGROUND);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.problem-header .problem-counter-container {
    flex: 1;
    text-align: center;
}

.problem-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 15px;
    background-color: var(--BACKGROUND);
}

.nav-btn {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background-color: var(--BACKGROUND);
    transition: all 0.3s ease;
    color: var(--WHITE) !important;
}

.nav-btn:hover {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    color: var(--WHITE) !important;
}

.nav-btn:active {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--WHITE) !important;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-btn:disabled:hover {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background-color: var(--BACKGROUND);
    transform: none;
}

.btn-success {
    background-color: var(--BACKGROUND);
    border: 2px solid var(--WHITE);
    color: var(--WHITE);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background-color: var(--BACKGROUND);
    border-color: var(--WHITE);
    color: var(--WHITE);
}

.btn-success:active {
    background-color: var(--BACKGROUND);
    border-color: var(--WHITE);
    color: var(--WHITE);
}

.problem-counter-container {
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.problem-counter {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-bottom: 8px;
}

.timer-container {
    margin-top: 5px;
}

.timer-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--WHITE);
    display: block;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.timer-display.warning {
    color: #ffd700;
    background-color: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
}

.timer-display.danger {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.completion-time {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    margin-top: 8px;
}

.current-problem-display {
    background-color: var(--BACKGROUND);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--WHITE);
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-problem-display:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.current-problem-display:active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.problem-content h4 {
    color: var(--WHITE);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

.problem-description {
    min-height: 120px;
    padding: 20px;
    background-color: var(--BACKGROUND);
    border-radius: 6px;
    border-left: 4px solid var(--WHITE);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--WHITE);
}

.loading-indicator {
    text-align: center;
    color: var(--WHITE);
    font-size: 1rem;
    padding: 1rem;
    background-color: var(--BACKGROUND);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background-color: transparent;
    border: 2px solid var(--WHITE);
    color: var(--WHITE);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--WHITE);
    color: var(--WHITE);
}

.btn-primary:active {
    background-color: transparent;
    border-color: var(--WHITE);
    color: var(--WHITE);
}

.btn-primary:disabled {
    background-color: var(--BACKGROUND);
    border-color: var(--WHITE);
    color: var(--WHITE);
    opacity: 0.6;
}

/* Override any Bootstrap button colors to prevent green/blue */
.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:visited {
    background-color: transparent !important;
    border-color: var(--WHITE) !important;
    color: var(--WHITE) !important;
}

.btn-success,
.btn-success:hover,
.btn-success:active,
.btn-success:focus,
.btn-success:visited {
    background-color: var(--BACKGROUND) !important;
    border-color: var(--WHITE) !important;
    color: var(--WHITE) !important;
}

.toggle-switch-container {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.toggle-switch-input {
    display: none;
}

.toggle-switch-label {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 16px;
    background-color: var(--GRAY);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-switch-label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background-color: var(--WHITE);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch-input:checked + .toggle-switch-label {
    background-color: var(--GRAY);
}

.toggle-switch-input:checked + .toggle-switch-label:before {
    transform: translateX(14px);
}

.function-card {
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.function-card .ranked-table,
.function-card .ordinary-table {
    -webkit-user-modify: read-only !important;
    caret-color: transparent;
    user-select: none;
}

.function-card .ranked-table td:not(:last-child) {
    pointer-events: none;
    cursor: default;
    user-select: none;
}

.function-card .ranked-table td:not(:last-child) * {
    pointer-events: none;
    user-select: none;
}

.function-card .ranked-table td:last-child {
    pointer-events: auto;
}

.function-card .ranked-table td:last-child * {
    pointer-events: auto;
    user-select: auto;
}

.function-card .ranked-table td:last-child .thumb-up,
.function-card .ranked-table td:last-child .thumb-down,
.function-card .ranked-table td:last-child button {
    cursor: pointer;
    pointer-events: auto;
}

.function-card .ranked-table td:last-child .score-container {
    pointer-events: auto;
}

.function-card span {
    display: inline-block;
    margin: 0;
    font-weight: bold;
}

.function-card .d-flex {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Hide lock icons only until JS marks the page as initialized */
body:not(.lock-init) #lockIconElement,
body:not(.lock-init) #mobileLockIconElement {
  visibility: hidden;
}

#code-sample-submit-btn{
    width: 100%;
    background-color: var(--BACKGROUND);
    border: 1px solid var(--WHITE);
    color: var(--WHITE);
    padding: 10px 20px;
    transition: all 0.2s ease;
}

#code-sample-submit-btn:hover{
    background-color: var(--WHITE);
    color: var(--BACKGROUND);
}

/* Shared Overlay Form Styles */
.code-sample-form,
.math-formula-form {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.code-sample-form .input-box,
.math-formula-form .input-box {
    position: relative;
    width: 100%;
    padding: 1rem 0;
}

.code-sample-form .input-box input,
.code-sample-form .input-box select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--WHITE);
    font-size: 1.5rem;
    padding: 0;
}

.code-sample-form .input-box select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.code-sample-form .input-box select option {
    background: var(--background);
    color: var(--ne-text-color);
    padding: 8px;
}

.code-sample-form .input-box.programing-language-section label {
    position: absolute;
    top: -5px;
    left: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.2s;
    font-size: 1.3rem;
}

.code-sample-form .input-box input:focus ~ label,
.code-sample-form .input-box input:valid ~ label,
.code-sample-form .input-box select:focus ~ label,
.code-sample-form .input-box select:valid ~ label,
.code-sample-label{
    top: -5px;
    font-size: 1.3rem;
}

.programing-language-section .select2-container{
    min-width: 25vw !important;
}

@media (max-width: 430px) {
    .programing-language-section .select2-container{
        min-width: 100% !important;
    }
}

.math-formula-form textarea:focus {
    outline: none;
    border-color: var(--WHITE);
}

/* Overlay Container Styles */
#code-sample-overlay,
#math-formula-overlay {
    max-width: 832px;
    margin: 0 auto;
}

.ne-content p{
    color: white !important;
}

.ne-content [class^="language-"] {
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.ne-content [class^="language-"]:hover {
    transform: translateY(-1px);
}

.ne-content pre[class^="language-"]::after,
.ne-content tiny-math-inline::after,
.ne-content tiny-math-block::after {
    content: 'Double-click to edit';
    position: absolute;
    top: 5px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.ne-content pre[class^="language-"]:hover::after,
.ne-content tiny-math-block:hover::after,
.ne-content tiny-math-inline:hover::after {
    opacity: 1;
}

.ne-content [class^="language-"] * {
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    padding-left: 8px;
}

@media (max-width: 768px) {
    .code-sample-form,
    .math-formula-form {
        padding: 20px;
    }
}

/* Math Formula Specific Styles */
.math-formula-form .input-box.preview-box {
    min-height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.math-formula-label,
.math-preview-label {
    position: absolute;
    top: -5px;
    left: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.2s;
    font-size: 1.3rem;
}

.math-preview {
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--WHITE);
    padding: 1rem;
    overflow-x: auto;
}

.math-preview:empty::before {
    content: 'Preview will appear here';
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.ne-content tiny-math-block {
    display: block;
    cursor: pointer !important;
    position: relative;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
}

.ne-content tiny-math-inline {
    display: inline;
    cursor: pointer !important;
    vertical-align: middle;
    position: static;
    max-width: 100%;
    overflow-x: auto;
}

/* Math blocks on station page (outside .ne-content) */
.content-block tiny-math-block,
.function-cell tiny-math-block,
.study-card tiny-math-block {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
}

.content-block tiny-math-inline,
.function-cell tiny-math-inline,
.study-card tiny-math-inline {
    display: inline;
    max-width: 100%;
    overflow-x: auto;
}

.content-block table td,
.content-block table th{
    max-width: 25rem;
    min-width: 25rem;
}