/* Spring Plaid Theme - Pastel plaid with blush pink, lavender, sage, and buttercream
 *
 * All colors defined as CSS variables at the top — change the palette in one place.
 * Plaid overlay is driven by body::before with repeating-linear-gradients.
 */

/* ============================================================
   Theme Palette
   ============================================================ */
.theme-spring-plaid {
    --theme-primary:       #FFB5C5;   /* blush pink — buttons, accents */
    --theme-primary-deep:  #E89BB5;   /* deeper pink — hover, card headings */
    --theme-lavender:      #C5B4E3;   /* soft lavender — secondary accent */
    --theme-lavender-deep: #8B7FA8;   /* deeper lavender — labels, muted headings */
    --theme-sage:          #B4D7C8;   /* sage green — navbar, accents */
    --theme-sage-deep:     #9BC4B8;   /* deeper sage — borders */
    --theme-sage-dark:     #6B9B7E;   /* dark sage — "taken by" text */
    --theme-butter:        #FFF4B3;   /* buttercream yellow — brand text, footer hover */
    --theme-text:          #2c2c2c;   /* body text */
    --theme-text-muted:    #6c757d;   /* muted text */
    --theme-radius-card:   12px;
    --theme-radius-btn:    8px;
    --theme-radius-input:  8px;

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

    background-image:
        /* Horizontal plaid stripes */
        repeating-linear-gradient(0deg, rgba(255, 181, 197, 0.3), rgba(255, 181, 197, 0.3) 8px, transparent 8px, transparent 60px),
        repeating-linear-gradient(0deg, transparent 12px, rgba(197, 180, 227, 0.35), rgba(197, 180, 227, 0.35) 18px, transparent 18px, transparent 60px),
        repeating-linear-gradient(0deg, transparent 24px, rgba(255, 244, 179, 0.25), rgba(255, 244, 179, 0.25) 26px, transparent 26px, transparent 60px),
        repeating-linear-gradient(0deg, transparent 30px, rgba(180, 215, 200, 0.3), rgba(180, 215, 200, 0.3) 34px, transparent 34px, transparent 60px),
        /* Vertical plaid stripes */
        repeating-linear-gradient(90deg, rgba(255, 181, 197, 0.3), rgba(255, 181, 197, 0.3) 8px, transparent 8px, transparent 60px),
        repeating-linear-gradient(90deg, transparent 12px, rgba(197, 180, 227, 0.35), rgba(197, 180, 227, 0.35) 18px, transparent 18px, transparent 60px),
        repeating-linear-gradient(90deg, transparent 24px, rgba(255, 244, 179, 0.25), rgba(255, 244, 179, 0.25) 26px, transparent 26px, transparent 60px),
        repeating-linear-gradient(90deg, transparent 30px, rgba(180, 215, 200, 0.3), rgba(180, 215, 200, 0.3) 34px, transparent 34px, transparent 60px),
        /* Base gradient */
        linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-lavender) 50%, var(--theme-sage) 100%) !important;
    background-attachment: fixed !important;
    color: var(--theme-text) !important;
    min-height: 100vh !important;
    position: relative;
}

