.main-content{
    display: flex;
    flex-direction: column;
    align-self: center;
    gap: 4px;
    width: 100%;
    max-width: 800px;
    flex-grow: 1;
    box-sizing: border-box;
  }

.summary-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 15px 20px;
    background-color: #1f2833;
    border-radius: 8px;
    border: 1px solid #45a29e;
    margin-top: 20px;
    margin-bottom: 20px;
}

.summary-container .content-title {
    width: 100%;
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
    color: #66fcf1;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
}

.summary-container .submitted-info {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #66fcf1;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(69, 162, 158, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.summary-container .subcategory-info {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #66fcf1;
    font-weight: 500;
    margin-bottom: 6px;
}

.summary-container .tags-info {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 8px;
}

.summary-container .tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #2a3441;
    border: 1px solid #45a29e;
    border-radius: 12px;
    font-size: 11px;
    color: #c5c6c7;
    transition: all 0.2s ease;
}

.summary-container .tag:hover {
    background-color: #45a29e;
    color: #0b0c10;
    cursor: pointer;
}

body.light-mode .summary-container .subcategory-info {
    color: var(--text-accent, #2c7873);
}

body.light-mode .summary-container .tag {
    background-color: var(--bg-secondary, #e8e8e8);
    border-color: var(--text-accent, #2c7873);
    color: var(--text-primary, #1f2833);
}

body.light-mode .summary-container .tag:hover {
    background-color: var(--text-accent, #2c7873);
    color: #ffffff;
}

.voted-indicator {
    color: #66fcf1;
    font-size: 16px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: rgba(102, 252, 241, 0.2);
    border-radius: 50%;
    border: 1px solid #66fcf1;
    flex-shrink: 0;
}

.summary-container .vote-count,
.summary-container .comment-count {
    color: #66fcf1;
    font-weight: 600;
    font-size: 15px;
}

a {
    text-decoration: none;
}

.summary-container a {
    color: #66fcf1;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.summary-container a:hover {
    color: #45a29e;
    background-color: rgba(102, 252, 241, 0.1);
}

/* Share dropdown */
.share-wrapper {
    position: relative;
    display: inline-block;
}

.share-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a2230;
    border: 1px solid #45a29e;
    border-radius: 8px;
    padding: 6px 0;
    min-width: 180px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.share-menu.active {
    display: flex;
    flex-direction: column;
}

.share-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #45a29e;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #c5c6c7;
    font-size: 13px;
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.share-option:hover {
    background-color: rgba(102, 252, 241, 0.1);
    color: #66fcf1;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    font-size: 14px;
    font-weight: bold;
    color: #66fcf1;
}

body.light-mode .share-menu {
    background-color: #f0f0f0;
    border-color: var(--text-accent, #2c7873);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.light-mode .share-menu::after {
    border-top-color: var(--text-accent, #2c7873);
}

body.light-mode .share-option {
    color: var(--text-primary, #1f2833);
}

body.light-mode .share-option:hover {
    background-color: rgba(44, 120, 115, 0.1);
    color: var(--text-accent, #2c7873);
}

body.light-mode .share-icon {
    color: var(--text-accent, #2c7873);
}

.media-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

iframe,
video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Button Styles - scoped to main content to avoid affecting navigation */
.main-content button:not(.button-container button),
#main-content button:not(.button-container button) {
    padding: 10px 20px;
    background-color: #66fcf1;
    border: none;
    border-radius: 5px;
    color: #0b0c10;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    transition: background-color 0.2s, color 0.2s;
}

.main-content button:not(.button-container button):hover,
#main-content button:not(.button-container button):hover {
    background-color: #45a29e;
    color: #c5c6c7;
}

.main-content button:not(.button-container button):active,
#main-content button:not(.button-container button):active {
    background-color: #1f2833;
    color: #66fcf1;
}

/* Button Container */
.button-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

/* Submit Button */
.button-container #btnSubmit,
#btnSubmit {
    background-color: #66fcf1;
    border-radius: 5px;
    border: none;
    color: #0b0c10;
    font-weight: bold;
    cursor: pointer;
    box-sizing: border-box;
}

.button-container #btnSubmit:hover,
#btnSubmit:hover {
    background-color: #45a29e;
    color: #c5c6c7;
}

/* Legacy toggle button (kept for non-authenticated results view) */
#toggleCurrentResults {
    background-color: #45a29e;
    border-radius: 5px;
    border: none;
    color: #c5c6c7;
    font-weight: bold;
    cursor: pointer;
    box-sizing: border-box;
}

#toggleCurrentResults:hover {
    background-color: #66fcf1;
    color: #0b0c10;
}

/* Toggle Results Button */
#toggleButton {
    padding: 10px 20px;
    background-color: #1f2833;
    border: 1px solid #66fcf1;
    border-radius: 5px;
    color: #66fcf1;
    font-size: 14px;
    cursor: pointer;
    margin: 10px 0;
}

#toggleButton:hover {
    background-color: #45a29e;
    color: #c5c6c7;
    border-color: #45a29e;
}

/* Image Navigation Buttons Container */
.image-nav-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Image Navigation Buttons */
#prevImage,
#nextImage {
    padding: 8px 16px;
    background-color: #1f2833;
    border: 1px solid #66fcf1;
    border-radius: 5px;
    color: #66fcf1;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
    width: 120px;
    box-sizing: border-box;
}

