/* Playground Theme - Kid-friendly colors for school and activity forms
 *
 * All colors defined as CSS variables at the top — change the palette in one place.
 */

/* ============================================================
   Theme Palette
   To restyle: change values here only — everything below reads from these
   ============================================================ */
.theme-playground {
    --theme-primary:       #FF6B6B;   /* coral red — buttons, primary accents */
    --theme-primary-mid:   #FF8C8C;   /* lighter coral — gradients, hover */
    --theme-primary-light: #FFB3B3;   /* pale coral — disabled, light accents */
    --theme-accent:        #4ECDC4;   /* teal — borders, secondary highlights */
    --theme-accent-mid:    #45B7D1;   /* sky blue — gradients */
    --theme-accent-light:  #7DE8E2;   /* light teal — hover */
    --theme-yellow:        #FFE66D;   /* bright yellow — navbar accents, check icons */
    --theme-yellow-mid:    #FFD93D;   /* deeper yellow — list borders, alerts */
    --theme-bg:            #ffffff;   /* card backgrounds */
    --theme-text:          #2d3748;   /* body text */
    --theme-text-dark:     #2C3E50;   /* headings, labels */
    --theme-text-muted:    #5a6c7d;   /* muted/secondary text */
    --theme-gradient:      linear-gradient(170deg, #87CEEB 0%, #87CEEB 25%, #98FB98 65%, #FFE4B5 100%);
    --theme-btn-gradient:  linear-gradient(45deg, #FF6B6B, #4ECDC4);
    --theme-radius-card:   20px;
    --theme-radius-btn:    25px;
    --theme-radius-input:  12px;

    /* Bridge to global utilities — makes .text-primary use theme color */
    --primary-color:       #FF6B6B;
}

/* ---- Background ---- */
.theme-playground,
body.theme-playground,
.theme-playground body,
html.theme-playground,
.form-preview.theme-playground,
body.theme-playground .form-preview {
    background: var(--theme-gradient) !important;
    background-attachment: fixed !important;
    color: var(--theme-text) !important;
    min-height: 100vh !important;
    position: relative;
}

@media (max-width: 768px) {
    .theme-playground,
    body.theme-playground,
    html.theme-playground {
        background-attachment: scroll !important;
        background-size: cover !important;
    }

    /* Prevent textareas and comment boxes from overflowing their cards on narrow screens */
    .theme-playground textarea,
    .theme-playground .form-control {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ---- Transparent containers ---- */
.theme-playground .container,
.theme-playground .container-narrow,
.theme-playground main,
.theme-playground .py-2,
.theme-playground .py-md-5,
.theme-playground .py-4 {
    background: transparent !important;
}

/* ---- Cards ---- */
.theme-playground .card {
    background: var(--theme-bg) !important;
    border: 3px solid var(--theme-primary) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3) !important;
    border-radius: var(--theme-radius-card) !important;
    backdrop-filter: blur(10px);
}

.theme-playground .card-body {
    background: transparent !important;
}

/* ---- Typography ---- */
.theme-playground .form-label,
.theme-playground .card-title,
.theme-playground h1,
.theme-playground h2,
.theme-playground h3,
.theme-playground h4,
.theme-playground h5,
.theme-playground h6 {
    color: var(--theme-text-dark) !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.theme-playground p,
.theme-playground .card-text,
.theme-playground .ql-editor {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
}

.theme-playground .text-muted {
    color: var(--theme-text-muted) !important;
}

/* ---- Form Inputs ---- */
.theme-playground .form-control,
.theme-playground .form-select,
.theme-playground textarea {
    background: var(--theme-bg) !important;
    border: 2px solid var(--theme-accent) !important;
    color: var(--theme-text) !important;
    border-radius: var(--theme-radius-input) !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2) !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* Date/time inputs — prevent overflow */
.theme-playground .date-row-input,
.theme-playground .time-row-input,
.theme-playground .timezone-row-select,
.theme-playground .duration-row-select,
.theme-playground input[type="date"],
.theme-playground input[type="time"],
.theme-playground #futurePeriodType,
.theme-playground #hideOptionLeadHoursContainer {
    font-size: 14px !important;
}

/* Compact inline selects — restore natural width overridden by the width: 100% rule above */
.theme-playground #globalTimezone {
    max-width: 250px !important;
}

.theme-playground #futurePeriodType {
    border-radius: 6px !important;
    width: auto !important;
}

.theme-playground #hideOptionLeadHoursContainer {
    border-radius: 6px !important;
    width: 160px !important;
}