/* ---- Background — gradient on all containers ---- */
body.theme-spring-plaid,
html.theme-spring-plaid,
.theme-spring-plaid html,
.form-preview.theme-spring-plaid,
body.theme-spring-plaid .form-preview {
    background-image:
        /* Horizontal plaid stripes */
        repeating-linear-gradient(0deg, rgba(255, 181, 197, 0.3), rgba(255, 181, 197, 0.3) 8px, transparent 8px, transparent 60px),
        repeating-linear-gradient(0deg, transparent 12px, rgba(197, 180, 227, 0.35), rgba(197, 180, 227, 0.35) 18px, transparent 18px, transparent 60px),
        repeating-linear-gradient(0deg, transparent 24px, rgba(255, 244, 179, 0.25), rgba(255, 244, 179, 0.25) 26px, transparent 26px, transparent 60px),
        repeating-linear-gradient(0deg, transparent 30px, rgba(180, 215, 200, 0.3), rgba(180, 215, 200, 0.3) 34px, transparent 34px, transparent 60px),
        /* Vertical plaid stripes */
        repeating-linear-gradient(90deg, rgba(255, 181, 197, 0.3), rgba(255, 181, 197, 0.3) 8px, transparent 8px, transparent 60px),
        repeating-linear-gradient(90deg, transparent 12px, rgba(197, 180, 227, 0.35), rgba(197, 180, 227, 0.35) 18px, transparent 18px, transparent 60px),
        repeating-linear-gradient(90deg, transparent 24px, rgba(255, 244, 179, 0.25), rgba(255, 244, 179, 0.25) 26px, transparent 26px, transparent 60px),
        repeating-linear-gradient(90deg, transparent 30px, rgba(180, 215, 200, 0.3), rgba(180, 215, 200, 0.3) 34px, transparent 34px, transparent 60px),
        /* Base gradient */
        linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-lavender) 50%, var(--theme-sage) 100%) !important;
    background-attachment: fixed !important;
    color: var(--theme-text) !important;
    min-height: 100vh !important;
}

body.theme-spring-plaid {
    position: relative;
}

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

/* Plaid is rendered directly via stacked background-image on body (no ::before needed) */
body.theme-spring-plaid::before,
body.theme-spring-plaid::after {
    display: none;
}

