::selection {
    background-color: var(--theatre-primary);
    color: #ffffff;
}

:root {
    --theatre-primary: var(--theatre-primary-default);
    /* Active/enabled component colors - green theme for light mode */
    --theatre-active-bg: #f0f8e8;
    --theatre-active-bg-hover: #e6f4db;
    --theatre-active-border: var(--theatre-primary);
    --theatre-active-text: var(--theatre-primary);
    --theatre-active-icon: var(--theatre-primary);
    /* Green-themed autoplay colors - inherit from active colors */
    --autoplay-enabled-bg: var(--theatre-active-bg);
    --autoplay-enabled-bg-hover: var(--theatre-active-bg-hover);
    --autoplay-enabled-border: var(--theatre-active-border);
    --autoplay-enabled-text: var(--theatre-active-text);
    --autoplay-enabled-icon: var(--theatre-active-icon);
    /* Discord Webhook Queue Colors - Light Theme */
    --webhook-queue-item-border: #e1e5e9;
    --webhook-queue-status-pending-bg: #fff3cd;
    --webhook-queue-status-pending-text: #856404;
    --webhook-queue-status-sent-bg: #d4edda;
    --webhook-queue-status-sent-text: #155724;
    --webhook-queue-status-failed-bg: #f8d7da;
    --webhook-queue-status-failed-text: #721c24;
    --webhook-queue-status-skipped-bg: #e2e3e5;
    --webhook-queue-status-skipped-text: #383d41;

    --plus-notice-bg: #fff3cd;
    --plus-notice-border: #ffeaa7;
    --plus-notice-text: #856404;
    --plus-notice-cta-bg: var(--theatre-primary);
    --plus-notice-cta-text: #ffffff;
    --plus-notice-cta-hover-bg: #5a7c28;

    --scrollbar-track: var(--theatre-active-bg);
    --scrollbar-thumb: var(--theatre-primary);
    --scrollbar-thumb-hover: var(--theatre-primary-hover, #5a7c28);
}

.theme-body {
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    background-image: url(/theatre_assets/theme/sudomemo_new_grass/body_grass.png);
    background-attachment: fixed;
}

.theme-panel-title {
    color: #ffffff;
    background-color: var(--theatre-primary);
}

.panel-heading {
    font-family:
        "Arial Rounded MT Bold",
        Helvetica Neue,
        Helvetica,
        sans-serif;
    letter-spacing: 0.05em;
}

.theme-link {
    color: #62882d;
}

.theme-link:hover {
    color: #62882d;
    text-decoration: underline;
}

.theme-link-inverted {
    color: #ffffff;
}

.theme-link-inverted:hover {
    color: #ffffff;
    text-decoration: underline;
}

.theme-navbar-background {
    background-color: var(--theatre-primary);
    border-color: #ffffff;
    border-bottom-width: 2px;
}

.theme-navbar-text li a {
    color: #fff;
}

.theme-navbar-text li a:hover {
    color: var(--theatre-primary);
    background-color: #fff;
}

/* Comment Editor - Light Theme Colors */
.comment-editor {
    background: #f7fbf9;
    border-color: #e2e8f0;
}

.comment-editor__textarea {
    color: #1f2937 !important;
}

.comment-editor__post-button {
    background: var(--theatre-primary);
    color: white;
}

.comment-editor__post-button:hover {
    background: #62882d;
}

.comment-editor__post-button:disabled {
    background: #9ca3af;
}

.comment-editor__emote-button {
    background: #86bc3b;
    color: white;
}

.comment-editor__emote-button:hover {
    background: #047857;
}

.comment-editor__tooltip-text {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

.comment-editor__swatch--reset {
    border-color: #000;
    color: #000;
}

.comment-editor__swatch--selected {
    outline: 2px solid #000;
}

.comment-editor__emoji {
    border-color: rgba(0, 0, 0, 0.2);
    color: black !important;
}

.comment-editor__emoji:hover {
    background: rgba(0, 0, 0, 0.1);
}

.theme-navbar-text .open a,
.theme-navbar-text .open a:hover,
.theme-navbar-text .open a:focus {
    color: var(--theatre-primary);
    background-color: #fff;
}

.theme-navbar-text .dropdown-menu a,
.theme-navbar-text .dropdown-menu a:hover,
.theme-navbar-text .dropdown-menu a:focus {
    font-weight: bold;
    color: var(--theatre-primary);
    background-color: #fff;
}

.dropdown.open {
    background-color: #fff;
}

.dropdown-header {
    font-size: 1em;
    font-weight: bold;
    color: #6d6d6d;
    background-color: #efefef;
}

.dropdown-toggle:focus {
    color: var(--theatre-primary);
    background-color: #efefef;
}

.btn-custom-active {
    background-color: var(--theatre-primary);
    color: #fff;
    border: solid 1px var(--theatre-primary);
}

.btn-custom {
    background-color: #fff;
    color: var(--theatre-primary);
    border: solid 1px var(--theatre-primary);
}

.navbar-custom .navbar-toggle {
    border-width: 2px;
    color: #fff;
}

.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus,
.navbar-custom .navbar-toggle:active {
    background-color: #62882d;
}

/* 2024 fixes */

.theatre-footer {
    color: #fff;
}

.theatre-footer .theme-link {
    color: #fff;
}

.profile-username {
    color: #fff;
}

.theme-panel-body {
    background-color: #f9f9f9 !important;
}

.profile-head #profile-wrapper {
    background: var(--theatre-primary) var(--bg-frog-star-green-trans);
    color: white;
    border-bottom: 1px solid #f0f0f0;
}

.topic-banner {
    background-color: #fff;
}

/* Genealogy Light Theme Styles */

.flipnote-genealogy-header {
    background: #fefefe;
    border: 1px solid rgba(40, 42, 42, 0.1);
    color: #2c3545;
}

.flipnote-genealogy-back-link {
    color: #62882d;
}

.flipnote-genealogy-back-link:hover {
    color: #4a661f;
    text-decoration: none;
}

.flipnote-genealogy-title {
    color: #2c3545;
}

.flipnote-genealogy-subtitle {
    color: #6c757d;
}

/* Flipnote card states */
.flipnote-genealogy-card {
    background: #fefefe;
    border-color: rgba(40, 42, 42, 0.1);
    color: #2c3545;
}

.flipnote-genealogy-card:hover {
    border-color: #4e92ef;
}

.flipnote-genealogy-card.current {
    border-color: #94d040;
    background: rgba(148, 208, 64, 0.94);
    box-shadow: 0px 4px 12px -2px rgba(148, 208, 64, 0.4);
}

.flipnote-genealogy-card.missing {
    border-color: #ef6d4e;
    background: #fff8f6;
    border-style: dashed;
    opacity: 0.9;
    color: #8b4513;
}

/* Special styling for missing cards with new layout */
.flipnote-genealogy-card.missing-special-layout {
    border-color: #ef6d4e !important;
    background: #fff8f6 !important;
    color: #b8341a !important;
}

.flipnote-genealogy-card.missing-special-layout .missing-main-icon {
    color: #ef6d4e;
}

.flipnote-genealogy-card.missing-special-layout .missing-text {
    color: #b8341a;
}

.flipnote-genealogy-card.removed {
    border-color: #ffc107;
    background: #fffdf5;
    opacity: 0.9;
    color: #8b6914;
}

/* Special styling for removed cards with new layout */
.flipnote-genealogy-card.removed-special-layout {
    border-color: #ffc107 !important;
    background: #fffdf5 !important;
    color: #a67c00 !important;
}

.flipnote-genealogy-card.removed-special-layout .removed-main-icon {
    color: #ffc107;
}

.flipnote-genealogy-card.removed-special-layout .removed-text,
.flipnote-genealogy-card.removed-special-layout .removed-username {
    color: #a67c00;
}

.flipnote-genealogy-missing-icon {
    color: #ef6d4e;
}

.flipnote-genealogy-tombstone-icon {
    color: #ffc107;
}

/* Connection lines - high contrast for grass background */
.flipnote-genealogy-tree-level:not(:first-child)::before {
    background: #2c3545;
}

.flipnote-genealogy-tree-level .flipnote-genealogy-tree-node:not(:only-child)::after {
    background: #2c3545;
}

/* Large family notice */
.flipnote-genealogy-large-family-notice {
    background: #e7f3ff;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.flipnote-genealogy-grid-layout {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(40, 42, 42, 0.1);
}

/* Legend */
.flipnote-genealogy-legend {
    background: #fefefe;
    border: 1px solid rgba(40, 42, 42, 0.1);
    color: #2c3545;
}

.flipnote-genealogy-legend h4 {
    color: #2c3545;
}

.flipnote-genealogy-legend-current {
    border-color: #94d040;
    background: rgba(148, 208, 64, 0.1);
}

.flipnote-genealogy-legend-normal {
    border-color: rgba(40, 42, 42, 0.3);
    background: #fefefe;
}

.flipnote-genealogy-legend-missing {
    border-color: #ef6d4e;
    background: #fff8f6;
    border-style: dashed;
}

.flipnote-genealogy-legend-removed {
    border-color: #ffc107;
    background: #fffdf5;
}

/* Reply button styling */
.reply-btn:hover {
    color: var(--theatre-primary);
}

/* User Education Interstitial - Light Theme */
.sxs_container {
    --theatre-bg: #ffffff;
    --theatre-bg-secondary: #f8f9fa;
    --theatre-border: #e0e4e7;
    --theatre-text: #333333;
    --theatre-text-secondary: #6c757d;
    --theatre-primary-hover: #76a532;
}

.grid-footer .footer-text.theme-link {
    background: #fff;
}

#reportModal .modal-header,
#ticketModal .modal-header {
    color: #fff;
    background-color: var(--theatre-primary);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom: none;
}