.theme-playground .form-control:focus,
.theme-playground .form-select:focus,
.theme-playground textarea:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4) !important;
    background-color: var(--theme-bg) !important;
    color: var(--theme-text) !important;
}

.theme-playground ::placeholder {
    color: #9ca3af !important;
    opacity: 0.8 !important;
}

.theme-playground .form-control::placeholder,
.theme-playground textarea::placeholder {
    color: #9ca3af !important;
    opacity: 0.8 !important;
}

/* ---- Checkboxes & Radios ---- */
.theme-playground .form-check-input {
    background-color: var(--theme-bg) !important;
    border: 3px solid var(--theme-primary) !important;
    width: 20px !important;
    height: 20px !important;
    transition: all 0.3s ease !important;
}

.theme-playground .form-check-input[type="checkbox"] {
    border-radius: 4px !important;
}

.theme-playground .form-check-input[type="radio"] {
    border-radius: 50% !important;
}

.theme-playground .form-check-input:checked {
    background-color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.6) !important;
}

/* Radio buttons — use primary coral + solid fill (no white inner dot) */
.theme-playground .form-check-input[type="radio"]:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    background-image: none !important;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.5) !important;
}

.theme-playground .form-check-label {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
}

/* Checked label — bold + teal accent instead of global green (#28a745) */
.theme-playground .form-check-input:checked + label,
.theme-playground .form-check-input:checked + .form-check-label {
    color: var(--theme-accent) !important;
    font-weight: 600 !important;
}

/* Required toggle in additional questions — override global green with teal */
.theme-playground .additional-question-settings .form-check-input:checked + .form-check-label {
    color: var(--theme-accent) !important;
    font-weight: 600 !important;
}

/* ---- Toggle Switches ----
   Force white SVG thumb via --bs-form-switch-bg so the slider is always visible
   regardless of the track color. Do NOT set background-image — use the CSS variable.
   background-color sets the track; Bootstrap handles the white circle thumb. */
.theme-playground .form-switch .form-check-input {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
    background-color: rgba(255, 107, 107, 0.35) !important;
    border: 2px solid var(--theme-primary) !important;
    border-radius: 2em !important;
    width: 2em !important;
    height: 1em !important;
}

.theme-playground .form-switch .form-check-input:checked {
    background-color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.4) !important;
}

/* ---- Primary Button ---- */
.theme-playground .btn-primary,
.theme-playground button[type="submit"],
.theme-playground #submitBtn {
    background: var(--theme-btn-gradient) !important;
    border: none !important;
    color: var(--theme-bg) !important;
    font-weight: bold !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
    border-radius: var(--theme-radius-btn) !important;
    text-shadow: none !important;
    padding: 12px 28px !important;
    transition: all 0.3s ease !important;
}

.theme-playground .btn-primary:hover,
.theme-playground button[type="submit"]:hover,
.theme-playground #submitBtn:hover {
    background: linear-gradient(45deg, var(--theme-accent), var(--theme-primary)) !important;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.6) !important;
    transform: translateY(-3px) scale(1.05) !important;
}

.theme-playground .btn-primary:active,
.theme-playground #submitBtn:active {
    transform: translateY(0) scale(0.98) !important;
}

.theme-playground .btn-primary:focus,
.theme-playground #submitBtn:focus {
    outline: 3px solid rgba(255, 107, 107, 0.5) !important;
    outline-offset: 2px;
}

/* ---- Outline Primary Button ---- */
.theme-playground .btn-outline-primary {
    color: var(--theme-primary) !important;
    border: 2px solid var(--theme-primary) !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
}

.theme-playground .btn-outline-primary:hover {
    background: var(--theme-primary) !important;
    color: var(--theme-bg) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
    transform: translateY(-2px);
}

/* Active/Checked state for toggle button groups */
.theme-playground .btn-check:checked + .btn-outline-primary,
.theme-playground .btn-outline-primary:active,
.theme-playground .btn-outline-primary.active {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-mid)) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-bg) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6), inset 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    font-weight: 700 !important;
}