/* ---- Transparent containers — above plaid overlay ---- */
.theme-spring-plaid .container,
.theme-spring-plaid .container-narrow,
.theme-spring-plaid main,
.theme-spring-plaid .py-2,
.theme-spring-plaid .py-md-5,
.theme-spring-plaid .py-4 {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

/* ---- Cards ---- */
.theme-spring-plaid .card {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-top: 4px solid var(--theme-lavender) !important;
    box-shadow: 0 10px 30px rgba(197, 180, 227, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    border-radius: var(--theme-radius-card) !important;
    position: relative;
}

/* Disable the default card::before (conflicts with plaid body::before) */
.theme-spring-plaid .card::before {
    display: none !important;
}

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

/* ---- Typography ---- */

/* Page headings — on plaid/gradient background */
.theme-spring-plaid h1,
.theme-spring-plaid h2,
.theme-spring-plaid h3 {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Card headings — on white card */
.theme-spring-plaid .card .card-title,
.theme-spring-plaid .card h1,
.theme-spring-plaid .card h2,
.theme-spring-plaid .card h3,
.theme-spring-plaid .card h4,
.theme-spring-plaid .form-section-header .header-title {
    color: var(--theme-primary-deep) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.theme-spring-plaid .form-label,
.theme-spring-plaid .card h5,
.theme-spring-plaid .card h6 {
    color: var(--theme-lavender-deep) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.theme-spring-plaid p,
.theme-spring-plaid .card-text,
.theme-spring-plaid .ql-editor {
    color: #333333 !important;
    font-weight: 400 !important;
}

.theme-spring-plaid .text-muted {
    color: var(--theme-text-muted) !important;
    font-weight: 500 !important;
}

.theme-spring-plaid .text-warning {
    color: #92400e !important;
}

.theme-spring-plaid ::placeholder,
.theme-spring-plaid .form-control::placeholder,
.theme-spring-plaid textarea::placeholder {
    color: #999999 !important;
    opacity: 0.7 !important;
}

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

/* ---- Form Inputs ---- */
.theme-spring-plaid .form-control,
.theme-spring-plaid .form-select,
.theme-spring-plaid textarea {
    background: #ffffff !important;
    border: 1px solid #dcdcdc !important;
    color: var(--theme-text) !important;
    border-radius: var(--theme-radius-input) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    font-size: 16px !important; /* Prevents iOS zoom — do not remove */
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

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

/* Compact inline selects need smaller border-radius to avoid clipping */
.theme-spring-plaid #futurePeriodType,
.theme-spring-plaid #hideOptionLeadHoursContainer {
    border-radius: 6px !important;
}

.theme-spring-plaid .form-control:focus,
.theme-spring-plaid .form-select:focus,
.theme-spring-plaid textarea:focus {
    border-color: var(--theme-lavender) !important;
    box-shadow: 0 0 0 3px rgba(197, 180, 227, 0.15) !important;
    background: #ffffff !important;
    color: var(--theme-text) !important;
}

/* ---- Checkboxes & Radio Buttons ---- */

/* Base — MUST use background-color NOT background shorthand (Issue 19) */
.theme-spring-plaid .form-check-input {
    background-color: #ffffff !important;
    border: 2px solid #b0b0b0 !important;
    border-radius: 4px !important;
    width: 18px !important;
    height: 18px !important;
    transition: all 0.2s ease !important;
}

/* Checkbox — square */
.theme-spring-plaid .form-check-input[type="checkbox"] {
    border-radius: 4px !important;
}

/* Radio — circle */
.theme-spring-plaid .form-check-input[type="radio"] {
    border-radius: 50% !important;
}

/* Checked — MUST use background-color NOT background shorthand */
.theme-spring-plaid .form-check-input:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 10px rgba(255, 181, 197, 0.3) !important;
}

/* Solid fill on checked radio — suppress Bootstrap's inner white dot (Issue 17) */
.theme-spring-plaid .form-check-input[type="radio"]:checked {
    background-image: none !important;
}

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

/* Vertical alignment for checkbox/radio rows (excludes toggle switches) */
.theme-spring-plaid .form-check:not(.form-switch) {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

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

.theme-spring-plaid .form-check:not(.form-switch) .form-check-label {
    margin-bottom: 0 !important;
}

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

/* ---- Toggle Switches ---- */
/* White thumb via --bs-form-switch-bg (Issue 19 — do NOT use background-image: none) */
.theme-spring-plaid .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(197, 180, 227, 0.35) !important;
    border: 2px solid #b0b0b0 !important;
    border-radius: 2em !important;
    width: 2em !important;
    height: 1em !important;
}

.theme-spring-plaid .form-switch .form-check-input:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 10px rgba(255, 181, 197, 0.3) !important;
}

/* ---- Primary Buttons ---- */
.theme-spring-plaid .btn-primary,
.theme-spring-plaid button[type="submit"],
.theme-spring-plaid #submitBtn {
    background: var(--theme-primary) !important;
    border: 1px solid var(--theme-primary) !important;
    color: var(--theme-text) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(255, 181, 197, 0.3) !important;
    border-radius: var(--theme-radius-btn) !important;
    padding: 12px 24px !important;
    transition: all 0.2s ease !important;
}

.theme-spring-plaid .btn-primary:hover,
.theme-spring-plaid button[type="submit"]:hover,
.theme-spring-plaid #submitBtn:hover {
    background: var(--theme-primary-deep) !important;
    border-color: var(--theme-primary-deep) !important;
    box-shadow: 0 6px 16px rgba(255, 181, 197, 0.4) !important;
    transform: translateY(-2px);
    color: var(--theme-text) !important;
}

.theme-spring-plaid .btn-primary:active,
.theme-spring-plaid button[type="submit"]:active,
.theme-spring-plaid #submitBtn:active {
    background: var(--theme-primary-deep) !important;
    border-color: var(--theme-primary-deep) !important;
    box-shadow: 0 2px 8px rgba(255, 181, 197, 0.25) !important;
    transform: translateY(0) scale(0.98) !important;
    color: var(--theme-text) !important;
}

.theme-spring-plaid .btn-primary:focus,
.theme-spring-plaid button[type="submit"]:focus,
.theme-spring-plaid #submitBtn:focus {
    outline: 3px solid rgba(255, 181, 197, 0.5) !important;
    outline-offset: 2px;
}