#reportModal .modal-header > *,
#ticketModal .modal-header > * {
    color: #fff;
}

/* Flipnote Studio-inspired button styling - Light Theme Colors */
.ugobtn {
    border-color: #94d040;
    background-color: #f8fff0;
    color: #62882d !important;
}

.ugobtn:active,
.ugobtn.ugobtn-selected {
    border-color: #4a661f;
    color: #2d3e13;
    background-color: #e6f4db;
}

/* Playlist button colors for light theme */
.ugobtn-playlist-add {
    background-color: var(--theatre-primary-default);
    border-color: var(--theatre-primary-default);
    color: #fff !important;
}

.ugobtn-playlist-add:active,
.ugobtn-playlist-add.ugobtn-selected {
    background-color: #4a661f;
    border-color: #4a661f;
    color: #ddd;
}

.ugobtn-playlist-remove {
    background-color: #d9534f;
    border-color: #d9534f;
    color: #fff;
}

.ugobtn-playlist-remove:active,
.ugobtn-playlist-remove.ugobtn-selected {
    background-color: #ac2925;
    border-color: #ac2925;
    color: #ddd;
}

/* Account Switcher Modal - Light Theme */
#account-switcher-modal .modal-content,
#add-account-modal .modal-content {
    background-color: #fff;
    color: #333;
}