.theme-playground .btn-check:checked + .btn-outline-primary .bi,
.theme-playground .btn-outline-primary:active .bi,
.theme-playground .btn-outline-primary.active .bi {
    color: var(--theme-bg) !important;
}

/* ---- Outline Secondary Button ---- */
.theme-playground .btn-outline-secondary {
    color: var(--theme-accent) !important;
    border: 2px solid var(--theme-accent) !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.theme-playground .btn-outline-secondary:hover {
    background: var(--theme-accent) !important;
    color: var(--theme-bg) !important;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4) !important;
    transform: translateY(-2px);
}

/* ---- Secondary Button ---- */
.theme-playground .btn-secondary {
    background: linear-gradient(45deg, var(--theme-accent), var(--theme-accent-mid)) !important;
    border: 2px solid var(--theme-accent) !important;
    color: var(--theme-bg) !important;
    font-weight: bold !important;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4) !important;
    border-radius: var(--theme-radius-btn) !important;
    transition: all 0.3s ease !important;
}

.theme-playground .btn-secondary:hover,
.theme-playground .btn-secondary:active,
.theme-playground .btn-secondary:focus {
    background: linear-gradient(45deg, var(--theme-accent-mid), var(--theme-accent)) !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6) !important;
    transform: translateY(-3px) scale(1.05);
    color: var(--theme-bg) !important;
}

/* ---- btn-link (collapse/expand buttons) ---- */
.theme-playground .btn-link {
    color: var(--theme-text-dark) !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--theme-accent) !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
}

.theme-playground .btn-link:hover {
    color: var(--theme-primary) !important;
    background: var(--theme-bg) !important;
    border-color: var(--theme-primary) !important;
    transform: translateY(-2px);
}

/* Remove double-circle effect on help question icons */
.theme-playground .help-question-trigger,
.theme-playground .btn-link:has(.bi-question-circle-fill) {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.theme-playground .bi-question-circle,
.theme-playground .bi-question-circle-fill {
    text-shadow: none !important;
}

.theme-playground button[data-bs-toggle="collapse"] {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--theme-accent) !important;
    border-radius: var(--theme-radius-btn) !important;
    color: var(--theme-text-dark) !important;
    font-weight: 600 !important;
}

.theme-playground button[data-bs-toggle="collapse"]:hover {
    background: var(--theme-bg) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-primary) !important;
    transform: translateY(-2px);
}

.theme-playground .btn-link .text-info,
.theme-playground button[data-bs-toggle="collapse"] .text-info {
    color: var(--theme-accent) !important;
}

.theme-playground .btn-link .text-dark,
.theme-playground button[data-bs-toggle="collapse"] .text-dark {
    color: var(--theme-text-dark) !important;
    font-weight: 700 !important;
}

.theme-playground .btn-link .text-muted,
.theme-playground button[data-bs-toggle="collapse"] .text-muted {
    color: var(--theme-primary) !important;
}

.theme-playground .btn-link h6,
.theme-playground button[data-bs-toggle="collapse"] h6 {
    color: var(--theme-text-dark) !important;
    font-weight: 700 !important;
}

/* ---- List Items (Options) ---- */
.theme-playground .list-group-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--theme-yellow-mid) !important;
    color: var(--theme-text) !important;
    margin-bottom: 8px !important;
    border-radius: 15px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.theme-playground .list-group-item:hover {
    background: rgba(255, 217, 61, 0.2) !important;
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.4) !important;
    transform: translateY(-2px);
}

/* ---- Disabled/Taken Options ---- */
.theme-playground .list-group-item input:disabled + label {
    color: var(--theme-primary) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    text-decoration: line-through !important;
}

.theme-playground .list-group-item input:disabled ~ small {
    color: var(--theme-primary) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.theme-playground .list-group-item:has(input:disabled) {
    background: rgba(255, 107, 107, 0.2) !important;
    border-color: rgba(255, 204, 0, 0.5) !important;
    opacity: 0.75 !important;
}

.theme-playground .list-group-item:has(input:disabled):hover {
    background: rgba(255, 107, 107, 0.2) !important;
    border-color: rgba(255, 204, 0, 0.5) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25) !important;
}