/* ---- Outline Buttons ---- */
.theme-spring-plaid .btn-outline-primary {
    color: var(--theme-primary-deep) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--theme-primary) !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.theme-spring-plaid .btn-outline-primary:hover {
    background: var(--theme-primary) !important;
    color: var(--theme-text) !important;
    box-shadow: 0 4px 15px rgba(255, 181, 197, 0.25) !important;
}

/* Active/Checked state for toggle button groups */
.theme-spring-plaid .btn-check:checked + .btn-outline-primary,
.theme-spring-plaid .btn-outline-primary:active,
.theme-spring-plaid .btn-outline-primary.active {
    background: linear-gradient(135deg, var(--theme-primary), #FFC8D3) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-text) !important;
    box-shadow: 0 4px 15px rgba(255, 181, 197, 0.4), inset 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    font-weight: 700 !important;
}

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

.theme-spring-plaid .btn-outline-secondary {
    color: var(--theme-lavender-deep) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--theme-lavender) !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.theme-spring-plaid .btn-outline-secondary:hover {
    background: var(--theme-lavender) !important;
    color: var(--theme-text) !important;
    box-shadow: 0 4px 15px rgba(197, 180, 227, 0.2) !important;
}

.theme-spring-plaid .btn-outline-danger {
    color: var(--theme-primary-deep) !important;
    border: 2px solid var(--theme-primary-deep) !important;
    border-radius: var(--theme-radius-btn) !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

.theme-spring-plaid .btn-outline-danger:hover {
    background: var(--theme-primary) !important;
    color: var(--theme-text) !important;
    box-shadow: 0 4px 15px rgba(255, 181, 197, 0.3) !important;
    transform: translateY(-1px);
}

/* ---- Secondary Buttons ---- */
.theme-spring-plaid .btn-secondary {
    background: linear-gradient(45deg, var(--theme-lavender), var(--theme-sage)) !important;
    border: 2px solid var(--theme-lavender) !important;
    color: var(--theme-text) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(197, 180, 227, 0.3) !important;
    border-radius: var(--theme-radius-btn) !important;
    transition: all 0.2s ease !important;
}

.theme-spring-plaid .btn-secondary:hover,
.theme-spring-plaid .btn-secondary:active,
.theme-spring-plaid .btn-secondary:focus {
    background: linear-gradient(45deg, var(--theme-sage), var(--theme-lavender)) !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 6px 16px rgba(255, 181, 197, 0.4) !important;
    transform: translateY(-1px);
    color: var(--theme-text) !important;
}

/* ---- List Items (Options) ---- */
.theme-spring-plaid .list-group-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #dcdcdc !important;
    color: #333333 !important;
    margin-bottom: 8px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
}

/* Left accent bar */
.theme-spring-plaid .list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--theme-primary), var(--theme-lavender));
    border-radius: 4px 0 0 4px;
}

.theme-spring-plaid .list-group-item:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px);
    border-color: var(--theme-sage) !important;
}

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

.theme-spring-plaid .list-group-item input:disabled ~ small {
    color: var(--theme-sage-dark) !important;
    font-weight: 600 !important;
}

.theme-spring-plaid .list-group-item:has(input:disabled) {
    background: rgba(197, 180, 227, 0.2) !important;
    border-color: rgba(180, 215, 200, 0.5) !important;
    opacity: 0.75 !important;
}

