:root {
    --bg-color: #ffffff;
    --light-bg: #f5f5f5;
    --light-border: #ddd;
    --text-color: #333333;
    --primary-color: #333333;
    --focus-color: #4D90FE;
    --list-marker-color: #555555;
    --header-bg: #333333;
    --toggle-bg: #e0e0e0;
    --toggle-thumb: #555555;
    --button-primary: #007bff;
    --button-primary-hover: #0056b3;
    --button-disabled: #ccc;
    --button-secondary-bg: #f8f9fa;
    --button-secondary-hover: #e2e6ea;
    --button-secondary-border: #dae0e5;
    --spacing-xs: clamp(4px, 1vw, 8px);
    --spacing-sm: clamp(6px, 1.5vw, 10px);
    --spacing-md: clamp(8px, 2vw, 16px);
    --spacing-lg: clamp(16px, 3vw, 24px);
    --font-size-xs: clamp(10px, 1.8vw, 11px);
    --font-size-sm: clamp(12px, 2.5vw, 14px);
    --font-size-md: clamp(14px, 3vw, 16px);
    --font-size-lg: clamp(16px, 3vw, 24px);
    --border-radius: 4px;
    --transition-speed: 0.2s;
}

[data-theme="dark"] {
    --bg-color: #222222;
    --light-bg: #2d2d2d;
    --text-color: #e0e0e0;
    --primary-color: #f0f0f0;
    --focus-color: #5D9FFF;
    --list-marker-color: #aaaaaa;
    --header-bg: #333333;
    --toggle-bg: #555555;
    --toggle-thumb: #e0e0e0;
}

* {
    box-sizing: border-box !important;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    max-width: 100%
}

/*
BUTTON SYSTEM:
- .btn (primary button - blue)
- .btn .btn-secondary (secondary button - gray)
- .btn .btn-link (link-style button)
*/

/* Unified button base class */
.btn {
    padding: .375rem .75rem;
    background: var(--button-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: var(--spacing-sm);
    white-space: normal;
    font-size: var(--font-size-sm);
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
    text-decoration: none;
}

.btn:hover {
    background: var(--button-primary-hover);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    background: var(--button-disabled);
    cursor: not-allowed;
    transform: none;
}

/* Button variants */
.btn-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--light-border);
}

.btn-secondary:hover {
    background-color: var(--button-secondary-hover);
    border-color: var(--button-secondary-border);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-secondary {
    background-color: #333333;
    border-color: #555555;
    color: var(--text-color);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: #444444;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: rgb(25, 118, 210);
    font-weight: normal;
    text-decoration: none;
    margin: 0;
}

.btn-link:hover {
    background: none;
    text-decoration: underline;
    color: rgb(13, 71, 161);
    transform: none;
}

.button-container {
    margin-bottom: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    flex-wrap: nowrap;
}

/* ===== Quiz Topics Tabs (Mobile-Friendly Quiz Configuration) ===== */
.quiz-topics-tabs-container {
    margin-top: 0.75rem;
}

.quiz-topics-tab-headers {
    display: flex;
    border-bottom: 2px solid var(--light-border, #ddd);
    margin-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quiz-topics-tab-headers::-webkit-scrollbar {
    display: none;
}

.quiz-topics-tab-header {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color, #666);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.quiz-topics-tab-header:hover {
    color: var(--focus-color, #4D90FE);
    background-color: var(--light-bg, #f5f5f5);
}

.quiz-topics-tab-header.active {
    color: var(--focus-color, #4D90FE);
    border-bottom-color: var(--focus-color, #4D90FE);
    font-weight: 600;
}

.quiz-topics-tab-content {
    position: relative;
}

.quiz-topics-tab {
    display: none;
}

.quiz-topics-tab.active {
    display: block;
}

.quiz-topics-tab .quiz-topics-list {
    max-height: none;
    overflow-y: visible;
}

/* Mobile optimizations for tabs */
@media (max-width: 768px) {
    .quiz-topics-tab-headers {
        justify-content: flex-start;
        gap: 0;
    }
    
    .quiz-topics-tab-header {
        flex: 1;
        text-align: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

ul {
    padding-inline-start: 1em;
}

/* styling for top header */
#top-header-container {
    background-color: var(--header-bg);
    color: white;
    padding: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#left-header,
#right-header {
    display: flex;
    align-items: center;
}

#menu-icon,
#user-icon {
    font-size: 24px;
    cursor: pointer;
    margin: 0 10px;
}

#user-icon {
    margin-top: 6px;
}

#company-logo {
    font-size: 20px;
    font-weight: bold;
    margin-left: 10px;
    padding-top: 5px;
    cursor: pointer;
}

#favorites-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin: 0 10px;
}

#favorites-icon svg {
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* styling for sidebar */
#sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    max-width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    display: block;
}

#sidebar.open {
    left: 0;
    display: block;
}

#sidebar-close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    display: block;
}

#action-list {
    list-style-type: none;
    padding: var(--spacing-lg);
    margin: 0;
    margin-top: var(--spacing-md);
}