.theme-playground .list-group-item:has(input:disabled)::before {
    background: linear-gradient(to bottom, rgba(255, 107, 107, 0.5), rgba(255, 204, 0, 0.5)) !important;
}

/* ---- Navbar ---- */
.theme-playground .navbar {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-accent) 50%, var(--theme-accent-mid) 100%) !important;
    border-bottom: 3px solid var(--theme-yellow) !important;
    box-shadow: 0 4px 15px rgba(255, 230, 109, 0.4) !important;
}

.theme-playground .navbar-brand {
    color: var(--theme-text-dark) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
    font-weight: 700 !important;
}

/* Logo: gold/yellow filter — matches "signup" text, same on hover (no change on dark nav bg) */
.theme-playground .navbar-brand img {
    filter: brightness(0) saturate(100%) invert(79%) sepia(29%) saturate(694%) hue-rotate(2deg) brightness(107%) contrast(93%) !important;
    transition: filter 0.3s ease !important;
}

.theme-playground .navbar-brand:hover img {
    filter: brightness(0) saturate(100%) invert(79%) sepia(29%) saturate(694%) hue-rotate(2deg) brightness(107%) contrast(93%) !important;
}

.theme-playground .navbar-brand:hover {
    color: var(--theme-text-dark) !important;
}

.theme-playground .brand-text-primary {
    color: var(--theme-bg) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.theme-playground .brand-text-white {
    color: var(--theme-yellow) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.theme-playground .navbar-toggler {
    border-color: var(--theme-yellow) !important;
    background: rgba(255, 230, 109, 0.2) !important;
}

.theme-playground .navbar-toggler:focus {
    box-shadow: 0 0 15px rgba(255, 230, 109, 0.5) !important;
}

.theme-playground .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ---- Offcanvas (mobile nav) ---- */
.theme-playground .offcanvas {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-accent) 50%, var(--theme-accent-mid) 100%) !important;
    border-left: 3px solid var(--theme-yellow) !important;
    box-shadow: -4px 0 15px rgba(255, 230, 109, 0.4) !important;
}

.theme-playground .offcanvas-header {
    border-bottom: 2px solid var(--theme-yellow) !important;
}

.theme-playground .btn-close {
    filter: none !important;
    color: var(--theme-text-dark) !important;
    opacity: 0.8 !important;
}

.theme-playground .btn-close:hover {
    opacity: 1 !important;
}

.theme-playground .mobile-nav-section .btn {
    background: linear-gradient(45deg, var(--theme-yellow), var(--theme-accent)) !important;
    border: 2px solid var(--theme-primary) !important;
    color: var(--theme-text-dark) !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(255, 230, 109, 0.4) !important;
}

.theme-playground .mobile-nav-section .btn:hover {
    background: linear-gradient(45deg, var(--theme-accent), var(--theme-yellow)) !important;
    box-shadow: 0 8px 25px rgba(255, 230, 109, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.theme-playground .mobile-nav-header {
    color: var(--theme-text-dark) !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
}

.theme-playground .mobile-nav-item {
    color: var(--theme-text-dark) !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6) !important;
}

.theme-playground .mobile-nav-item:hover {
    color: var(--theme-primary) !important;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.6) !important;
}

.theme-playground .mobile-nav-item i {
    color: var(--theme-primary) !important;
}

/* ---- Footer ---- */
.theme-playground .footer {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-accent) 50%, var(--theme-accent-mid) 100%) !important;
    border-top: 3px solid var(--theme-yellow) !important;
    box-shadow: 0 -4px 15px rgba(255, 230, 109, 0.4) !important;
}

.theme-playground .footer p {
    color: var(--theme-text-dark) !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6) !important;
    font-weight: 600 !important;
}

.theme-playground .footer a,
.theme-playground .footer a * {
    color: var(--theme-yellow) !important;
    text-shadow: 0 0 5px rgba(255, 230, 109, 0.4) !important;
    font-weight: 600 !important;
    transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

.theme-playground .footer a:hover,
.theme-playground .footer a:hover * {
    color: var(--theme-primary) !important;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.6) !important;
}

/* ---- Modals ---- */
.theme-playground .modal-backdrop {
    display: none !important;
}