#prevImage:hover,
#nextImage:hover {
    background-color: #45a29e;
    color: #c5c6c7;
    border-color: #45a29e;
}

/* Image Counter */
.image-counter {
    color: #c5c6c7;
    font-size: 14px;
    font-weight: 500;
    padding: 0 10px;
    min-width: 60px;
    text-align: center;
}

/* Comment Submit Buttons - scoped to main content to avoid affecting navigation */
.main-comment-container button[type="submit"],
.main-content form button[type="submit"]:not(.button-container button),
#main-content form button[type="submit"]:not(.button-container button) {
    padding: 10px 16px;
    background-color: #66fcf1;
    border-radius: 5px;
    border: none;
    color: #0b0c10;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 0;
    align-self: stretch;
    white-space: nowrap;
}

.main-comment-container button[type="submit"]:hover,
.main-content form button[type="submit"]:not(.button-container button):hover,
#main-content form button[type="submit"]:not(.button-container button):hover {
    background-color: #45a29e;
    color: #c5c6c7;
}

/* Comment Input Styling - scoped to main content to avoid affecting navigation */
.main-comment-container input[type="text"],
.main-content form input[type="text"],
#main-content form input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 0;
    background-color: #0b0c10;
    border: 1px solid #45a29e;
    color: #c5c6c7;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 14px;
    flex: 1;
}

.main-comment-container input[type="text"]:focus,
.main-content form input[type="text"]:focus,
#main-content form input[type="text"]:focus {
    outline: none;
    border-color: #66fcf1;
}

/* Comment Container */
.main-comment-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #1f2833;
    border-radius: 5px;
    border: 1px solid #45a29e;
}

