/* Frosty Winter/Holiday Theme - Icy blues and winter wonderland vibes */
.theme-frosty {
    --primary-color: #4682b4;
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 20%, #e6f0ff 40%, #f0f8ff 60%, #e0f7fa 80%, #ffffff 100%) !important;
    color: #2f2f2f !important;
    min-height: 100vh !important;
    position: relative;
}

/* Apply background to body when theme is active */
body.theme-frosty {
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 20%, #e6f0ff 40%, #f0f8ff 60%, #e0f7fa 80%, #ffffff 100%) !important;
    color: #2f2f2f !important;
    min-height: 100vh !important;
    position: relative;
    overflow-x: hidden !important;
}

/* Force page background to show gradient - mobile fix */
.theme-frosty,
.theme-frosty body,
.theme-frosty html,
html.theme-frosty,
body.theme-frosty main {
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 20%, #e6f0ff 40%, #f0f8ff 60%, #e0f7fa 80%, #ffffff 100%) !important;
    background-attachment: fixed !important;
}

/* Additional mobile-specific fixes */
@media (max-width: 768px) {
    .theme-frosty,
    body.theme-frosty,
    html.theme-frosty {
        background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 20%, #e6f0ff 40%, #f0f8ff 60%, #e0f7fa 80%, #ffffff 100%) !important;
        background-attachment: scroll !important;
        background-size: cover !important;
    }
}

/* Subtle sparkle overlay for magical winter effect */
.theme-frosty::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.3;
    pointer-events: none;
    z-index: -5;
    animation: frostySparkle 3s ease-in-out infinite;
}

/* Gentle sparkle animation */
@keyframes frostySparkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.02);
    }
}

/* Ensure containers have transparent backgrounds */
.theme-frosty .container,
.theme-frosty .container-narrow,
.theme-frosty main,
.theme-frosty .py-2,
.theme-frosty .py-md-5,
.theme-frosty .py-4 {
    background: transparent !important;
}

.theme-frosty .card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #87ceeb !important;
    box-shadow: 0 12px 30px rgba(135, 206, 235, 0.2), 0 6px 20px rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(12px);
    position: relative;
}

/* Frosty shimmer effect on cards */
.theme-frosty .card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #87ceeb, #ffffff, #b3d9ff, #87ceeb);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.6;
    animation: frostyShimmer 4s ease-in-out infinite;
}