#account-switcher-modal .modal-header,
#add-account-modal .modal-header {
    color: #fff;
    background-color: var(--theatre-primary);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom: none;
}

#account-switcher-modal .modal-header > *,
#add-account-modal .modal-header > * {
    color: #fff;
}

#account-switcher-modal .modal-body,
#add-account-modal .modal-body {
    background-color: #fff;
    color: #333;
}

/* Alert styling for Email Confirmation and other info alerts */
.alert-info {
    background-color: var(--theatre-active-bg);
    border-color: var(--theatre-active-border);
    color: var(--theatre-active-text);
}

/* YouTube Playlist Selector - Light Theme */
.youtube-playlist-selector {
    border-color: #d4d4d4;
    background-color: #fff;
}

.youtube-playlist-search-container {
    background-color: #f8f9fa;
    border-bottom-color: #e9ecef;
}

.youtube-playlist-search-input {
    background-color: #fff;
    border-color: #d4d4d4;
    color: #333;
}

.youtube-playlist-search-input::placeholder {
    color: #999;
}

.youtube-playlist-container {
    background-color: #fff;
}

.youtube-playlist-item:nth-child(even) {
    background-color: #f8f9fa;
}

.youtube-playlist-item:hover {
    background-color: #e9ecef;
}

.youtube-playlist-title {
    color: #333;
}

.youtube-playlist-meta {
    color: #666;
}

/* Discord Webhook Queue Colors */

.webhook-queue-item {
    border-color: var(--webhook-queue-item-border);
}

.webhook-queue-status.status-pending {
    background-color: var(--webhook-queue-status-pending-bg);
    color: var(--webhook-queue-status-pending-text);
}

.webhook-queue-status.status-sent {
    background-color: var(--webhook-queue-status-sent-bg);
    color: var(--webhook-queue-status-sent-text);
}