#action-list li {
    margin-bottom: var(--spacing-sm);
}

.divider {
    height: 1px;
    background-color: var(--light-border);
    margin: var(--spacing-md) 0;
}

input {
    border: 1px solid var(--light-border);
    color: var(--text-color)
}

.numberCircle {
    font: 12px Arial, sans-serif;
    /* change font-size to scale*/
    width: 1.6em;
    height: 1.6em;
    box-sizing: initial;
    background: #fff;
    border: 0.1em solid #666;
    color: #666;
    text-align: center;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    line-height: 1.6em;
    box-sizing: content-box;
}

#youtube-player-container {
    width: '560px';
    height: '315px';
}

@media (max-width: 500px) {
    /* Hide company logo on very small screens */
    #company-logo {
        font-size: 12px;
        margin-left: 5px;
    }

    /* Make header elements smaller */
    #menu-icon,
    #user-icon {
        font-size: 20px;
        margin: 0 5px;
    }

    #favorites-icon {
        width: 20px;
        height: 20px;
        margin: -7px 5px 0 5px;
    }

    /* Adjust dark mode toggle */
    #top-header-container .theme-switch {
        width: 2.5rem !important;
        height: 1.2rem !important;
    }

    #top-header-container .theme-switch .slider:before {
        height: 0.8rem;
        width: 0.8rem;
    }

    #top-header-container input:checked+.slider:before {
        transform: translateX(1.2rem);
    }

    /* Hide toggle label on very small screens */
    #top-header-container .toggle-label {
        display: none;
    }

    /* Ensure header doesn't overflow */
    #top-header-container {
        padding: 3px;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    #songs-list-header {
        display: none;
    }

    #youtube-player-container {
        width: fit-content;
    }

    /* Modal responsive styles */
    .modal-window,
    .modal-page-container {
        width: calc(100% - 32px);
        max-width: none;
    }

    /* Activity title responsive styles */
    .activity-title {
        width: 100%;
        margin: 5px 0;
        order: -1;
    }
}

@media (max-width: 250px) {
    #company-logo {
        display: none;
    }
}

/* Add a mid-size breakpoint for smoother transition */
@media (min-width: 501px) and (max-width: 768px) {
    #company-logo {
        font-size: 18px;
    }

    #top-header-container .toggle-label {
        font-size: 0.75rem;
    }
}

@media (min-width: 1000px) {
    body {
        width: 1000px;
    }
}

a {
    color: rgb(25, 118, 210);
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    width: auto;
    /* so it doesn't take the width of a flex container */
}

a:hover {
    text-decoration: underline;
    color: rgb(13, 71, 161);
}


/* Allow scrolling only on outer-container */
#outer-container {
    overflow: auto;
    flex: 1;
    width: 100%;
    margin: auto;
    text-align: left;
    max-width: 1000px;
    position: relative;
    display: flex;
    flex-direction: column;
}

#content-container {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin: 0px;
    padding: var(--spacing-md);
}

#core-page-container {
    color: var(--text-color);
    position: relative;
    min-height: 50px;
}

.horSeparator {
    margin: 6px 0px 2px 0px;
    height: 1px;
    width: 100%;
    max-width: 640px;
    background-color: gray;
}

.progress-bar {
    width: 300px;
    height: 20px;
    background-color: var(--toggle-bg);
    border-radius: 10px;
    overflow: hidden;
    margin: var(--spacing-lg) 0;
}

.progress {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.5s ease-in-out;
}

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Modal Window Base Styles */
.modal-window,
.modal-page-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--light-border);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    z-index: 1001;
    /* Ensure modal appears above overlay which is z-index 1000 */
    animation: modal-fade-in 0.2s ease-out;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Dark mode modal window */