@keyframes frostyShimmer {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

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

/* Form inputs with icy styling */
.theme-frosty .form-control,
.theme-frosty .form-select,
.theme-frosty textarea {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid #87ceeb !important;
    color: #2f2f2f !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.2), inset 0 2px 5px rgba(255, 255, 255, 0.3) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

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

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

.theme-frosty .form-control:focus,
.theme-frosty .form-select:focus,
.theme-frosty textarea:focus {
    border-color: #4682b4 !important;
    box-shadow: 0 0 20px rgba(70, 130, 180, 0.4), inset 0 2px 8px rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 1) !important;
    color: #2f2f2f !important;
    transform: translateY(-1px);
}

.theme-frosty .form-label,
.theme-frosty .card-title,
.theme-frosty h1,
.theme-frosty h2,
.theme-frosty h3,
.theme-frosty h4,
.theme-frosty h5,
.theme-frosty h6 {
    color: #4682b4 !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    background: linear-gradient(90deg, #4b5563, #6b7280, #1f2937, #6b7280, #4b5563);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: winterShimmer 5s ease-in-out infinite;
}

@keyframes winterShimmer {
    0%, 100% {
        background-position: 200% 0;
    }
    50% {
        background-position: -200% 0;
    }
}

/* Winter text colors */
.theme-frosty p,
.theme-frosty .card-text,
.theme-frosty .ql-editor {
    color: #2f2f2f !important;
    font-weight: 500 !important;
}

.theme-frosty .btn-primary,
.theme-frosty button[type="submit"] {
    background: linear-gradient(45deg, #b3d9ff, #87ceeb, #e0f7fa) !important;
    border: 2px solid #87ceeb !important;
    color: #2f2f2f !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.3), 0 3px 12px rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    text-shadow: none !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    min-height: 48px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.theme-frosty .btn-primary::before,
.theme-frosty button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.theme-frosty .btn-primary:hover::before,
.theme-frosty button[type="submit"]:hover::before {
    left: 100%;
}

.theme-frosty .btn-primary:hover,
.theme-frosty button[type="submit"]:hover {
    background: linear-gradient(45deg, #e0f7fa, #ffffff, #f0f8ff) !important;
    border-color: #4682b4 !important;
    box-shadow: 0 8px 25px rgba(70, 130, 180, 0.4), 0 0 15px rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-2px) scale(1.02);
    color: #2f2f2f !important;
}

/* Ensure Save Form button has same styling */
.theme-frosty #submitBtn,
.theme-frosty #submitBtn:hover {
    background: linear-gradient(45deg, #b3d9ff, #87ceeb, #e0f7fa) !important;
    border: 2px solid #87ceeb !important;
    color: #2f2f2f !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.3), 0 3px 12px rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    text-shadow: none !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    min-height: 48px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.theme-frosty #submitBtn:hover {
    background: linear-gradient(45deg, #e0f7fa, #ffffff, #f0f8ff) !important;
    border-color: #4682b4 !important;
    box-shadow: 0 8px 25px rgba(70, 130, 180, 0.4), 0 0 15px rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-2px) scale(1.02);
    color: #2f2f2f !important;
}

.theme-frosty .list-group-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #b3d9ff !important;
    color: #2f2f2f !important;
    margin-bottom: 10px !important;
    border-radius: 15px !important;
    font-weight: 500 !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(179, 217, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.theme-frosty .list-group-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #87ceeb, #b3d9ff, #e0f7fa);
}

.theme-frosty .list-group-item:hover {
    background: rgba(240, 248, 255, 0.95) !important;
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.3), 0 0 10px rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    border-color: #4682b4 !important;
}

.theme-frosty .form-check-input {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #87ceeb !important;
    width: 18px !important;
    height: 18px !important;
    transition: all 0.3s ease !important;
}

/* Checkboxes stay square */
.theme-frosty .form-check-input[type="checkbox"] {
    border-radius: 4px !important;
}

/* Radio buttons are circular */
.theme-frosty .form-check-input[type="radio"] {
    border-radius: 50% !important;
}

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

.theme-frosty .form-check-input:checked {
    background-color: #4682b4 !important;
    border-color: #4682b4 !important;
    box-shadow: 0 0 12px rgba(70, 130, 180, 0.5) !important;
}

.theme-frosty .form-check-label {
    color: #2f2f2f !important;
    font-weight: 500 !important;
}

.theme-frosty .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(135, 206, 235, 0.4) !important;
    border: 2px solid #87ceeb !important;
    border-radius: 2em !important;
    width: 2em !important;
    height: 1em !important;
}

.theme-frosty .form-switch .form-check-input:checked {
    background-color: #4682b4 !important;
    border-color: #4682b4 !important;
    box-shadow: 0 0 12px rgba(70, 130, 180, 0.4) !important;
}

.theme-frosty .text-muted {
    color: #5a6c7d !important;
    font-weight: 500 !important;
}

.theme-frosty .alert {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #87ceeb !important;
    color: #2f2f2f !important;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.2) !important;
    border-radius: 15px !important;
}

/* Button variants */
.theme-frosty .btn-secondary {
    background: linear-gradient(45deg, #87ceeb, #b3d9ff) !important;
    border: 2px solid #87ceeb !important;
    color: #2f2f2f !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.3) !important;
    border-radius: 15px !important;
    transition: all 0.3s ease !important;
}

.theme-frosty .btn-secondary:hover,
.theme-frosty .btn-secondary:active,
.theme-frosty .btn-secondary:focus {
    background: linear-gradient(45deg, #b3d9ff, #87ceeb) !important;
    border-color: #4682b4 !important;
    box-shadow: 0 8px 25px rgba(70, 130, 180, 0.4) !important;
    transform: translateY(-2px);
    color: #2f2f2f !important;
}

.theme-frosty .btn-outline-primary {
    color: #4682b4 !important;
    border-color: #4682b4 !important;
    border-width: 2px !important;
    border-radius: 15px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

.theme-frosty .btn-outline-primary:hover {
    background: #4682b4 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.4) !important;
    transform: translateY(-1px);
}

/* Active/Checked state for button toggle groups */
.theme-frosty .btn-check:checked + .btn-outline-primary,
.theme-frosty .btn-outline-primary:active,
.theme-frosty .btn-outline-primary.active {
    background: linear-gradient(135deg, #2c5f8d, #4682b4) !important;
    border-color: #2c5f8d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(44, 95, 141, 0.5), inset 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    font-weight: 700 !important;
}

.theme-frosty .btn-outline-secondary {
    color: #4682b4 !important;
    border-color: #4682b4 !important;
    border-width: 2px !important;
    border-radius: 15px !important;
    font-weight: 600 !important;
    background: rgba(135, 206, 235, 0.12) !important;
    transition: all 0.3s ease !important;
}

.theme-frosty .btn-outline-secondary:hover {
    background: #4682b4 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.4) !important;
    transform: translateY(-1px);
}

/* Form sections */
.theme-frosty .form-section-respondent,
.theme-frosty .form-section-main-options,
.theme-frosty .form-section-additional {
    border-color: #87ceeb !important;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.2) !important;
    border-radius: 20px !important;
}

.theme-frosty .form-section-header {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95)) !important;
    color: #1a1a1a !important;
    border-bottom: 1px solid #87ceeb !important;
    border-radius: 18px 18px 0 0 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    padding: 1rem !important;
}

.theme-frosty .form-section-header .header-title {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.theme-frosty .form-section-header .header-subtitle {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

/* Required asterisk */
.theme-frosty .required-asterisk {
    color: #ff6b6b !important;
    font-weight: bold !important;
}

/* Placeholder text */
.theme-frosty ::placeholder {
    color: #6c757d !important;
    opacity: 0.7 !important;
}

.theme-frosty .form-control::placeholder,
.theme-frosty textarea::placeholder {
    color: #6c757d !important;
    opacity: 0.7 !important;
}

/* Fix dark gray text for better visibility */
.theme-frosty [style*="color: #495057"],
.theme-frosty [style*="color:#495057"] {
    color: #2f2f2f !important;
}

.theme-frosty .bi[style*="color: #495057"],
.theme-frosty .bi[style*="color:#495057"] {
    color: #4682b4 !important;
}

/* Icon styling */
.theme-frosty .bi-people-fill[style*="color: #495057"],
.theme-frosty .bi-people-fill[style*="color:#495057"],
.theme-frosty i.bi-people-fill[style*="color: #495057"],
.theme-frosty i.bi-people-fill[style*="color:#495057"] {
    color: #4682b4 !important;
}

.theme-frosty .max-signups-icon {
    color: #4682b4 !important;
}

/* Event detail icons - use frosty blue */
.theme-frosty .bi-calendar-event-fill[style*="color: var(--primary-color)"],
.theme-frosty .bi-clock-fill[style*="color: var(--primary-color)"],
.theme-frosty .bi-geo-alt-fill[style*="color: var(--primary-color)"],
.theme-frosty .bi-calendar-event-fill,
.theme-frosty .bi-clock-fill,
.theme-frosty .bi-geo-alt-fill {
    color: #4682b4 !important;
}

/* Header and Footer Styling for Frosty Theme */
.theme-frosty .navbar {
    background: linear-gradient(135deg, #b3d9ff 0%, #87ceeb 50%, #e0f7fa 100%) !important;
    border-bottom: 2px solid #4682b4 !important;
    box-shadow: 0 3px 12px rgba(70, 130, 180, 0.3) !important;
}

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

/* Logo filter — steel blue (#4682b4), matches brand-text-white */
.theme-frosty .navbar-brand img {
    filter: brightness(0) saturate(100%) invert(47%) sepia(35%) saturate(500%) hue-rotate(175deg) brightness(95%) contrast(95%) drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)) drop-shadow(0 1px 3px rgba(255, 255, 255, 0.35)) !important;
    transition: filter 0.3s ease !important;
}

/* Hover: "Grasshopper" glows white */
.theme-frosty .navbar-brand:hover .brand-text-primary {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 24px rgba(255, 255, 255, 0.7) !important;
}

.theme-frosty .navbar-brand:hover .brand-text-white {
    color: #4682b4 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 1px 1px 4px rgba(255, 255, 255, 0.8) !important;
}

.theme-frosty .navbar-brand:hover img {
    filter: brightness(0) saturate(100%) invert(47%) sepia(35%) saturate(500%) hue-rotate(175deg) brightness(95%) contrast(95%) drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 1px 5px rgba(255, 255, 255, 0.8)) !important;
}

/* "Grasshopper" = white with blue icy glow, switches to white glow on hover */
.theme-frosty .brand-text-primary {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(70, 130, 180, 0.9), 0 0 20px rgba(135, 206, 235, 0.6) !important;
    transition: color 0.3s ease, text-shadow 0.3s ease !important;
}

/* "Signup" + logo = steel blue with white glow */
.theme-frosty .brand-text-white {
    color: #4682b4 !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 1px 1px 3px rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease, text-shadow 0.3s ease !important;
}

.theme-frosty .navbar-toggler {
    border-color: #4682b4 !important;
    background: rgba(70, 130, 180, 0.1) !important;
}

.theme-frosty .navbar-toggler:focus {
    box-shadow: 0 0 12px rgba(70, 130, 180, 0.4) !important;
}

.theme-frosty .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%2847, 79, 79, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.theme-frosty .offcanvas {
    background: linear-gradient(135deg, #b3d9ff 0%, #87ceeb 50%, #e0f7fa 100%) !important;
    border-left: 2px solid #4682b4 !important;
    box-shadow: -3px 0 12px rgba(70, 130, 180, 0.3) !important;
}

.theme-frosty .offcanvas-header {
    border-bottom: 1px solid #87ceeb !important;
}

.theme-frosty .btn-close {
    filter: none !important;
    color: #2f2f2f !important;
    opacity: 0.8 !important;
}

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

/* Sidebar Dashboard/Login — dark steel blue so it pops on the icy light navbar */
.theme-frosty #mobileNav .btn-primary {
    background: #4682b4 !important;
    background-image: none !important;
    border-color: #4682b4 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    animation: none !important;
}

.theme-frosty #mobileNav .btn-primary::before {
    display: none !important;
}

.theme-frosty #mobileNav .btn-primary:hover {
    background: #2c5f8d !important;
    background-image: none !important;
    border-color: #2c5f8d !important;
    color: #ffffff !important;
    transform: none !important;
}

/* Logout — steel blue outline */
.theme-frosty #mobileNav .btn-outline-secondary {
    background: transparent !important;
    border: 2px solid #4682b4 !important;
    color: #4682b4 !important;
}

