/* _content/Osirion.Blazor.Theming/Components/ThemePicker.razor.rz.scp.css */
.osirion-theme-picker[b-og5v0iwlo2] {
    display: inline-flex;
    align-items: center;
    gap: var(--osirion-spacing-2, 0.5rem);
    color: inherit;
    font-size: var(--osirion-font-size-sm, 0.875rem);
}

.osirion-theme-picker-select[b-og5v0iwlo2] {
    min-height: 2.25rem;
    padding: 0.25rem 2rem 0.25rem 0.625rem;
    border: 1px solid var(--osirion-input-border, var(--osirion-border-color, currentColor));
    border-radius: var(--osirion-input-radius, 0.375rem);
    background-color: var(--osirion-input-background, transparent);
    color: var(--osirion-input-text, inherit);
    font: inherit;
    cursor: pointer;
}

.osirion-theme-picker-select:focus-visible[b-og5v0iwlo2] {
    outline: var(--osirion-focus-ring-width, 3px) solid var(--osirion-focus-ring-color, currentColor);
    outline-offset: var(--osirion-focus-ring-offset, 2px);
}
/* _content/Osirion.Blazor.Theming/Components/ThemeToggle.razor.rz.scp.css */
/* Child component theme inheritance - ThemeToggle inherits parent component's theme */
[data-osirion-component-theme="light"] .theme-switcher[b-g58l0eyf51],
[data-osirion-component-theme="light"] .theme-toggle-btn[b-g58l0eyf51],
.osirion-bootstrap-integration [data-osirion-component-theme="light"] .theme-switcher[b-g58l0eyf51],
.osirion-bootstrap-integration [data-osirion-component-theme="light"] .theme-toggle-btn[b-g58l0eyf51] {
    /* Force light theme colors */
    --osirion-background-primary: #ffffff !important;
    --osirion-text-primary: #1f2937 !important;
    --osirion-border-color: rgba(0, 0, 0, 0.1) !important;
    --osirion-primary-color: #2563eb !important;
}

[data-osirion-component-theme="dark"] .theme-switcher[b-g58l0eyf51],
[data-osirion-component-theme="dark"] .theme-toggle-btn[b-g58l0eyf51],
.osirion-bootstrap-integration [data-osirion-component-theme="dark"] .theme-switcher[b-g58l0eyf51],
.osirion-bootstrap-integration [data-osirion-component-theme="dark"] .theme-toggle-btn[b-g58l0eyf51] {
    /* Force dark theme colors */
    --osirion-background-primary: #111827 !important;
    --osirion-text-primary: #f3f4f6 !important;
    --osirion-border-color: rgba(255, 255, 255, 0.1) !important;
    --osirion-primary-color: #60a5fa !important;
}

/* Theme Switcher Component base styles (framework agnostic) */
.theme-switcher[b-g58l0eyf51] {
    padding: 10px;
}