.theme-spring-plaid .list-group-item:has(input:disabled):hover {
    background: rgba(197, 180, 227, 0.2) !important;
    border-color: rgba(180, 215, 200, 0.5) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.theme-spring-plaid .list-group-item:has(input:disabled)::before {
    background: linear-gradient(to bottom, rgba(197, 180, 227, 0.5), rgba(180, 215, 200, 0.5)) !important;
}

/* ---- Alerts ---- */
.theme-spring-plaid .alert {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid var(--theme-primary) !important;
    color: var(--theme-text) !important;
    box-shadow: 0 4px 15px rgba(255, 181, 197, 0.1) !important;
    border-radius: 10px !important;
}

/* ---- Quill Editor ---- */
.theme-spring-plaid .ql-toolbar.ql-snow {
    background: #ffffff !important;
    border-color: #dcdcdc !important;
    border-radius: 8px 8px 0 0 !important;
}

.theme-spring-plaid .ql-container.ql-snow {
    background: #ffffff !important;
    border-color: #dcdcdc !important;
    color: var(--theme-text) !important;
    border-radius: 0 0 8px 8px !important;
    border-top: 0 !important;
}

/* ---- Form Sections ---- */
.theme-spring-plaid .form-section-respondent,
.theme-spring-plaid .form-section-main-options,
.theme-spring-plaid .form-section-additional {
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-top: 4px solid var(--theme-lavender) !important;
    box-shadow: 0 10px 30px rgba(197, 180, 227, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    border-radius: var(--theme-radius-card) !important;
}

.theme-spring-plaid .form-section-header {
    background: rgba(197, 180, 227, 0.05) !important;
    color: var(--theme-text) !important;
    border-bottom: 1px solid rgba(197, 180, 227, 0.1) !important;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 700 !important;
    padding: 1rem !important;
}

.theme-spring-plaid .form-section-header .header-title {
    color: var(--theme-primary-deep) !important;
    font-weight: 700 !important;
}

.theme-spring-plaid .form-section-header .header-subtitle {
    color: #4a5568 !important;
    font-weight: 600 !important;
}

/* ---- Additional Questions ---- */
.theme-spring-plaid .additional-question-section .card,
.theme-spring-plaid .additional-question-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 181, 197, 0.2) !important;
    box-shadow: 0 4px 15px rgba(255, 181, 197, 0.08) !important;
    color: var(--theme-text) !important;
    border-radius: var(--theme-radius-card) !important;
}

.theme-spring-plaid .additional-question-section .form-label {
    color: var(--theme-lavender-deep) !important;
    font-weight: 600 !important;
}

/* Icons inside cards and card-like containers — dark by default */
.theme-spring-plaid .card .bi,
.theme-spring-plaid .additional-question-item .bi {
    color: var(--theme-text) !important;
}

/* Option link icons stay blue */
.theme-spring-plaid .card .option-link-icon .bi {
    color: #0066cc !important;
}

/* Inside buttons, icons inherit button color */
.theme-spring-plaid .card .btn .bi,
.theme-spring-plaid .card .btn i,
.theme-spring-plaid .additional-question-item .btn .bi,
.theme-spring-plaid .additional-question-item .btn i {
    color: inherit !important;
}

/* Trash/delete question buttons — red */
.theme-spring-plaid .remove-additional-question-btn,
.theme-spring-plaid .remove-additional-question-btn .bi {
    color: #dc3545 !important;
}

/* ---- Question Type Pills ---- */
.theme-spring-plaid .question-type-pill {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--theme-lavender-deep) !important;
    border: 1px solid var(--theme-lavender) !important;
}

.theme-spring-plaid .question-type-pill:hover {
    background: rgba(197, 180, 227, 0.15) !important;
    color: var(--theme-lavender-deep) !important;
    border-color: var(--theme-lavender-deep) !important;
}

.theme-spring-plaid .question-type-pill.active {
    background: linear-gradient(135deg, var(--theme-primary), #FFC8D3) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-primary) !important;
}

.theme-spring-plaid .question-type-pill.active i,
.theme-spring-plaid .question-type-pill.active .bi {
    color: var(--theme-text) !important;
}

.theme-spring-plaid .question-type-pill i,
.theme-spring-plaid .question-type-pill .bi {
    color: inherit !important;
}

/* ---- Drag Handles ---- */
.theme-spring-plaid .drag-handle {
    color: var(--theme-lavender) !important;
}

/* ---- Option Items (form editor) ---- */
.theme-spring-plaid .option-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #dcdcdc !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.theme-spring-plaid .option-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--theme-primary) !important;
}