.webhook-queue-status.status-failed {
    background-color: var(--webhook-queue-status-failed-bg);
    color: var(--webhook-queue-status-failed-text);
}

.webhook-queue-status.status-skipped {
    background-color: var(--webhook-queue-status-skipped-bg);
    color: var(--webhook-queue-status-skipped-text);
}

.plus-notice-banner {
    background-color: var(--plus-notice-bg);
    border-color: var(--plus-notice-border);
    color: var(--plus-notice-text);
}

.plus-notice-cta {
    background-color: var(--plus-notice-cta-bg);
    color: var(--plus-notice-cta-text);
}

.plus-notice-cta:hover {
    background-color: var(--plus-notice-cta-hover-bg);
    color: var(--plus-notice-cta-text);
}

/* Discord Webhook Management - Light theme colors */
.webhook-card {
    border-color: #e5e5e5;
    background-color: #f8f9fa;
}

.webhook-url {
    color: #666;
}

.webhook-template {
    color: #666;
}

.webhook-edit {
    border-color: #e5e5e5;
}

.add-webhook-form {
    border-color: #ddd;
}

.form-help {
    color: #666;
}

.status-enabled {
    background-color: #d4edda;
    color: #155724;
}

.status-disabled {
    background-color: #fff3cd;
    color: #856404;
}

/* Step-by-Step Modal Colors - Light Theme */
:root {
    /* Modal background and structure */
    --sxs-modal-bg: #ffffff;
    --sxs-modal-border: #e0e4e7;
    --sxs-modal-text: #333333;

    /* Header */
    --sxs-header-bg: rgba(0, 0, 0, 0.02);
    --sxs-header-border: rgba(0, 0, 0, 0.1);
    --sxs-header-icon: var(--theatre-primary);
    --sxs-header-text: #333333;

    /* Body */
    --sxs-body-text: #666666;

    /* Video placeholder */
    --sxs-video-placeholder-bg: #f8f9fa;
    --sxs-video-placeholder-text: #666666;

    /* Item icons */
    --sxs-icon-bg: rgba(0, 0, 0, 0.05);
    --sxs-icon-border: rgba(0, 0, 0, 0.1);
    --sxs-icon-color: var(--theatre-primary);
    --sxs-icon-spikes-bg: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 0, 0, 0.1) 18deg,
        transparent 36deg,
        rgba(0, 0, 0, 0.1) 54deg,
        transparent 72deg,
        rgba(0, 0, 0, 0.1) 90deg,
        transparent 108deg,
        rgba(0, 0, 0, 0.1) 126deg,
        transparent 144deg,
        rgba(0, 0, 0, 0.1) 162deg,
        transparent 180deg,
        rgba(0, 0, 0, 0.1) 198deg,
        transparent 216deg,
        rgba(0, 0, 0, 0.1) 234deg,
        transparent 252deg,
        rgba(0, 0, 0, 0.1) 270deg,
        transparent 288deg,
        rgba(0, 0, 0, 0.1) 306deg,
        transparent 324deg,
        rgba(0, 0, 0, 0.1) 342deg,
        transparent 360deg
    );

    /* Golden icons for trophies/achievements */
    --sxs-icon-golden-bg: radial-gradient(circle, #ffd700, #ffb300);
    --sxs-icon-golden-border: #fff3a0;
    --sxs-icon-golden-color: #1a1a1a;
    --sxs-icon-golden-shadow: 0 0 20px rgba(255, 215, 0, 0.3);

    /* Item details */
    --sxs-item-name-color: #333333;
    --sxs-item-description-color: #666666;

    /* Gift info */
    --sxs-gift-bg: rgba(0, 0, 0, 0.05);
    --sxs-gift-border: rgba(0, 0, 0, 0.1);
    --sxs-gift-from-color: #333333;
    --sxs-gift-comment-color: #666666;

    /* Controls */
    --sxs-controls-border: rgba(0, 0, 0, 0.1);

    /* Progress */
    --sxs-progress-bg: rgba(0, 0, 0, 0.1);
    --sxs-progress-fill: var(--theatre-primary);
    --sxs-progress-text: #666666;

    /* Buttons */
    --sxs-btn-primary-bg: var(--theatre-primary);
    --sxs-btn-primary-text: #ffffff;
    --sxs-btn-primary-hover-bg: var(--theatre-primary-hover, #5a7c28);
}