[data-theme="dark"] .modal-window,
[data-theme="dark"] .modal-page-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Modal overlay - centered flex container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}


.modal-content {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: auto;
    padding: var(--spacing-sm);
    transition: background-color 0.3s ease, color 0.3s ease;
}


.modal-page-close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    margin: 0;
    line-height: 1;
    z-index: 1;
}


.modal-page-close-icon:hover {
    color: #666;
}

[data-theme="dark"] .modal-page-close-icon:hover {
    color: #aaa;
}

/* Text content */
.modal-text-content {
    margin: var(--spacing-md) var(--spacing-sm);
    line-height: 1.5;
    color: var(--text-color);
    transition: color 0.3s ease;
}


/* Force text color in all nested elements for dark mode */
[data-theme="dark"] .modal-text-content p,
[data-theme="dark"] .modal-text-content div,
[data-theme="dark"] .modal-text-content span,
[data-theme="dark"] .modal-text-content h1,
[data-theme="dark"] .modal-text-content h2,
[data-theme="dark"] .modal-text-content h3,
[data-theme="dark"] .modal-text-content h4,
[data-theme="dark"] .modal-text-content h5,
[data-theme="dark"] .modal-text-content h6,
[data-theme="dark"] .modal-text-content li {
    color: #e0e0e0 !important;
}

/* Image container */
.modal-image-container {
    margin: var(--spacing-sm);
    text-align: center;
    background-color: var(--bg-color);
    padding: var(--spacing-sm);
    border: 1px solid var(--light-border);
    border-radius: 4px;
    display: inline-block;
    transition: border-color 0.3s ease;
}

[data-theme="dark"] .modal-image-container {
    border-color: #444;
    /* Keep white background for images in dark mode */
}

/* Images */
.modal-image {
    max-width: 100%;
    margin: 0;
    filter: none !important;
    /* Never apply any filter to images */
}

/* Links inside modal content */
.modal-text-content a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.2s ease;
}

.modal-text-content a:hover {
    text-decoration: underline;
    color: #0056b3;
}

[data-theme="dark"] .modal-text-content a {
    color: #4dabff;
}

[data-theme="dark"] .modal-text-content a:hover {
    color: #6dc0ff;
}

.modal-page-heading {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
    padding-right: 30px;
}


.modal-page-label {
    display: block;
    margin-top: 10px;
    color: #666;
}

[data-theme="dark"] .modal-page-label {
    color: #aaaaaa;
}

.modal-page-input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid var(--light-border);
    border-radius: 4px;
}

[data-theme="dark"] .modal-page-input {
    background-color: #333333;
    color: #e0e0e0;
    border-color: #555555;
}

[data-theme="dark"] .modal-page-input:focus {
    border-color: #4dabff;
    outline-color: #4dabff;
}

.modal-page-p {
    margin-top: 15px;
    color: #666;
}

[data-theme="dark"] .modal-page-p {
    color: #cccccc;
}

.modal-page-a {
    display: block;
    color: #0066cc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

[data-theme="dark"] .modal-page-a {
    color: #4dabff;
}

.modal-page-a:hover {
    color: #004499;
    text-decoration: underline;
}

[data-theme="dark"] .modal-page-a:hover {
    color: #6dc0ff;
}

.modal-page-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 5px;
    margin-bottom: 0;
}

[data-theme="dark"] .modal-page-footer {
    border-top-color: #444444;
}


.modal-page-message {
    margin-top: 10px;
    color: red;
}

[data-theme="dark"] .modal-page-message {
    color: #ff7777;
    /* Red but lighter for dark mode */
}

.modal-page-ul {
    list-style-type: none;
    padding: 0;
}

.modal-page-li {
    margin-bottom: 10px;
    color: #666;
}

[data-theme="dark"] .modal-page-li {
    color: #cccccc;
}

/* styling for prompts/messages */
.prompt-dialog {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

[data-theme="dark"] .prompt-dialog {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.prompt-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: var(--text-color);
}


.prompt-message {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.4;
}

[data-theme="dark"] .prompt-message {
    color: #cccccc;
}

.prompt-button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}


.prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confetti-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    border-radius: 50%;
    opacity: 0;
}

@keyframes confettiAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translate(var(--x), var(--y)) rotate(720deg);
        opacity: 0;
    }
}