.main-comment-container form {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.comment-char-counter {
    font-size: 12px;
    color: #9e9e9e;
    margin-top: 4px;
    text-align: right;
    font-weight: 400;
}

/* Comments Section - Reddit-like styling */
.comments-section {
    margin-top: 20px;
}

.comments-header {
    font-size: 20px;
    font-weight: 600;
    color: #66fcf1;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(69, 162, 158, 0.3);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-header:hover {
    color: #45a29e;
}

.comments-chevron {
    font-size: 14px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.comments-section.collapsed .comments-chevron {
    transform: rotate(-90deg);
}

.comments-section.collapsed .comments-body {
    display: none;
}

.no-comments-message {
    text-align: center;
    padding: 40px 20px;
    color: #c5c6c7;
    background-color: rgba(31, 40, 51, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(69, 162, 158, 0.3);
    margin-top: 16px;
    margin-bottom: 16px;
}

.no-comments-message p {
    font-size: 16px;
    margin: 0;
    color: #9e9e9e;
    font-style: italic;
}

.no-comments-message a {
    color: #66fcf1;
    text-decoration: none;
    font-weight: 500;
    font-style: normal;
}

.no-comments-message a:hover {
    color: #45a29e;
    text-decoration: underline;
}

.comment-thread {
    position: relative;
    margin-bottom: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-thread[data-depth="0"] {
    margin-bottom: 12px;
}

.comment-item {
    position: relative;
    padding: 8px 12px;
    background-color: transparent;
    color: #c5c6c7;
    border-radius: 4px;
    transition: background-color 0.1s ease;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}

.comment-thread[data-depth="0"] > .comment-item {
    background-color: rgba(31, 40, 51, 0.3);
    padding: 12px 16px;
}

.comment-thread[data-depth="0"] > .comment-item:hover {
    background-color: rgba(31, 40, 51, 0.5);
}

.comment-thread[data-depth="1"] > .comment-item {
    border-left: 2px solid rgba(69, 162, 158, 0.3);
    padding-left: 24px;
    margin-left: 8px;
}

.comment-thread[data-depth="1"] > .comment-item .comment-reply-form {
    margin-left: -12px;
    margin-right: 0;
    max-width: calc(100% + 12px);
}

.comment-thread[data-depth="2"] > .comment-item {
    border-left: 2px solid rgba(69, 162, 158, 0.25);
    padding-left: 24px;
    margin-left: 8px;
}

.comment-thread[data-depth="2"] > .comment-item .comment-reply-form {
    margin-left: -12px;
    margin-right: 0;
    max-width: calc(100% + 12px);
}

.comment-thread[data-depth="3"] > .comment-item {
    border-left: 2px solid rgba(69, 162, 158, 0.2);
    padding-left: 24px;
    margin-left: 8px;
}

.comment-thread[data-depth="3"] > .comment-item .comment-reply-form {
    margin-left: -12px;
    margin-right: 0;
    max-width: calc(100% + 12px);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: #66fcf1;
    text-decoration: none;
}

.comment-time {
    font-size: 11px;
    color: #9e9e9e;
    font-weight: 400;
}

.comment-content {
    margin: 6px 0;
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
}

.comment-actions {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-reply-link,
.comment-report-link {
    color: #9e9e9e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.comment-reply-link:hover,
.comment-report-link:hover {
    color: #66fcf1;
    background-color: rgba(102, 252, 241, 0.1);
}

.comment-replies {
    margin-top: 8px;
    margin-left: 0;
}

.comment-reply-form {
    margin-top: 12px;
    padding: 12px;
    background-color: rgba(31, 40, 51, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(69, 162, 158, 0.3);
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.comment-reply-form form {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
}

.comment-reply-form .comment-char-counter {
    font-size: 11px;
    color: #9e9e9e;
    margin-top: 4px;
    text-align: right;
    font-weight: 400;
}

.comment-reply-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    background-color: #0b0c10;
    border: 1px solid #45a29e;
    border-radius: 4px;
    color: #c5c6c7;
    font-size: 14px;
    margin-bottom: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.comment-reply-form input[type="text"]:focus {
    outline: none;
    border-color: #66fcf1;
    background-color: #0b0c10;
}

.comment-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: stretch;
}

.comment-submit-btn,
.comment-cancel-btn {
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    white-space: nowrap;
    align-self: stretch;
    height: auto;
}

.comment-submit-btn {
    background-color: #66fcf1;
    color: #0b0c10;
}

.comment-submit-btn:hover {
    background-color: #45a29e;
}

.comment-cancel-btn {
    background-color: transparent;
    color: #9e9e9e;
    border: 1px solid rgba(69, 162, 158, 0.3);
}

.comment-cancel-btn:hover {
    background-color: rgba(31, 40, 51, 0.5);
    color: #c5c6c7;
}

/* Radar Input Container */
.radar-input {
    margin: 20px 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    background-color: #1f2833;
    border: 1px solid #45a29e;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102, 252, 241, 0.1);
    box-sizing: border-box;
}

.radar-input form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.radar-current {
    margin: 20px 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: #1f2833;
    border: 1px solid #45a29e;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102, 252, 241, 0.1);
}

.no-votes-message {
    text-align: center;
    padding: 40px 20px;
    color: #c5c6c7;
}

.no-votes-message p {
    font-size: 18px;
    margin: 0;
    color: #9e9e9e;
    font-style: italic;
}

#spiderGraphCanvas,
#spiderGraphCanvas2 {
    display: block;
    margin: 0 auto;
    overflow: visible;
}

#spiderGraphCanvas {
    touch-action: pan-y;
}

#spiderGraphCanvas2 {
    touch-action: auto;
}

/* Description Styling */
.description {
    margin: 20px 0;
    padding: 15px;
    background-color: #1f2833;
    border-radius: 5px;
    border: 1px solid #45a29e;
    color: #c5c6c7;
    line-height: 1.6;
}

/* Vote and Comment Count Styling */
.vote-count,
.comment-count {
    color: #66fcf1;
    font-weight: bold;
}

/* Light mode styles */
body.light-mode .summary-container {
    background-color: var(--bg-secondary, #f5f5f5);
    border-color: var(--border-color, #45a29e);
}

body.light-mode .summary-container .content-title {
    color: #000000;
}

body.light-mode .summary-container .submitted-info {
    color: var(--text-accent, #2c7873);
    border-bottom-color: rgba(44, 120, 115, 0.3);
}

body.light-mode .voted-indicator {
    color: var(--text-accent, #2c7873);
    background-color: rgba(44, 120, 115, 0.15);
    border-color: var(--text-accent, #2c7873);
}

body.light-mode .summary-container .vote-count,
body.light-mode .summary-container .comment-count {
    color: var(--text-accent, #2c7873);
}

body.light-mode .summary-container a {
    color: var(--text-accent, #2c7873);
}

body.light-mode .summary-container a:hover {
    color: var(--text-secondary, #45a29e);
    background-color: rgba(44, 120, 115, 0.1);
}

/* Light mode for description */
body.light-mode .description {
    background-color: var(--bg-secondary, #f5f5f5);
    border-color: var(--border-color, #45a29e);
    color: var(--text-primary, #333333);
}

/* Light mode for main-comment-container */
body.light-mode .main-comment-container {
    background-color: var(--bg-secondary, #f5f5f5);
    border-color: var(--border-color, #45a29e);
}

/* Light mode for comment items */
body.light-mode .comment-thread[data-depth="0"] > .comment-item {
    background-color: rgba(245, 245, 245, 0.5);
}

body.light-mode .comment-thread[data-depth="0"] > .comment-item:hover {
    background-color: rgba(245, 245, 245, 0.8);
}

body.light-mode .comment-thread[data-depth="1"] > .comment-item,
body.light-mode .comment-thread[data-depth="2"] > .comment-item,
body.light-mode .comment-thread[data-depth="3"] > .comment-item {
    border-left-color: rgba(44, 120, 115, 0.3);
}

body.light-mode .comment-item {
    color: var(--text-primary, #333333);
}

body.light-mode .comment-author {
    color: var(--text-accent, #2c7873);
}

body.light-mode .comment-time {
    color: #7a7a7a;
}

body.light-mode .comment-reply-link,
body.light-mode .comment-report-link {
    color: #7a7a7a;
}

body.light-mode .comment-reply-link:hover,
body.light-mode .comment-report-link:hover {
    color: var(--text-accent, #2c7873);
    background-color: rgba(44, 120, 115, 0.1);
}

body.light-mode .comment-reply-form {
    background-color: var(--bg-secondary, #f5f5f5);
    border-color: var(--border-color, #45a29e);
}

body.light-mode .comment-reply-form input[type="text"] {
    background-color: #ffffff;
    border-color: var(--border-color, #45a29e);
    color: var(--text-primary, #333333);
}

body.light-mode .comment-reply-form input[type="text"]:focus {
    border-color: var(--text-accent, #2c7873);
    background-color: #ffffff;
}

body.light-mode .comment-cancel-btn {
    border-color: rgba(44, 120, 115, 0.3);
    color: #7a7a7a;
}

body.light-mode .comment-cancel-btn:hover {
    background-color: rgba(245, 245, 245, 0.8);
    color: var(--text-primary, #333333);
}

/* Light mode for input fields */
body.light-mode .main-comment-container input[type="text"],
body.light-mode .main-content form input[type="text"],
body.light-mode #main-content form input[type="text"] {
    background-color: var(--bg-primary, #ffffff);
    border-color: var(--border-color, #45a29e);
    color: var(--text-primary, #333333);
}

body.light-mode .main-comment-container input[type="text"]:focus,
body.light-mode .main-content form input[type="text"]:focus,
body.light-mode #main-content form input[type="text"]:focus {
    border-color: var(--text-accent, #2c7873);
}

body.light-mode .comment-char-counter {
    color: var(--text-secondary, #666666);
}

/* Light mode for radar containers */
body.light-mode .radar-input,
body.light-mode .radar-current {
    background-color: var(--bg-secondary, #f5f5f5);
    border-color: var(--border-color, #45a29e);
}

/* Light mode for no votes message */
body.light-mode .no-votes-message {
    color: var(--text-primary, #333333);
}

body.light-mode .no-votes-message p {
    color: var(--text-secondary, #666666);
}

/* Light mode for comments header */
body.light-mode .comments-header {
    color: var(--text-accent, #2c7873);
    border-bottom-color: rgba(44, 120, 115, 0.3);
}

body.light-mode .comments-header:hover {
    color: var(--text-primary, #333333);
}

/* Light mode for no comments message */
body.light-mode .no-comments-message {
    background-color: rgba(245, 245, 245, 0.5);
    border-color: rgba(44, 120, 115, 0.3);
    color: var(--text-primary, #333333);
}

body.light-mode .no-comments-message p {
    color: var(--text-secondary, #666666);
}

body.light-mode .no-comments-message a {
    color: var(--text-accent, #2c7873);
}

body.light-mode .no-comments-message a:hover {
    color: var(--text-secondary, #45a29e);
}

/* Light mode for toggle button */
body.light-mode #toggleButton {
    background-color: var(--bg-secondary, #f5f5f5);
    border-color: var(--border-color, #45a29e);
    color: var(--text-accent, #2c7873);
}

body.light-mode #toggleButton:hover {
    background-color: rgba(44, 120, 115, 0.1);
    color: var(--text-secondary, #45a29e);
    border-color: var(--text-accent, #2c7873);
}

/* Light mode for image navigation buttons */
body.light-mode #prevImage,
body.light-mode #nextImage {
    background-color: var(--bg-secondary, #f5f5f5);
    border-color: var(--border-color, #45a29e);
    color: var(--text-accent, #2c7873);
}

body.light-mode #prevImage:hover,
body.light-mode #nextImage:hover {
    background-color: rgba(44, 120, 115, 0.1);
    color: var(--text-secondary, #45a29e);
    border-color: var(--text-accent, #2c7873);
}

/* Light mode for image counter */
body.light-mode .image-counter {
    color: var(--text-primary, #333333);
}

/* Light mode for submit buttons - keep them visible but adjust colors */
body.light-mode .main-content button,
body.light-mode #main-content button,
body.light-mode #btnSubmit,
body.light-mode .main-comment-container button[type="submit"],
body.light-mode .main-content form button[type="submit"],
body.light-mode #main-content form button[type="submit"] {
    background-color: var(--text-accent, #2c7873);
    color: #ffffff;
}

body.light-mode .main-content button:hover,
body.light-mode #main-content button:hover,
body.light-mode #btnSubmit:hover,
body.light-mode .main-comment-container button[type="submit"]:hover,
body.light-mode .main-content form button[type="submit"]:hover,
body.light-mode #main-content form button[type="submit"]:hover {
    background-color: var(--text-secondary, #45a29e);
    color: #ffffff;
}

body.light-mode #toggleCurrentResults {
    background-color: var(--text-accent, #2c7873);
    color: #ffffff;
}

body.light-mode #toggleCurrentResults:hover {
    background-color: var(--text-secondary, #45a29e);
    color: #ffffff;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .main-content {
    max-width: 100%;
    padding: 15px 10px;
  }
  
  .summary-container {
    padding: 12px 15px;
    gap: 12px;
  }
  
  .summary-container .submitted-info {
    font-size: 12px;
    flex-wrap: wrap;
  }
  
  .media-container {
    width: 100%;
  }
  
  iframe,
  video {
    width: 100%;
    max-width: 100%;
  }
  
  #spiderGraphCanvas,
  #spiderGraphCanvas2 {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
  }

  .radar-input,
  .radar-current {
    width: 100%;
    box-sizing: border-box;
  }

  .radar-input form {
    width: 100%;
  }
  
  .button-container {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .button-container #btnSubmit,
  .button-container #btnDeleteVote {
    width: 100% !important;
    max-width: 100%;
  }
  
  .description {
    font-size: 14px;
    padding: 15px;
  }
  
  .action-links {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 15px;
  }
  
  .action-links a {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 10px 5px;
  }
  
  .summary-container {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .summary-container .submitted-info {
    font-size: 11px;
  }
  
  .summary-container .vote-count,
  .summary-container .comment-count {
    font-size: 13px;
  }
  
  #spiderGraphCanvas,
  #spiderGraphCanvas2 {
    width: 100% !important;
    height: auto !important;
  }
  
  .button-container {
    gap: 8px;
  }
  
  .button-container #btnSubmit,
  .button-container #btnDeleteVote {
    padding: 10px 20px !important;
    font-size: 14px !important;
    height: 44px !important;
  }
}

/* Confirmation Modal Styles */
.confirmation-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.confirmation-modal-content {
  background-color: #1f2833;
  border: 2px solid #45a29e;
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.confirmation-modal-title {
  color: #66fcf1;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 15px 0;
  text-align: center;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.confirmation-modal-message {
  color: #c5c6c7;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 25px 0;
  text-align: center;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.confirmation-modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.confirmation-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  min-width: 140px;
}

.confirm-btn {
  background-color: #66fcf1;
  color: #0b0c10;
}

.confirm-btn:hover {
  background-color: #45a29e;
  color: #c5c6c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 252, 241, 0.3);
}

.cancel-btn {
  background-color: #1f2833;
  color: #66fcf1;
  border: 2px solid #45a29e;
}

.cancel-btn:hover {
  background-color: #45a29e;
  color: #c5c6c7;
  border-color: #66fcf1;
  transform: translateY(-2px);
}

/* Light mode for modal */
body.light-mode .confirmation-modal {
  background-color: rgba(0, 0, 0, 0.5);
}

body.light-mode .confirmation-modal-content {
  background-color: var(--bg-primary, #ffffff);
  border-color: var(--border-color, #45a29e);
}

body.light-mode .confirmation-modal-title {
  color: var(--text-accent, #2c7873);
}

body.light-mode .confirmation-modal-message {
  color: var(--text-primary, #333333);
}

body.light-mode .confirm-btn {
  background-color: var(--text-accent, #2c7873);
  color: #ffffff;
}

body.light-mode .confirm-btn:hover {
  background-color: var(--text-accent-hover, #1f5a57);
  color: #ffffff;
}

body.light-mode .cancel-btn {
  background-color: var(--bg-primary, #ffffff);
  color: var(--text-accent, #2c7873);
  border-color: var(--border-color, #45a29e);
}

body.light-mode .cancel-btn:hover {
  background-color: var(--bg-secondary, #f5f5f5);
  color: var(--text-accent, #2c7873);
  border-color: var(--text-accent, #2c7873);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #1f2833;
  border: 2px solid #66fcf1;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(102, 252, 241, 0.3);
  animation: slideDown 0.3s ease;
  overflow: hidden;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #45a29e;
}

.modal-header.success {
  background-color: rgba(102, 252, 241, 0.1);
  border-bottom-color: #66fcf1;
}

.modal-header.error {
  background-color: rgba(255, 107, 107, 0.1);
  border-bottom-color: #ff6b6b;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
}

.modal-header.success h2 {
  color: #66fcf1;
}

.modal-header.error h2 {
  color: #ff6b6b;
}

.modal-body {
  padding: 25px;
  text-align: center;
  color: #c5c6c7;
  line-height: 1.6;
  font-size: 16px;
}

.modal-footer {
  padding: 15px 20px;
  text-align: center;
  border-top: 1px solid #45a29e;
  background-color: rgba(11, 12, 16, 0.3);
}

.modal-btn {
  padding: 10px 30px;
  background-color: #66fcf1;
  border: none;
  border-radius: 5px;
  color: #0b0c10;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-btn:hover {
  background-color: #45a29e;
  color: #c5c6c7;
}

/* Light mode modal styles */
body.light-mode .modal {
  background-color: rgba(0, 0, 0, 0.5);
}

body.light-mode .modal-content {
  background-color: var(--bg-primary, #ffffff);
  border-color: var(--text-accent, #2c7873);
}

body.light-mode .modal-header {
  border-bottom-color: var(--border-color, #45a29e);
}

body.light-mode .modal-header.success {
  background-color: rgba(44, 120, 115, 0.1);
  border-bottom-color: var(--text-accent, #2c7873);
}

body.light-mode .modal-header.error {
  background-color: rgba(255, 107, 107, 0.1);
  border-bottom-color: #ff6b6b;
}

body.light-mode .modal-header.success h2 {
  color: var(--text-accent, #2c7873);
}

body.light-mode .modal-header.error h2 {
  color: #ff6b6b;
}

body.light-mode .modal-body {
  color: var(--text-primary, #333333);
}

body.light-mode .modal-footer {
  border-top-color: var(--border-color, #45a29e);
  background-color: var(--bg-secondary, #f5f5f5);
}

body.light-mode .modal-btn {
  background-color: var(--text-accent, #2c7873);
  color: #ffffff;
}

body.light-mode .modal-btn:hover {
  background-color: var(--text-secondary, #45a29e);
  color: #ffffff;
}

/* Responsive modal */
@media (max-width: 768px) {
  .confirmation-modal-content {
    padding: 25px 20px;
    max-width: 90%;
  }
  
  .confirmation-modal-title {
    font-size: 20px;
  }
  
  .confirmation-modal-message {
    font-size: 14px;
  }
  
  .confirmation-modal-buttons {
    flex-direction: column;
  }
  
  .confirmation-btn {
    width: 100%;
    min-width: unset;
  }
  
  .description {
    font-size: 13px;
    padding: 12px;
  }
  
  .action-links {
    padding: 8px 10px;
  }
  
  .action-links a {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ── Vote Sliders ── */

/* ── Combined Vote (bar + slider thumb) ── */

.vote-combined {
  padding: 16px 0;
}

.vote-combined-header {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary, #66fcf1);
  margin-bottom: 14px;
}

.vote-combined-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-primary, #c5c6c7);
  opacity: 0.65;
}

.vote-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vote-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--text-secondary, #66fcf1);
  box-sizing: border-box;
  flex-shrink: 0;
}

.vote-legend-bar {
  display: inline-block;
  width: 20px;
  height: 8px;
  border-radius: 3px;
  background: var(--text-secondary, #66fcf1);
  opacity: 0.45;
  flex-shrink: 0;
}

.vote-combined-row {
  margin-bottom: 14px;
}

.vote-combined-row.yesno .vote-combined-top {
  justify-content: flex-end;
}

.vote-combined-yesno-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vote-combined-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.vote-combined-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #c5c6c7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote-combined-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #c5c6c7);
  white-space: nowrap;
  flex-shrink: 0;
}

.vote-combined-track {
  position: relative;
  width: 100%;
  height: 28px;
  background: var(--bg-tertiary, #424242);
  border-radius: 6px;
}

.vote-combined-yesno-slider .vote-combined-track {
  flex: 1;
}

.vote-combined-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--text-secondary, #66fcf1);
  border-radius: 6px;
  opacity: 0.45;
  transition: width 0.4s ease;
}

.vote-combined-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.vote-combined-slider::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 28px;
  background: transparent;
  border: none;
}

.vote-combined-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--text-secondary, #66fcf1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  margin-top: 3px;
  cursor: grab;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.vote-combined-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.vote-combined-slider::-moz-range-track {
  height: 28px;
  background: transparent;
  border: none;
}

.vote-combined-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--text-secondary, #66fcf1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: grab;
}

.vote-combined-slider::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

.vote-combined-slider:disabled {
  cursor: default;
}

.vote-combined-slider:disabled::-webkit-slider-thumb {
  cursor: default;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.vote-combined-slider:disabled::-moz-range-thumb {
  cursor: default;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.vote-slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.vote-slider-row.yesno {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.vote-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.vote-slider-label {
  font-size: 14px;
  color: var(--text-primary, #c5c6c7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote-slider-row.yesno .vote-slider-label {
  flex-shrink: 0;
}

.vote-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-tertiary, #424242);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.vote-slider-row.yesno .vote-slider {
  flex: 1;
  width: auto;
}

.vote-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-secondary, #66fcf1);
  border: 2px solid var(--bg-primary, #0b0c10);
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
}

.vote-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-secondary, #66fcf1);
  border: 2px solid var(--bg-primary, #0b0c10);
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.vote-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.15);
}

.vote-slider:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.15);
}

.vote-slider-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary, #66fcf1);
  flex-shrink: 0;
}

.vote-slider-row.yesno .vote-slider-value {
  min-width: 48px;
  text-align: right;
}

/* ── Vote Results Bars ── */

.vote-results {
  padding: 16px 0;
}

.vote-results-header {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary, #66fcf1);
  margin-bottom: 14px;
}

.vote-result-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.vote-result-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.vote-result-label {
  font-size: 14px;
  color: var(--text-primary, #c5c6c7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote-result-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary, #66fcf1);
  flex-shrink: 0;
}

.vote-result-bar-bg {
  width: 100%;
  height: 28px;
  background: var(--bg-tertiary, #424242);
  border-radius: 6px;
  overflow: hidden;
}

.vote-result-bar {
  height: 100%;
  background: var(--text-secondary, #66fcf1);
  border-radius: 6px;
  transition: width 0.4s ease;
  min-width: 2px;
}

/* ── Yes/No single-bar result ── */

.vote-yesno-result {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vote-yesno-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #c5c6c7);
  flex-shrink: 0;
}

.vote-yesno-bar-bg {
  flex: 1;
  height: 32px;
  background: var(--bg-tertiary, #424242);
  border-radius: 6px;
  overflow: hidden;
}

.vote-yesno-bar-yes {
  height: 100%;
  background: var(--text-secondary, #66fcf1);
  border-radius: 6px 0 0 6px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.vote-yesno-pct {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary, #66fcf1);
  margin-top: 6px;
}

.radar-current .no-votes-message {
  text-align: center;
}

/* ── Delete Vote Button ── */

#btnDeleteVote {
  background: transparent;
  border: 1px solid #c5464680;
  color: #e05555;
}

#btnDeleteVote:hover {
  background: #c5464620;
  border-color: #e05555;
}

body.light-mode #btnDeleteVote {
  border-color: #d4444480;
  color: #c53030;
}

body.light-mode #btnDeleteVote:hover {
  background: #d4444415;
  border-color: #c53030;
}

.delete-confirm-btn {
  background-color: #e05555 !important;
  color: #fff !important;
}

.delete-confirm-btn:hover {
  background-color: #c53030 !important;
}

/* ── Vote Buttons ── */

.button-container {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0;
}

.button-container button {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

#btnSubmit {
  background: var(--text-secondary, #66fcf1);
  color: var(--bg-primary, #0b0c10);
}

#btnSubmit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

#toggleCurrentResults {
  background: var(--bg-secondary, #1f2833);
  color: var(--text-primary, #c5c6c7);
  border: 1px solid rgba(69, 162, 158, 0.25);
}

#toggleCurrentResults:hover {
  background: var(--bg-tertiary, #424242);
}

/* ── Light mode ── */

body.light-mode .vote-slider::-webkit-slider-thumb {
  background: #45a29e;
  border-color: #fff;
}

body.light-mode .vote-slider::-moz-range-thumb {
  background: #45a29e;
  border-color: #fff;
}

body.light-mode .vote-slider-value,
body.light-mode .vote-results-header,
body.light-mode .vote-combined-header,
body.light-mode .vote-result-value {
  color: #45a29e;
}

body.light-mode .vote-legend-dot {
  background: #f5f5f5;
  border-color: #45a29e;
}

body.light-mode .vote-legend-bar {
  background: #45a29e;
}

body.light-mode .vote-combined-fill {
  background: #45a29e;
}

body.light-mode .vote-combined-slider::-webkit-slider-thumb {
  border-color: #45a29e;
}

body.light-mode .vote-combined-slider::-moz-range-thumb {
  border-color: #45a29e;
}

body.light-mode .vote-combined-slider:disabled::-webkit-slider-thumb {
  background: #f5f5f5;
  border-color: #45a29e;
}

body.light-mode .vote-combined-slider:disabled::-moz-range-thumb {
  background: #f5f5f5;
  border-color: #45a29e;
}

body.light-mode .vote-result-bar {
  background: #45a29e;
}

body.light-mode .vote-yesno-bar-yes {
  background: #45a29e;
}

body.light-mode .vote-yesno-pct {
  color: #45a29e;
}

body.light-mode #btnSubmit {
  background: #45a29e;
  color: #fff;
}

/* ── Responsive sliders/results ── */

@media (max-width: 768px) {
  .vote-slider-label {
    font-size: 13px;
  }

  .vote-result-label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .vote-slider-label {
    font-size: 12px;
  }

  .vote-result-label {
    font-size: 12px;
  }

  .button-container button {
    min-width: 120px;
    padding: 10px 16px;
    font-size: 14px;
  }
}