/* ---- Icons ---- */
.theme-spring-plaid .bi-calendar-event-fill,
.theme-spring-plaid .bi-clock-fill,
.theme-spring-plaid .bi-geo-alt-fill {
    color: var(--theme-primary-deep) !important;
}

.theme-spring-plaid .max-signups-icon {
    color: var(--theme-primary) !important;
}

/* ---- Navbar ---- */
.theme-spring-plaid .navbar {
    background: linear-gradient(135deg, var(--theme-sage) 0%, #A8CFE3 100%) !important;
    border-bottom: 2px solid var(--theme-sage-deep) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
}

.theme-spring-plaid .navbar-brand {
    font-weight: 700 !important;
}

.theme-spring-plaid .nav-link {
    color: var(--theme-text) !important;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.theme-spring-plaid .nav-link:hover {
    color: var(--theme-lavender-deep) !important;
}

/* "Grasshopper" — buttercream for warmth against the sage/blue navbar */
.theme-spring-plaid .brand-text-primary {
    color: var(--theme-butter) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25) !important;
    font-weight: 700 !important;
    transition: color 0.2s ease !important;
}

/* "Signup" — lavender accent */
.theme-spring-plaid .brand-text-white {
    color: var(--theme-lavender) !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4) !important;
    font-weight: 700 !important;
    transition: color 0.2s ease !important;
}

/* Logo — white for clear visibility on sage/blue navbar */
.theme-spring-plaid .navbar-brand img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: filter 0.2s ease !important;
}

/* Hover — "Grasshopper" shifts to pink, logo holds */
.theme-spring-plaid .navbar-brand:hover .brand-text-primary {
    color: var(--theme-primary) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.theme-spring-plaid .navbar-brand:hover .brand-text-white {
    color: var(--theme-lavender) !important;
}

.theme-spring-plaid .navbar-brand:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.theme-spring-plaid .navbar-toggler {
    border-color: var(--theme-text) !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.theme-spring-plaid .navbar-toggler:focus {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2) !important;
}

.theme-spring-plaid .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, 44, 44, 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-spring-plaid .offcanvas {
    background: linear-gradient(135deg, var(--theme-sage) 0%, #A8CFE3 100%) !important;
    border-left: 2px solid var(--theme-sage-deep) !important;
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.15) !important;
}

.theme-spring-plaid .offcanvas-header {
    border-bottom: 1px solid var(--theme-sage-deep) !important;
}

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

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

.theme-spring-plaid .mobile-nav-section .btn {
    background: var(--theme-lavender) !important;
    border: 1px solid var(--theme-lavender) !important;
    color: var(--theme-text) !important;
    box-shadow: 0 4px 12px rgba(197, 180, 227, 0.25) !important;
}

.theme-spring-plaid .mobile-nav-section .btn:hover {
    background: #B4A0D3 !important;
    box-shadow: 0 6px 16px rgba(197, 180, 227, 0.35) !important;
}

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

.theme-spring-plaid .mobile-nav-item {
    color: var(--theme-text) !important;
    font-weight: 500 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3) !important;
}

.theme-spring-plaid .mobile-nav-item:hover {
    color: var(--theme-lavender-deep) !important;
}

.theme-spring-plaid .mobile-nav-item i {
    color: var(--theme-lavender-deep) !important;
}

/* ---- Footer ---- */
.theme-spring-plaid .footer {
    background: var(--theme-primary) !important;
    border-top: 2px solid var(--theme-primary-deep) !important;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15) !important;
}

.theme-spring-plaid .footer p {
    color: var(--theme-text) !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5) !important;
    font-weight: 500 !important;
}