.theme-toggle-btn[b-g58l0eyf51] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-width: 1px;
    position: relative;
    border: 1px solid transparent !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    user-select: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

    /* Remove all focus outlines and borders */
    .theme-toggle-btn:focus[b-g58l0eyf51],
    .theme-toggle-btn:focus-visible[b-g58l0eyf51],
    .theme-toggle-btn:active:focus[b-g58l0eyf51],
    .theme-toggle-btn:active[b-g58l0eyf51],
    .theme-toggle-btn.focus[b-g58l0eyf51],
    .theme-toggle-btn:focus:not(:focus-visible)[b-g58l0eyf51] {
        outline: none !important;
        border: 1px solid transparent !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    /* Only show focus outline for keyboard navigation (accessibility) */
    .theme-toggle-btn:focus-visible[b-g58l0eyf51] {
        outline: 2px solid var(--osirion-primary-color, #2563eb) !important;
        outline-offset: 3px !important;
    }

    .theme-toggle-btn[b-g58l0eyf51]::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 50%;
        padding: 2px;
        background: linear-gradient(45deg, var(--osirion-primary-color, #2563eb), var(--osirion-primary-color-hover, #1d4ed8));
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        -webkit-mask-composite: xor;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .theme-toggle-btn:hover[b-g58l0eyf51]::before {
        opacity: 0.7;
    }

    .theme-toggle-btn:hover[b-g58l0eyf51] {
        transform: scale(1.1) rotate(15deg);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
        border: 1px solid transparent !important;
    }

    .theme-toggle-btn:active[b-g58l0eyf51] {
        transform: scale(0.95);
        border: 1px solid transparent !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    .theme-toggle-btn svg[b-g58l0eyf51] {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    }

    .theme-toggle-btn:hover svg[b-g58l0eyf51] {
        transform: rotate(15deg) scale(1.1);
    }

/* Light theme styling (framework-agnostic, driven by data-osirion-theme) */
[data-osirion-theme="light"] .theme-toggle-btn[b-g58l0eyf51] {
    border-color: rgba(0, 0, 0, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--osirion-primary-color, #2563eb);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

    [data-osirion-theme="light"] .theme-toggle-btn:hover[b-g58l0eyf51] {
        background-color: #ffffff;
        border-color: rgba(37, 99, 235, 0.2) !important;
        color: var(--osirion-primary-color-hover, #1d4ed8);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    [data-osirion-theme="light"] .theme-toggle-btn:focus[b-g58l0eyf51],
    [data-osirion-theme="light"] .theme-toggle-btn:active[b-g58l0eyf51] {
        border-color: rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }

/* Dark theme styling */
[data-osirion-theme="dark"] .theme-toggle-btn[b-g58l0eyf51] {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(15, 23, 42, 0.9);
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

    [data-osirion-theme="dark"] .theme-toggle-btn:hover[b-g58l0eyf51] {
        background-color: rgba(30, 41, 59, 0.95);
        border-color: rgba(251, 191, 36, 0.3) !important;
        color: #fcd34d;
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    }

    [data-osirion-theme="dark"] .theme-toggle-btn:focus[b-g58l0eyf51],
    [data-osirion-theme="dark"] .theme-toggle-btn:active[b-g58l0eyf51] {
        border-color: rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    }

/* Component-specific theme inheritance takes priority over global theme */
[data-osirion-component-theme="light"] .theme-toggle-btn[b-g58l0eyf51],
.osirion-bootstrap-integration [data-osirion-component-theme="light"] .theme-toggle-btn[b-g58l0eyf51] {
    border-color: rgba(0, 0, 0, 0.1) !important; 
    background-color: rgba(255, 255, 255, 0.95) !important; 
    color: #2563eb !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

[data-osirion-component-theme="light"] .theme-toggle-btn:hover[b-g58l0eyf51],
.osirion-bootstrap-integration [data-osirion-component-theme="light"] .theme-toggle-btn:hover[b-g58l0eyf51] {
    background-color: #ffffff !important; 
    border-color: rgba(37, 99, 235, 0.2) !important; 
    color: #1d4ed8 !important; 
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

[data-osirion-component-theme="dark"] .theme-toggle-btn[b-g58l0eyf51],
.osirion-bootstrap-integration [data-osirion-component-theme="dark"] .theme-toggle-btn[b-g58l0eyf51] {
    border-color: rgba(255, 255, 255, 0.2) !important; 
    background-color: rgba(15, 23, 42, 0.9) !important; 
    color: #fbbf24 !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

[data-osirion-component-theme="dark"] .theme-toggle-btn:hover[b-g58l0eyf51],
.osirion-bootstrap-integration [data-osirion-component-theme="dark"] .theme-toggle-btn:hover[b-g58l0eyf51] {
    background-color: rgba(30, 41, 59, 0.95) !important; 
    border-color: rgba(251, 191, 36, 0.3) !important; 
    color: #fcd34d !important; 
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.theme-transition-overlay[b-g58l0eyf51] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-toggle-btn.switching[b-g58l0eyf51] {
    pointer-events: none;
    opacity: 0.7;
}

    .theme-toggle-btn.switching svg[b-g58l0eyf51] {
        animation: rotate-theme-icon-b-g58l0eyf51 0.6s ease-in-out;
    }

@keyframes rotate-theme-icon-b-g58l0eyf51 {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(0.8);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.theme-form-fallback[b-g58l0eyf51] {
    display: none !important;
}

@media (max-width: 768px) {
    .theme-toggle-btn[b-g58l0eyf51] {
        width: 40px;
        height: 40px;
    }

        .theme-toggle-btn:hover[b-g58l0eyf51] {
            transform: scale(1.05) rotate(10deg);
        }
}

@media (prefers-contrast: high) {
    .theme-toggle-btn[b-g58l0eyf51] {
        border-width: 2px;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    [data-osirion-theme="dark"] .theme-toggle-btn[b-g58l0eyf51] {
        border-color: #ffffff;
        background-color: #000000;
        color: #ffffff;
    }

    [data-osirion-theme="light"] .theme-toggle-btn[b-g58l0eyf51] {
        border-color: #000000;
        background-color: #ffffff;
        color: #000000;
    }

    .theme-toggle-btn:focus-visible[b-g58l0eyf51] {
        outline: 3px solid var(--osirion-primary-color, #2563eb);
        outline-offset: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle-btn[b-g58l0eyf51], .theme-toggle-btn svg[b-g58l0eyf51], .theme-toggle-btn[b-g58l0eyf51]::before, .theme-transition-overlay[b-g58l0eyf51] {
        transition: none !important;
        animation: none !important;
    }

        .theme-toggle-btn:hover[b-g58l0eyf51] {
            transform: none;
        }

            .theme-toggle-btn:hover svg[b-g58l0eyf51] {
                transform: none;
            }

        .theme-toggle-btn:active[b-g58l0eyf51] {
            transform: none;
        }
}

@media (max-width: 576px) {
    .theme-toggle-btn[b-g58l0eyf51] {
        width: 36px;
        height: 36px;
    }

        .theme-toggle-btn svg[b-g58l0eyf51] {
            width: 14px;
            height: 14px;
        }
}

@media print {
    .theme-switcher[b-g58l0eyf51] {
        display: none;
    }
}