.theme-frosty #mobileNav .btn-outline-secondary:hover {
    background: rgba(70, 130, 180, 0.15) !important;
    color: #4682b4 !important;
}

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

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

.theme-frosty .mobile-nav-item:hover {
    color: #4682b4 !important;
    text-shadow: 0 0 6px rgba(70, 130, 180, 0.6) !important;
}

.theme-frosty .mobile-nav-item i {
    color: #4682b4 !important;
}

.theme-frosty .footer {
    background: linear-gradient(135deg, #b3d9ff 0%, #87ceeb 50%, #e0f7fa 100%) !important;
    border-top: 2px solid #4682b4 !important;
    box-shadow: 0 -3px 12px rgba(70, 130, 180, 0.3) !important;
}

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

.theme-frosty .footer a {
    color: #4682b4 !important;
    text-shadow: 0 0 4px rgba(70, 130, 180, 0.4) !important;
    font-weight: 600 !important;
}

.theme-frosty .footer a:hover {
    color: #2f2f2f !important;
    text-shadow: 0 0 6px rgba(47, 47, 47, 0.6) !important;
}

/* Additional questions styling */
.theme-frosty .additional-question-section .card,
.theme-frosty .additional-question-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #87ceeb !important;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.2) !important;
    color: #2f2f2f !important;
    border-radius: 20px !important;
}