.hotspot {
    cursor: pointer;
    position: absolute;
    border: 2px solid red;
    background-color: red;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

/* Question page specific styles */
.question-text,
.answer-section,
.response-section {
    font-size: 1rem;
    margin-bottom: 0.1rem;
    line-height: 1.2;
    box-sizing: border-box;
    /* Ensure padding is included in width */
    transition: width 0.3s ease;
    /* Smooth transition when width changes */
}

.question-text {
    font-weight: bold;
}

.answer-section {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.answer-option {
    display: flex;
    align-items: baseline;
    padding: 0.3rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
    margin-left: 5px;
}

.answer-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.answer-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.answer-option label {
    cursor: pointer;
    flex: 1;
}

.response-section {
    min-height: 3rem;
}

.response-text {
    padding: 0.5rem 0;
    font-weight: bold;
    min-height: 24px;
    /* Ensure this area has height even when empty */
    width: 100%;
    /* Take full width of its parent container */
}

/* Image wrapper for question pages */
.question-image-wrapper {
    display: block;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

/* Scaled question page specific styling */
[data-scaled="true"] .answer-option {
    padding: 0.75rem 0.5rem;
}

[data-scaled="true"] .answer-option input[type="radio"] {
    transform: scale(1.2);
    margin-right: 1rem;
}

[data-scale-factor] .question-text {
    font-size: calc(1rem / var(--scale-factor, 1));
    margin-bottom: calc(1.5rem / var(--scale-factor, 1));
}

[data-scale-factor] .answer-option {
    padding: calc(0.5rem / var(--scale-factor, 1));
}

[data-scale-factor] .answer-option input[type="radio"] {
    transform: scale(calc(1.2 / var(--scale-factor, 1)));
    margin-right: calc(0.75rem / var(--scale-factor, 1));
}

/* Make sure the buttons remain clickable at all scales */
.viewport-scaler-wrapper .answer-option {
    position: relative;
    z-index: 5;
}

/* ViewportScaler styles */
.viewport-scaler-wrapper {
    transform-origin: top left;
    width: 100%;
    position: relative;
    overflow: visible !important;
}

.viewport-scaler-wrapper * {
    max-height: none !important;
}

/* Prevent unnecessary whitespace */
.viewport-scaler-wrapper #main-container {
    margin-bottom: 0 !important;
}

.viewport-scaler-wrapper #main-container button {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

/* Make sure continue button doesn't add extra height */
.viewport-scaler-wrapper .btn {
    margin-bottom: 5px !important;
}


/* Dark Mode Toggle in Header Styles */
#top-header-container .theme-switch-wrapper {
    margin: 0;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

#top-header-container .toggle-label {
    margin-left: 0.625rem;
    font-size: 0.875rem;
    color: white;
    /* Always white for visibility against dark header */
    white-space: nowrap;
}

#top-header-container .theme-switch {
    display: inline-block;
    height: 1.5rem;
    position: relative;
    width: 3rem;
    margin: 0 10px;
    vertical-align: middle;
}

#top-header-container .theme-switch input {
    display: none;
}

#top-header-container .slider {
    background-color: #666;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 1.5rem;
}

#top-header-container .slider:before {
    background-color: white;
    bottom: 0.25rem;
    content: "";
    height: 1rem;
    left: 0.25rem;
    position: absolute;
    transition: .4s;
    width: 1rem;
    border-radius: 50%;
}

#top-header-container input:checked+.slider:before {
    transform: translateX(1.5rem);
}

/* Apply theme colors to main content areas */
[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] #content-container {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] #sidebar {
    background-color: #333;
}

/* hover color for sidebar item */
[data-theme="dark"] a.dropdown-item:hover {
    background-color: black;
}

/* Make sure images display correctly in dark mode */
[data-theme="dark"] img:not([data-native-dark="true"]) {
    filter: invert(1) hue-rotate(180deg);
}

/* Ensure images are not inverted in dark mode */
[data-theme="dark"] img[data-no-invert="true"] {
    filter: none !important;
    /* Override the global inversion */
}