.theme-playground .modal-content {
    background: var(--theme-bg) !important;
    border: 2px solid var(--theme-primary) !important;
    border-radius: var(--theme-radius-card) !important;
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.2) !important;
}

.theme-playground .modal-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 1.5rem 1.5rem 0.5rem !important;
}

.theme-playground .modal-title {
    color: var(--theme-primary) !important;
}

.theme-playground .modal-body {
    background: transparent !important;
    color: var(--theme-text) !important;
    padding: 1rem 1.5rem !important;
}

.theme-playground .modal-footer {
    background: transparent !important;
    border-top: none !important;
    padding: 0.5rem 1.5rem 1.5rem !important;
}

/* ---- Alerts ---- */
.theme-playground .alert {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 3px solid var(--theme-yellow-mid) !important;
    color: var(--theme-text-dark) !important;
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.3) !important;
    border-radius: 15px !important;
}

/* ---- Form Sections ---- */
.theme-playground .form-section-respondent,
.theme-playground .form-section-main-options,
.theme-playground .form-section-additional {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.2) !important;
    border-radius: var(--theme-radius-card) !important;
}

.theme-playground .form-section-header {
    background: linear-gradient(45deg, var(--theme-yellow-mid), var(--theme-primary)) !important;
    color: var(--theme-bg) !important;
    border-bottom: none !important;
    border-radius: 17px 17px 0 0 !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ---- Additional Questions ---- */
.theme-playground .additional-question-section .card,
.theme-playground .additional-question-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 3px solid var(--theme-yellow-mid) !important;
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.3) !important;
    color: var(--theme-text) !important;
    border-radius: var(--theme-radius-card) !important;
}

.theme-playground .additional-question-section .card-body {
    background: transparent !important;
    color: var(--theme-text) !important;
}

.theme-playground .additional-question-section .form-label {
    color: var(--theme-text-dark) !important;
    font-weight: 700 !important;
}

.theme-playground .additional-question-section .additional-question-header h6,
.theme-playground .additional-question-section .additional-question-title {
    color: var(--theme-text-dark) !important;
    font-weight: 700 !important;
}

.theme-playground .additional-question-section .additional-question-body .form-label,
.theme-playground .additional-question-section .additional-question-body .fw-semibold {
    color: var(--theme-text-dark) !important;
    font-weight: 700 !important;
}

.theme-playground .additional-question-section .additional-question-body .form-check-label {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
}

/* Fix vertical alignment of larger radio/checkbox inputs everywhere (excludes toggle switches) */
.theme-playground .form-check:not(.form-switch) {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.theme-playground .form-check:not(.form-switch) .form-check-input {
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

.theme-playground .form-check:not(.form-switch) .form-check-label {
    margin-bottom: 0 !important;
}
/* Preserve inline-block display when Bootstrap d-inline-block is used (e.g. Silent Save checkbox) */
.theme-playground .form-check.d-inline-block:not(.form-switch) {
    display: inline-flex !important;
}

/* ---- Option Items (form_preview) ---- */
.theme-playground .option-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--theme-accent) !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2) !important;
    border-radius: 15px !important;
}

.theme-playground .option-item:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3) !important;
    transform: translateY(-2px);
    border-color: var(--theme-primary) !important;
}

/* ---- Theme Card Header (form_preview theme selection) ---- */
.theme-playground .card-header .text-dark,
.theme-playground .card-header h6,
.theme-playground .card-header .text-muted {
    color: var(--theme-text-dark) !important;
    font-weight: 600 !important;
}

/* ---- Quill Editor ---- */
.theme-playground .ql-toolbar.ql-snow {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: var(--theme-accent) !important;
    border-radius: 15px 15px 0 0 !important;
}

.theme-playground .ql-container.ql-snow {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-text) !important;
    border-radius: 0 0 15px 15px !important;
}

.theme-playground .ql-editor {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
}

/* ---- Icons ---- */
.theme-playground .max-signups-icon {
    color: var(--theme-primary) !important;
}

.theme-playground .bi-calendar-event-fill,
.theme-playground .bi-clock-fill,
.theme-playground .bi-geo-alt-fill {
    color: var(--theme-primary) !important;
}

.theme-playground .bi-check-circle {
    color: var(--theme-yellow) !important;
}