.theme-frosty .additional-question-section .card-body {
    background: transparent !important;
    color: #2f2f2f !important;
}

.theme-frosty .additional-question-section .form-label {
    color: #4682b4 !important;
    font-weight: 600 !important;
}

.theme-frosty .additional-question-section .additional-question-header h6,
.theme-frosty .additional-question-section .additional-question-title {
    color: #4682b4 !important;
    font-weight: 600 !important;
}

.theme-frosty .additional-question-section .additional-question-body .form-label,
.theme-frosty .additional-question-section .additional-question-body .fw-semibold {
    color: #4682b4 !important;
    font-weight: 600 !important;
}

.theme-frosty .additional-question-section .additional-question-body .form-check-label {
    color: #2f2f2f !important;
    font-weight: 500 !important;
}

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

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

.theme-frosty .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-frosty .form-check.d-inline-block:not(.form-switch) {
    display: inline-flex !important;
}

/* Option items styling */
.theme-frosty .option-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #b3d9ff !important;
    box-shadow: 0 3px 12px rgba(179, 217, 255, 0.2) !important;
    border-radius: 15px !important;
    transition: all 0.3s ease !important;
}

.theme-frosty .option-item:hover {
    box-shadow: 0 5px 18px rgba(70, 130, 180, 0.3) !important;
    transform: translateY(-1px);
    border-color: #4682b4 !important;
}