/* Ensure theme colors are applied to rendered content */
[data-theme="dark"] #core-page-container {
    color: var(--text-color, #e0e0e0);
    background-color: var(--bg-color, #222222);
}

/* Make sure all text in the rendered content gets proper colors,
   EXCEPT elements that are explicitly exempted */
[data-theme="dark"] #core-page-container *:not([data-dark-mode-exempt="true"]) {
    color: var(--text-color, #e0e0e0);
}

/* For specific elements that need explicit styling,
   also excluding exempted elements */
[data-theme="dark"] #core-page-container h1:not([data-dark-mode-exempt="true"]),
[data-theme="dark"] #core-page-container p:not([data-dark-mode-exempt="true"]),
[data-theme="dark"] #core-page-container li:not([data-dark-mode-exempt="true"]) {
    color: var(--text-color, #e0e0e0);
}

[data-theme="light"] img[data-native-dark="true"],
:root:not([data-theme]) img[data-native-dark="true"] {
    filter: invert(1) hue-rotate(180deg);
}

/* Wall UI Specific Styles */

/* Wall container styles */
.wall {
    box-sizing: border-box;
}

.wall-full-mode {
    width: fit-content;
    max-width: 500px;
    text-align: center;
    border-collapse: separate;
    border-spacing: 0px;
    border: 1px solid rgb(224, 224, 224);
    border-radius: 8px;
    margin: 0px;
    padding: 10px;
}

/* Sphere color classes - using background colors from original inline styles */
.sphere-red {
    background-color: #FFCCCC;
}

.sphere-green {
    background-color: lightgreen;
}

.sphere-yellow {
    background-color: yellow;
}

/* Wall items hover behavior */
.wall-item-hover {
    color: #ff8c00 !important;
    /* Orange color for hover state */
}

/* Recent item indicators */
.recent-item {
    color: red !important;
}

.recent-indicator {
    color: red;
    margin: 0px 5px 5px 5px;
    font-style: italic;
}

/* Recent sphere indicator */
.recent-sphere {
    position: relative;
}

.recent-sphere::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
  /*  animation: pulse 2s infinite; */
}

/* Pulse animation for recent indicator */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Dark mode support for recent sphere indicator */
[data-theme="dark"] .recent-sphere::after {
    background-color: #ff5555;
    box-shadow: 0 0 0 0 rgba(255, 85, 85, 0.7);
}

/* Activity rows styling */
.act-row {
    margin: 3px 5px 0px 0px;
    display: flex;
}

.act-row-left {
    display: inline-block;
    width: 45px;
    height: 19px;
}

.act-row-right {
    display: inline-block;
    max-width: 75%;
    vertical-align: top;
}

/* List block items */
.list-block-item {
    position: absolute;
    display: inline;
    width: 30px;
    height: 16px;
    border: 1px solid white;
    margin: 2px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 12px;
    color: var(--link-color, rgb(25, 118, 210));
    text-align: center;
}

/* List sphere container */
.list-sphere-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* List title styling */
.list-title {
    margin-right: 10px;
}

/* Wall block items */
.wall-block-item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    transition: color 0.2s ease;
}

.wall-block-item.small-text {
    font-size: 8px !important;
}

.wall-block-item.medium-text {
    font-size: 10px !important;
}

/* Wall sphere items */
.wall-sphere {
    transition: color 0.2s ease;
}

/* Connected items hover behavior using data attributes */
[data-wall-item-id]:hover,
[data-wall-item-id]:hover~[data-wall-item-id],
[data-wall-item-id]:hover+[data-wall-item-id] {
    color: #ff8c00;
}

/* Support for dark mode */
[data-theme="dark"] .wall-full-mode {
    border-color: #444;
}

[data-theme="dark"] .wall-item-hover {
    color: #ffa500 !important;
    /* Brighter orange for dark mode */
}

[data-theme="dark"] .list-block-item {
    border-color: #444;
}

/* Ensure active state is distinguishable in dark mode */
[data-theme="dark"] .sphere-red {
    background-color: #aa5555;
}

[data-theme="dark"] .sphere-green {
    background-color: #55aa55;
}

[data-theme="dark"] .sphere-yellow {
    background-color: #aaaa55;
}

/* Accessibility improvements */
:focus {
    outline: 0.125rem solid var(--focus-color);
    outline-offset: 0.125rem;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
  
/* Activity title styles*/
.activity-title {
  cursor: pointer;
  transition: color 0.2s ease;
  margin: 0 5px;
  font-weight: normal;
  flex-grow: 1;
}

.activity-title:hover,
.activity-title.wall-item-hover {
  color: #ff8c00; /* Orange color for hover state */
  text-decoration: underline;
}

/* Ensure dark mode compatibility */
[data-theme="dark"] .activity-title:hover,
[data-theme="dark"] .activity-title.wall-item-hover {
  color: #ffa54f; /* Lighter orange for dark mode */
}