/* Footer links + all descendants (overrides inline style on <i> icons — Issue 11) */
.theme-spring-plaid .footer a,
.theme-spring-plaid .footer a * {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.theme-spring-plaid .footer a:hover,
.theme-spring-plaid .footer a:hover * {
    color: var(--theme-butter) !important;
}

/* ---- Modals ---- */
.theme-spring-plaid .modal {
    z-index: 9999 !important;
}

.theme-spring-plaid .modal-backdrop {
    display: none !important;
}

.theme-spring-plaid .modal-dialog {
    z-index: 10000 !important;
}

.theme-spring-plaid .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px !important;
    pointer-events: auto !important;
}

.theme-spring-plaid .modal-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 1.5rem 1.5rem 0.5rem !important;
    pointer-events: auto !important;
}

.theme-spring-plaid .modal-title {
    color: var(--theme-primary-deep) !important;
    font-weight: 600 !important;
}

.theme-spring-plaid .modal-body {
    background: transparent !important;
    color: var(--theme-text) !important;
    padding: 1rem 1.5rem !important;
    pointer-events: auto !important;
}

.theme-spring-plaid .modal-footer {
    background: transparent !important;
    border-top: 1px solid rgba(197, 180, 227, 0.15) !important;
    padding: 0.5rem 1.5rem 1.5rem !important;
    pointer-events: auto !important;
}

/* ---- Spreadsheet Modal — full theme opt-out (Issue 15) ---- */

.theme-spring-plaid #ssModal *,
.theme-spring-plaid #ssModal h1,
.theme-spring-plaid #ssModal h2,
.theme-spring-plaid #ssModal h3,
.theme-spring-plaid #ssModal h4,
.theme-spring-plaid #ssModal h5,
.theme-spring-plaid #ssModal h6,
.theme-spring-plaid #ssModal p,
.theme-spring-plaid #ssModal small,
.theme-spring-plaid #ssModal .text-muted {
    color: #212529 !important;
    text-shadow: none !important;
    filter: none !important;
}

.theme-spring-plaid #ssModal .btn i,
.theme-spring-plaid #ssModal .btn .bi {
    color: inherit !important;
}

.theme-spring-plaid #ssModal .text-danger,
.theme-spring-plaid #ssModal .text-danger i,
.theme-spring-plaid #ssModal .text-danger .bi {
    color: #dc3545 !important;
}

.theme-spring-plaid #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;
}

.theme-spring-plaid #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-spring-plaid #ssModal .modal-header {
    background-color: transparent !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 1rem !important;
}

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

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

.theme-spring-plaid #ssModal .btn-primary {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-deep) 100%) !important;
    border: 1px solid var(--theme-primary-deep) !important;
    color: var(--theme-text) !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, 181, 197, 0.4) !important;
    transform: none !important;
}

.theme-spring-plaid #ssModal .btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-primary-deep) 0%, var(--theme-primary) 100%) !important;
    transform: none !important;
}

.theme-spring-plaid #ssModal .btn-outline-secondary {
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-primary-deep) !important;
    background: var(--theme-primary) !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-spring-plaid #ssModal .btn-outline-secondary:hover {
    background: var(--theme-primary-deep) !important;
    border-color: var(--theme-primary-deep) !important;
    color: var(--theme-text) !important;
    transform: none !important;
}

.theme-spring-plaid #ssModal .btn-outline-danger {
    color: var(--theme-primary-deep) !important;
    border: 1px solid var(--theme-primary-deep) !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-spring-plaid #ssModal .btn-outline-danger:hover {
    background: rgba(255, 181, 197, 0.15) !important;
    color: var(--theme-primary-deep) !important;
    transform: none !important;
}

.theme-spring-plaid #ssModal input,
.theme-spring-plaid #ssModal .form-control {
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    color: #212529 !important;
    box-shadow: none !important;
}

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