/* Quill editor styling */
.theme-frosty .ql-toolbar.ql-snow {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #87ceeb !important;
    border-radius: 12px 12px 0 0 !important;
}

.theme-frosty .ql-container.ql-snow {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #87ceeb !important;
    color: #2f2f2f !important;
    border-radius: 0 0 12px 12px !important;
}

.theme-frosty .ql-editor {
    color: #2f2f2f !important;
    font-weight: 400 !important;
}

/* Modal styling for Frosty theme */
.theme-frosty .modal-backdrop {
    display: none !important;
}

.theme-frosty .modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid #87ceeb !important;
    box-shadow: 0 0 25px rgba(135, 206, 235, 0.4) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(12px);
}

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

.theme-frosty .modal-title {
    color: #4682b4 !important;
    font-weight: 600 !important;
}

.theme-frosty .modal-body {
    background: transparent !important;
    color: #2f2f2f !important;
}

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

.theme-frosty .modal .btn-secondary {
    background: rgba(135, 206, 235, 0.9) !important;
    border: 2px solid #87ceeb !important;
    color: #2f2f2f !important;
    font-weight: 600 !important;
}

.theme-frosty .modal .btn-secondary:hover {
    background: rgba(70, 130, 180, 0.9) !important;
    border-color: #4682b4 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(70, 130, 180, 0.3) !important;
}

/* Viewport-locked snowfall - completely contained */
.theme-frosty::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    background-image:
        radial-gradient(3px 3px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 160px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 200px 90px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 240px 50px, #ffffff, transparent),
        radial-gradient(1px 1px at 280px 120px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 320px 20px, #ffffff, transparent),
        radial-gradient(3px 3px at 360px 100px, rgba(255,255,255,0.7), transparent);
    background-repeat: repeat;
    background-size: 400px 180px;
    animation: viewportSnowfall 15s linear infinite;
    opacity: 0.9;
}

@keyframes viewportSnowfall {
    0% {
        transform: translateY(-180px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(100vh) translateX(80px);
        opacity: 0;
    }
}

/* Second snowfall layer - viewport locked */
.theme-frosty .container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-image:
        radial-gradient(2px 2px at 60px 10px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 180px 60px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 300px 20px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 120px 100px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 260px 140px, rgba(255,255,255,0.5), transparent);
    background-repeat: repeat;
    background-size: 350px 160px;
    animation: viewportSnowfallSlow 20s linear infinite 2s;
    opacity: 0.7;
}

@keyframes viewportSnowfallSlow {
    0% {
        transform: translateY(-160px) translateX(-40px);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) translateX(40px);
        opacity: 0;
    }
}

/* Winter animations for interactive elements */
.theme-frosty .btn,
.theme-frosty .form-control,
.theme-frosty .list-group-item {
    transition: all 0.3s ease !important;
}