.theme-playground .required-asterisk {
    color: var(--theme-primary) !important;
    font-weight: bold !important;
}

/* ---- Spreadsheet Modal — complete theme opt-out ---- */

/* Reset everything to dark-on-white */
.theme-playground #ssModal *,
.theme-playground #ssModal h1,
.theme-playground #ssModal h2,
.theme-playground #ssModal h3,
.theme-playground #ssModal h4,
.theme-playground #ssModal h5,
.theme-playground #ssModal h6,
.theme-playground #ssModal p,
.theme-playground #ssModal small,
.theme-playground #ssModal .text-muted {
    color: #212529 !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Icons inside buttons inherit button color, not the wildcard dark gray */
.theme-playground #ssModal .btn i,
.theme-playground #ssModal .btn .bi {
    color: inherit !important;
}

/* Restore danger red for X delete row buttons */
.theme-playground #ssModal .text-danger,
.theme-playground #ssModal .text-danger i,
.theme-playground #ssModal .text-danger .bi {
    color: #dc3545 !important;
}

/* X delete row buttons — strip all button chrome, plain red X only */
.theme-playground #ssModal .spreadsheet-delete-row {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Modal shell */
.theme-playground #ssModal .modal-content {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: none !important;
}

.theme-playground #ssModal .modal-header {
    background-color: transparent !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 1rem !important;
}

.theme-playground #ssModal .modal-body {
    background-color: transparent !important;
    padding: 1rem !important;
}

.theme-playground #ssModal .modal-footer {
    background-color: transparent !important;
    border-top: 1px solid #dee2e6 !important;
    padding: 0.75rem !important;
}

/* Apply Changes — coral theme */
.theme-playground #ssModal .btn-primary {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-mid) 100%) !important;
    border: 1px solid var(--theme-primary) !important;
    color: #ffffff !important;
    border-radius: var(--theme-radius-btn) !important;
    padding: 0.25rem 0.75rem !important;
    font-weight: 600 !important;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.4) !important;
    transform: none !important;
}

.theme-playground #ssModal .btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-primary-light) 0%, var(--theme-primary) 100%) !important;
    box-shadow: 0 0 14px rgba(255, 107, 107, 0.7) !important;
    transform: none !important;
}

/* Add Row — teal fill with white text */
.theme-playground #ssModal .btn-outline-secondary {
    color: #ffffff !important;
    border: 1px solid var(--theme-accent) !important;
    background: var(--theme-accent) !important;
    border-radius: var(--theme-radius-btn) !important;
    padding: 0.25rem 0.75rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transform: none !important;
}

.theme-playground #ssModal .btn-outline-secondary:hover {
    background: #3db8b0 !important;
    border-color: #3db8b0 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.4) !important;
    transform: none !important;
}

/* Cancel — teal accent */
.theme-playground #ssModal .btn-outline-danger {
    color: var(--theme-accent) !important;
    border: 1px solid var(--theme-accent) !important;
    background: transparent !important;
    border-radius: var(--theme-radius-btn) !important;
    padding: 0.25rem 0.75rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transform: none !important;
}

.theme-playground #ssModal .btn-outline-danger:hover {
    background: rgba(78, 205, 196, 0.12) !important;
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.3) !important;
    color: var(--theme-accent) !important;
    transform: none !important;
}

/* Alert inside modal (e.g. paste warning) */
.theme-playground #ssModal .alert {
    background-color: #fff3cd !important;
    border-color: #ffecb5 !important;
    color: #664d03 !important;
    box-shadow: none !important;
}

/* Table inputs — keep neutral */
.theme-playground #ssModal input,
.theme-playground #ssModal .form-control {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #212529 !important;
    box-shadow: none !important;
}

/* ---- btn-outline-danger outside ssModal (e.g. other modal Cancel buttons) ---- */
.theme-playground .btn-outline-danger {
    color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    border-width: 2px !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.theme-playground .btn-outline-danger:hover {
    background: var(--theme-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3) !important;
    transform: translateY(-1px);
}

/* ---- Smooth transitions ---- */
.theme-playground .btn,
.theme-playground .form-control,
.theme-playground .list-group-item {
    transition: all 0.3s ease !important;
}