.theme-frosty .card {
    animation: frostyGlow 6s ease-in-out infinite alternate;
}

@keyframes frostyGlow {
    from {
        box-shadow: 0 12px 30px rgba(135, 206, 235, 0.2), 0 6px 20px rgba(255, 255, 255, 0.3);
    }
    to {
        box-shadow: 0 15px 35px rgba(135, 206, 235, 0.3), 0 8px 25px rgba(255, 255, 255, 0.4);
    }
}

/* Winter button glow effect */
.theme-frosty .btn-primary {
    animation: winterGlow 4s ease-in-out infinite;
}

@keyframes winterGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(135, 206, 235, 0.3), 0 3px 12px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4), 0 4px 15px rgba(255, 255, 255, 0.3);
    }
}

/* Taken/Disabled option styling - "Show taken options" feature */
.theme-frosty .list-group-item input:disabled + label {
    color: #4682b4 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    text-decoration: line-through !important;
}

.theme-frosty .list-group-item input:disabled ~ small {
    color: #87ceeb !important;
    font-weight: 600 !important;
}

.theme-frosty .list-group-item:has(input:disabled) {
    background: rgba(135, 206, 235, 0.25) !important;
    border-color: rgba(70, 130, 180, 0.4) !important;
    opacity: 0.75 !important;
}

.theme-frosty .list-group-item:has(input:disabled):hover {
    background: rgba(135, 206, 235, 0.25) !important;
    border-color: rgba(70, 130, 180, 0.4) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.2) !important;
}

.theme-frosty .list-group-item:has(input:disabled)::before {
    background: linear-gradient(to bottom, rgba(135, 206, 235, 0.4), rgba(70, 130, 180, 0.4)) !important;
}

/* ---- Spreadsheet Modal — complete theme opt-out ---- */
.theme-frosty #ssModal *,
.theme-frosty #ssModal h1,
.theme-frosty #ssModal h2,
.theme-frosty #ssModal h3,
.theme-frosty #ssModal h4,
.theme-frosty #ssModal h5,
.theme-frosty #ssModal h6,
.theme-frosty #ssModal p,
.theme-frosty #ssModal small,
.theme-frosty #ssModal .text-muted {
    color: #212529 !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-fill-color: initial !important;
    animation: none !important;
}

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

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

.theme-frosty #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;
    animation: none !important;
}

.theme-frosty #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;
    animation: none !important;
}

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

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

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

.theme-frosty #ssModal .btn-primary {
    background: linear-gradient(135deg, #4682b4 0%, #2c5f8d 100%) !important;
    border: 1px solid #4682b4 !important;
    color: #ffffff !important;
    border-radius: 15px !important;
    padding: 0.25rem 0.75rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
}

.theme-frosty #ssModal .btn-primary::before {
    display: none !important;
}

.theme-frosty #ssModal .btn-primary:hover {
    background: linear-gradient(135deg, #87ceeb 0%, #4682b4 100%) !important;
    transform: none !important;
}

.theme-frosty #ssModal .btn-outline-secondary {
    color: #ffffff !important;
    border: 1px solid #4682b4 !important;
    background: #4682b4 !important;
    border-radius: 15px !important;
    padding: 0.25rem 0.75rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transform: none !important;
}

.theme-frosty #ssModal .btn-outline-secondary:hover {
    background: #2c5f8d !important;
    border-color: #2c5f8d !important;
    color: #ffffff !important;
    transform: none !important;
}

.theme-frosty #ssModal .btn-outline-danger {
    color: #87ceeb !important;
    border: 1px solid #87ceeb !important;
    background: transparent !important;
    border-radius: 15px !important;
    padding: 0.25rem 0.75rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transform: none !important;
}

.theme-frosty #ssModal .btn-outline-danger:hover {
    background: rgba(135, 206, 235, 0.12) !important;
    color: #87ceeb !important;
    transform: none !important;
}

.theme-frosty #ssModal input,
.theme-frosty #ssModal .form-control {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #212529 !important;
    box-shadow: none !important;
    font-size: inherit !important;
    animation: none !important;
}
