/* _content/Blank/Components/Layout/MainLayout.razor.rz.scp.css */
/* ============================================
   MAIN LAYOUT - Agendrix-Inspired Design
   ============================================ */

/* ============================================
   GLOBAL LAYOUT STRUCTURE
   ============================================ */

.roovia-app[b-r3lmcreth9] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: rgb(var(--color-gray-25));
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding-top: var(--topbar-height);
}

.roovia-main[b-r3lmcreth9] {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: padding var(--duration-normal) var(--easing-standard);
}

.roovia-content[b-r3lmcreth9] {
    flex: 1;
    padding: var(--content-padding);
    max-width: 2000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.container-fluid[b-r3lmcreth9] {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* ============================================
   ENHANCED ERROR UI
   ============================================ */

#blazor-error-ui[b-r3lmcreth9] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgb(0 0 0 / 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    animation: fadeIn-b-r3lmcreth9 var(--duration-normal) var(--easing-decelerate);
}

.error-toast[b-r3lmcreth9] {
    background-color: rgb(var(--color-white));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    animation: slideInUp-b-r3lmcreth9 var(--duration-slow) var(--easing-decelerate);
}

.error-content[b-r3lmcreth9] {
    display: flex;
    padding: var(--space-xl);
    gap: var(--space-lg);
    align-items: flex-start;
}

.error-icon[b-r3lmcreth9] {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgb(var(--color-danger-100)), rgb(var(--color-danger-200)));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--color-danger-600));
    font-size: 1.25rem;
}

.error-details[b-r3lmcreth9] {
    flex: 1;
    min-width: 0;
}

    .error-details h4[b-r3lmcreth9] {
        margin: 0 0 var(--space-sm) 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: rgb(var(--color-gray-700));
        font-family: 'Montserrat', sans-serif;
        letter-spacing: -0.025em;
    }

    .error-details p[b-r3lmcreth9] {
        margin: 0 0 var(--space-lg) 0;
        font-size: 0.875rem;
        color: rgb(var(--color-gray-500));
        line-height: 1.5;
    }

.error-actions[b-r3lmcreth9] {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.error-close[b-r3lmcreth9] {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: rgb(var(--color-gray-400));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--easing-standard);
}

    .error-close:hover[b-r3lmcreth9] {
        background-color: rgb(var(--color-gray-100));
        color: rgb(var(--color-gray-600));
    }

/* ============================================
   TOAST SYSTEM
   ============================================ */

.toast-container[b-r3lmcreth9] {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    pointer-events: none;
    max-width: 400px;
    margin-top: var(--topbar-height);
}

.roovia-toast[b-r3lmcreth9] {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background-color: rgb(var(--color-white));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    border-left: 4px solid;
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    transition: all var(--duration-normal) var(--easing-decelerate);
    pointer-events: auto;
    max-width: 100%;
}

    .roovia-toast.show[b-r3lmcreth9] {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    .roovia-toast.dismissing[b-r3lmcreth9] {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
        transition-duration: var(--duration-fast);
    }

.roovia-toast--success[b-r3lmcreth9] {
    border-left-color: rgb(var(--color-success-500));
}

.roovia-toast--warning[b-r3lmcreth9] {
    border-left-color: rgb(var(--color-warning-500));
}

.roovia-toast--error[b-r3lmcreth9] {
    border-left-color: rgb(var(--color-danger-500));
}

.roovia-toast--info[b-r3lmcreth9] {
    border-left-color: rgb(var(--color-accent-500));
}

.toast-icon[b-r3lmcreth9] {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.roovia-toast--success .toast-icon[b-r3lmcreth9] {
    color: rgb(var(--color-success-600));
}

.roovia-toast--warning .toast-icon[b-r3lmcreth9] {
    color: rgb(var(--color-warning-600));
}

.roovia-toast--error .toast-icon[b-r3lmcreth9] {
    color: rgb(var(--color-danger-600));
}

.roovia-toast--info .toast-icon[b-r3lmcreth9] {
    color: rgb(var(--color-accent-600));
}

.toast-content[b-r3lmcreth9] {
    flex: 1;
    min-width: 0;
}

.toast-message[b-r3lmcreth9] {
    font-size: 0.875rem;
    line-height: 1.4;
    color: rgb(var(--color-gray-600));
    margin: 0;
}

.toast-dismiss[b-r3lmcreth9] {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: rgb(var(--color-gray-400));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--easing-standard);
    font-size: 0.875rem;
}

    .toast-dismiss:hover[b-r3lmcreth9] {
        background-color: rgb(var(--color-gray-100));
        color: rgb(var(--color-gray-600));
    }

/* ============================================
   CONNECTION STATUS
   ============================================ */

.connection-status[b-r3lmcreth9] {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: rgb(var(--color-white));
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-md);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(var(--color-gray-600));
    opacity: 0;
    transform: translateY(1rem);
    transition: all var(--duration-normal) var(--easing-standard);
    pointer-events: none;
}

    .connection-status.show[b-r3lmcreth9] {
        opacity: 1;
        transform: translateY(0);
    }

.status-dot[b-r3lmcreth9] {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background-color: rgb(var(--color-success-500));
    animation: pulse-b-r3lmcreth9 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

    .status-dot.disconnected[b-r3lmcreth9] {
        background-color: rgb(var(--color-danger-500));
        animation: none;
    }

.status-text[b-r3lmcreth9] {
    font-family: 'Rubik', sans-serif;
    letter-spacing: 0.025em;
}

/* ============================================
   DARK THEME ADJUSTMENTS
   ============================================ */

[data-theme="atriver-dark"] .roovia-app[b-r3lmcreth9] {
    background-color: rgb(var(--color-gray-50));
}

[data-theme="atriver-dark"] .error-toast[b-r3lmcreth9],
[data-theme="atriver-dark"] .roovia-toast[b-r3lmcreth9],
[data-theme="atriver-dark"] .connection-status[b-r3lmcreth9] {
    background-color: rgb(var(--color-gray-100));
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

[data-theme="atriver-dark"] .error-details h4[b-r3lmcreth9],
[data-theme="atriver-dark"] .toast-message[b-r3lmcreth9] {
    color: rgb(var(--color-gray-600));
}

[data-theme="atriver-dark"] .error-details p[b-r3lmcreth9] {
    color: rgb(var(--color-gray-500));
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1199.98px) {
    .roovia-content[b-r3lmcreth9] {
        max-width: none;
    }
}

@media (max-width: 991.98px) {
    .roovia-app[b-r3lmcreth9] {
        padding-top: var(--topbar-height);
    }
}

@media (max-width: 767.98px) {
    .toast-container[b-r3lmcreth9] {
        top: calc(var(--topbar-height) + var(--space-sm));
        right: var(--space-sm);
        left: var(--space-sm);
        max-width: none;
    }

    .roovia-toast[b-r3lmcreth9] {
        padding: var(--space-md);
    }

    .error-content[b-r3lmcreth9] {
        padding: var(--space-lg);
        gap: var(--space-md);
        flex-direction: column;
        text-align: center;
    }

    .error-actions[b-r3lmcreth9] {
        justify-content: center;
    }

    .error-close[b-r3lmcreth9] {
        position: absolute;
        top: var(--space-md);
        right: var(--space-md);
    }

    .connection-status[b-r3lmcreth9] {
        bottom: var(--space-md);
        right: var(--space-md);
        font-size: 0.6875rem;
    }
}

@media (max-width: 479.98px) {
    .toast-container[b-r3lmcreth9] {
        top: calc(var(--topbar-height) + var(--space-xs));
        right: var(--space-xs);
        left: var(--space-xs);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn-b-r3lmcreth9 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp-b-r3lmcreth9 {
    from {
        opacity: 0;
        transform: translateY(2rem) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse-b-r3lmcreth9 {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.roovia-toast[b-r3lmcreth9],
.error-toast[b-r3lmcreth9],
.connection-status[b-r3lmcreth9] {
    will-change: transform, opacity;
}

.roovia-app[b-r3lmcreth9] {
    text-rendering: optimizeSpeed;
}

@media (min-width: 768px) {
    .roovia-app[b-r3lmcreth9] {
        text-rendering: optimizeLegibility;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *[b-r3lmcreth9],
    *[b-r3lmcreth9]::before,
    *[b-r3lmcreth9]::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .status-dot[b-r3lmcreth9] {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    .roovia-toast[b-r3lmcreth9],
    .error-toast[b-r3lmcreth9],
    .connection-status[b-r3lmcreth9] {
        border: 2px solid rgb(var(--color-gray-400));
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .roovia-app[b-r3lmcreth9] {
        background: white;
        padding-top: 0;
    }

    .roovia-main[b-r3lmcreth9] {
        margin-top: 0;
    }

    #blazor-error-ui[b-r3lmcreth9],
    .toast-container[b-r3lmcreth9],
    .connection-status[b-r3lmcreth9] {
        display: none !important;
    }

    .roovia-content[b-r3lmcreth9] {
        padding: 0;
        max-width: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.js-enabled[b-r3lmcreth9] {
    /* Styles that only apply when JavaScript is available */
}

.no-js[b-r3lmcreth9] {
    /* Fallback styles for when JavaScript is disabled */
}

.is-loading[b-r3lmcreth9] {
    pointer-events: none;
    opacity: 0.7;
}

    .is-loading[b-r3lmcreth9]::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1.5rem;
        height: 1.5rem;
        margin: -0.75rem 0 0 -0.75rem;
        border: 2px solid transparent;
        border-top-color: rgb(var(--color-primary-500));
        border-radius: 50%;
        animation: spin-b-r3lmcreth9 0.8s linear infinite;
    }

@keyframes spin-b-r3lmcreth9 {
    to {
        transform: rotate(360deg);
    }
}

.focus-trap[b-r3lmcreth9] {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sr-only[b-r3lmcreth9] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus[b-r3lmcreth9] {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}
/* _content/Blank/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-fb0bcewmcx] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-fb0bcewmcx] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-fb0bcewmcx] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-fb0bcewmcx] {
    font-size: 1.1rem;
}

.bi[b-fb0bcewmcx] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-fb0bcewmcx] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-fb0bcewmcx] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-fb0bcewmcx] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock-nav-menu[b-fb0bcewmcx] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu[b-fb0bcewmcx] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu[b-fb0bcewmcx] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu[b-fb0bcewmcx] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu[b-fb0bcewmcx] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

.nav-item[b-fb0bcewmcx] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-fb0bcewmcx] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-fb0bcewmcx] {
        padding-bottom: 1rem;
    }

    .nav-item[b-fb0bcewmcx]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-fb0bcewmcx]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-fb0bcewmcx]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-fb0bcewmcx] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-fb0bcewmcx] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-fb0bcewmcx] {
        display: none;
    }

    .nav-scrollable[b-fb0bcewmcx] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* _content/Blank/Components/Layout/NotificationBadge.razor.rz.scp.css */
:root[b-jsp01x6ffv] {
    /* Notification Colors */
    --nb-primary: 15, 105, 115;
    --nb-success: 22, 163, 74;
    --nb-danger: 220, 38, 38;
    --nb-warning: 217, 119, 6;
    --nb-info: 59, 130, 246;
    /* Neutrals */
    --nb-white: 255, 255, 255;
    --nb-gray-50: 249, 250, 251;
    --nb-gray-100: 243, 244, 246;
    --nb-gray-200: 229, 231, 235;
    --nb-gray-300: 209, 213, 219;
    --nb-gray-400: 156, 163, 175;
    --nb-gray-500: 107, 114, 128;
    --nb-gray-600: 75, 85, 99;
    --nb-gray-700: 55, 65, 81;
    --nb-gray-800: 31, 41, 55;
    --nb-gray-900: 17, 24, 39;
    /* Spacing */
    --nb-space-1: 0.25rem;
    --nb-space-2: 0.5rem;
    --nb-space-3: 0.75rem;
    --nb-space-4: 1rem;
    --nb-space-5: 1.25rem;
    --nb-space-6: 1.5rem;
    /* Radius */
    --nb-radius-sm: 0.375rem;
    --nb-radius-md: 0.5rem;
    --nb-radius-lg: 0.625rem;
    --nb-radius-xl: 0.875rem;
    --nb-radius-full: 9999px;
    /* Shadows */
    --nb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --nb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --nb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --nb-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    /* Transitions */
    --nb-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== NOTIFICATION CONTAINER ====== */
.notification-container[b-jsp01x6ffv] {
    position: relative;
    display: flex;
    align-items: center;
}

/* ====== NOTIFICATION BUTTON ====== */
.notification-button[b-jsp01x6ffv] {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--nb-radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--nb-transition);
    position: relative;
}

    .notification-button:hover[b-jsp01x6ffv] {
        background: rgba(var(--nb-primary), 0.04);
        color: rgb(var(--nb-primary));
        border-color: rgba(var(--nb-primary), 0.08);
        transform: translateY(-0.5px);
    }

    .notification-button.active[b-jsp01x6ffv] {
        background: rgba(var(--nb-primary), 0.06);
        color: rgb(var(--nb-primary));
        border-color: rgba(var(--nb-primary), 0.12);
    }

    .notification-button.pulse[b-jsp01x6ffv]::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: var(--nb-radius-md);
        border: 2px solid rgb(var(--nb-primary));
        opacity: 0;
        animation: pulse-ring-b-jsp01x6ffv 1.5s ease-out;
    }

@keyframes pulse-ring-b-jsp01x6ffv {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* ====== NOTIFICATION BADGE ====== */
.notification-badge[b-jsp01x6ffv] {
    position: absolute;
    top: -0.125rem;
    right: -0.125rem;
    min-width: 0.875rem;
    height: 0.875rem;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border-radius: var(--nb-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0 0.25rem;
    border: 2px solid rgb(var(--nb-white));
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.025em;
}

    .notification-badge.animate[b-jsp01x6ffv] {
        animation: badge-bounce-b-jsp01x6ffv 0.5s ease-out;
    }

@keyframes badge-bounce-b-jsp01x6ffv {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* ====== NOTIFICATION DROPDOWN ====== */
.notification-dropdown[b-jsp01x6ffv] {
    position: absolute;
    top: calc(100% + 0.625rem);
    right: 0;
    width: 380px;
    background: rgb(var(--nb-white));
    border-radius: var(--nb-radius-xl);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    overflow: hidden;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

    .notification-dropdown.show[b-jsp01x6ffv] {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

/* ====== DROPDOWN HEADER ====== */
.notification-dropdown-header[b-jsp01x6ffv] {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgb(var(--nb-gray-200));
    background: linear-gradient(135deg, rgba(var(--nb-primary), 0.02), rgba(var(--nb-primary), 0.01));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header-content[b-jsp01x6ffv] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

    .header-content i[b-jsp01x6ffv] {
        color: rgb(var(--nb-primary));
        font-size: 0.875rem;
    }

    .header-content h4[b-jsp01x6ffv] {
        margin: 0;
        font-size: 0.9375rem;
        font-weight: 600;
        color: rgb(var(--nb-gray-900));
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        letter-spacing: -0.025em;
    }

.unread-count[b-jsp01x6ffv] {
    background: rgb(var(--nb-primary));
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: var(--nb-radius-full);
    margin-left: 0.25rem;
}

.mark-all-read[b-jsp01x6ffv] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: transparent;
    border: 1px solid rgb(var(--nb-gray-300));
    border-radius: var(--nb-radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(var(--nb-gray-600));
    cursor: pointer;
    transition: all var(--nb-transition);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

    .mark-all-read:hover[b-jsp01x6ffv] {
        background: rgb(var(--nb-gray-50));
        border-color: rgb(var(--nb-gray-400));
        color: rgb(var(--nb-gray-900));
    }

    .mark-all-read i[b-jsp01x6ffv] {
        font-size: 0.75rem;
    }

    .mark-all-read span[b-jsp01x6ffv] {
        display: none;
    }

@media (min-width: 480px) {
    .mark-all-read span[b-jsp01x6ffv] {
        display: inline;
    }
}

/* ====== NOTIFICATION LIST ====== */
.notification-list[b-jsp01x6ffv] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

    .notification-list[b-jsp01x6ffv]::-webkit-scrollbar {
        width: 6px;
    }

    .notification-list[b-jsp01x6ffv]::-webkit-scrollbar-track {
        background: transparent;
    }

    .notification-list[b-jsp01x6ffv]::-webkit-scrollbar-thumb {
        background: rgb(var(--nb-gray-300));
        border-radius: var(--nb-radius-full);
    }

/* ====== NOTIFICATION ITEM ====== */
.notification-item[b-jsp01x6ffv] {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: all var(--nb-transition);
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

    .notification-item:hover[b-jsp01x6ffv] {
        background: rgba(var(--nb-primary), 0.02);
    }

    .notification-item.unread[b-jsp01x6ffv] {
        background: rgba(var(--nb-primary), 0.01);
    }

        .notification-item.unread[b-jsp01x6ffv]::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: rgb(var(--nb-primary));
        }

/* Notification Type Styling */
.notification-new-request[b-jsp01x6ffv] {
    --notification-color: var(--nb-primary);
}

.notification-contact[b-jsp01x6ffv] {
    --notification-color: var(--nb-success);
}

.notification-update[b-jsp01x6ffv] {
    --notification-color: var(--nb-warning);
}

.notification-system[b-jsp01x6ffv] {
    --notification-color: var(--nb-info);
}

/* ====== NOTIFICATION ICON ====== */
.notification-icon[b-jsp01x6ffv] {
    width: 2rem;
    height: 2rem;
    border-radius: var(--nb-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.icon-primary[b-jsp01x6ffv] {
    background: rgba(var(--nb-primary), 0.1);
    color: rgb(var(--nb-primary));
}

.icon-success[b-jsp01x6ffv] {
    background: rgba(var(--nb-success), 0.1);
    color: rgb(var(--nb-success));
}

.icon-warning[b-jsp01x6ffv] {
    background: rgba(var(--nb-warning), 0.1);
    color: rgb(var(--nb-warning));
}

.icon-info[b-jsp01x6ffv] {
    background: rgba(var(--nb-info), 0.1);
    color: rgb(var(--nb-info));
}

.icon-default[b-jsp01x6ffv] {
    background: rgba(var(--nb-gray-500), 0.1);
    color: rgb(var(--nb-gray-500));
}

/* ====== NOTIFICATION CONTENT ====== */
.notification-content[b-jsp01x6ffv] {
    flex: 1;
    min-width: 0;
}

    .notification-content h5[b-jsp01x6ffv] {
        margin: 0 0 0.25rem 0;
        font-size: 0.8125rem;
        font-weight: 600;
        color: rgb(var(--nb-gray-900));
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        letter-spacing: -0.02em;
        line-height: 1.3;
    }

    .notification-content p[b-jsp01x6ffv] {
        margin: 0 0 0.5rem 0;
        font-size: 0.75rem;
        color: rgb(var(--nb-gray-600));
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* ====== NOTIFICATION META ====== */
.notification-meta[b-jsp01x6ffv] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
}

.notification-time[b-jsp01x6ffv] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgb(var(--nb-gray-500));
}

    .notification-time i[b-jsp01x6ffv] {
        font-size: 0.625rem;
    }

.notification-action[b-jsp01x6ffv] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgb(var(--nb-primary));
    font-weight: 500;
}

    .notification-action i[b-jsp01x6ffv] {
        font-size: 0.625rem;
    }

/* ====== UNREAD DOT ====== */
.notification-unread-dot[b-jsp01x6ffv] {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 6px;
    height: 6px;
    background: rgb(var(--nb-primary));
    border-radius: var(--nb-radius-full);
    box-shadow: 0 0 0 2px rgba(var(--nb-primary), 0.2);
}

/* ====== LOADING STATE ====== */
.notification-loading[b-jsp01x6ffv] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner-sm[b-jsp01x6ffv] {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgb(var(--nb-gray-200));
    border-top-color: rgb(var(--nb-primary));
    border-radius: var(--nb-radius-full);
    animation: spin-b-jsp01x6ffv 0.8s linear infinite;
}

@keyframes spin-b-jsp01x6ffv {
    to {
        transform: rotate(360deg);
    }
}

.notification-loading p[b-jsp01x6ffv] {
    margin: 0.75rem 0 0 0;
    font-size: 0.75rem;
    color: rgb(var(--nb-gray-500));
}

/* ====== NO NOTIFICATIONS ====== */
.no-notifications[b-jsp01x6ffv] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

    .no-notifications i[b-jsp01x6ffv] {
        font-size: 2.5rem;
        color: rgb(var(--nb-gray-300));
        margin-bottom: 1rem;
    }

    .no-notifications p[b-jsp01x6ffv] {
        margin: 0 0 0.25rem 0;
        font-size: 0.875rem;
        font-weight: 600;
        color: rgb(var(--nb-gray-900));
    }

    .no-notifications span[b-jsp01x6ffv] {
        font-size: 0.75rem;
        color: rgb(var(--nb-gray-500));
    }

/* ====== DROPDOWN FOOTER ====== */
.notification-dropdown-footer[b-jsp01x6ffv] {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid rgb(var(--nb-gray-200));
    background: rgb(var(--nb-gray-50));
    flex-shrink: 0;
}

    .notification-dropdown-footer a[b-jsp01x6ffv] {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-decoration: none;
        color: rgb(var(--nb-primary));
        font-size: 0.8125rem;
        font-weight: 500;
        transition: all var(--nb-transition);
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }

        .notification-dropdown-footer a:hover[b-jsp01x6ffv] {
            color: rgb(var(--nb-primary));
            transform: translateX(2px);
        }

    .notification-dropdown-footer i[b-jsp01x6ffv] {
        font-size: 0.75rem;
    }

/* ====== BACKDROP ====== */
.notification-backdrop[b-jsp01x6ffv] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    z-index: 1100;
}

/* ====== DARK THEME ====== */
[data-theme="atriver-dark"][b-jsp01x6ffv] {
    --nb-white: 28, 28, 32;
    --nb-gray-50: 35, 35, 40;
    --nb-gray-100: 45, 45, 52;
    --nb-gray-200: 55, 55, 64;
    --nb-gray-300: 75, 75, 85;
    --nb-gray-400: 120, 120, 135;
    --nb-gray-500: 156, 163, 175;
    --nb-gray-600: 209, 213, 219;
    --nb-gray-700: 229, 231, 235;
    --nb-gray-800: 243, 244, 246;
    --nb-gray-900: 249, 250, 251;
    --nb-primary: 80, 150, 170;
    --nb-success: 52, 211, 153;
    --nb-danger: 248, 113, 113;
    --nb-warning: 251, 191, 36;
    --nb-info: 96, 165, 250;
}

    [data-theme="atriver-dark"] .notification-button[b-jsp01x6ffv] {
        color: rgba(255, 255, 255, 0.65);
    }

        [data-theme="atriver-dark"] .notification-button:hover[b-jsp01x6ffv] {
            background: rgba(var(--nb-primary), 0.1);
            color: rgb(var(--nb-primary));
            border-color: rgba(var(--nb-primary), 0.15);
        }

    [data-theme="atriver-dark"] .notification-badge[b-jsp01x6ffv] {
        border-color: rgb(28, 28, 32);
    }

    [data-theme="atriver-dark"] .notification-dropdown[b-jsp01x6ffv] {
        background: rgb(28, 28, 32);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }

    [data-theme="atriver-dark"] .notification-dropdown-header[b-jsp01x6ffv] {
        background: linear-gradient(135deg, rgba(var(--nb-primary), 0.06), rgba(var(--nb-primary), 0.02));
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    [data-theme="atriver-dark"] .notification-item[b-jsp01x6ffv] {
        border-bottom-color: rgba(255, 255, 255, 0.04);
    }

        [data-theme="atriver-dark"] .notification-item:hover[b-jsp01x6ffv] {
            background: rgba(var(--nb-primary), 0.06);
        }

        [data-theme="atriver-dark"] .notification-item.unread[b-jsp01x6ffv] {
            background: rgba(var(--nb-primary), 0.03);
        }

    [data-theme="atriver-dark"] .mark-all-read[b-jsp01x6ffv] {
        border-color: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.65);
    }

        [data-theme="atriver-dark"] .mark-all-read:hover[b-jsp01x6ffv] {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.25);
            color: rgba(255, 255, 255, 0.9);
        }

/* ====== RESPONSIVE ====== */
@media (max-width: 767px) {
    .notification-dropdown[b-jsp01x6ffv] {
        width: calc(100vw - 2rem);
        right: -0.5rem;
        max-height: 70vh;
    }
}

@media (max-width: 479px) {
    .notification-dropdown[b-jsp01x6ffv] {
        width: 100vw;
        right: -1rem;
        left: -1rem;
        border-radius: 0 0 var(--nb-radius-xl) var(--nb-radius-xl);
        top: calc(100% + 0.25rem);
    }

    .notification-dropdown-header[b-jsp01x6ffv] {
        padding: 0.875rem 1rem;
    }

    .notification-item[b-jsp01x6ffv] {
        padding: 0.75rem 1rem;
    }
}

/* _content/Blank/Components/Layout/Theme.razor.rz.scp.css */
/* ================================================================= */
/* Theme.razor.css - Enhanced with Full Theme System Integration */
/* ================================================================= */

/* ====== Theme Component Wrapper ====== */
.theme-component-wrapper[b-qjmoeq0uvi] {
    position: relative;
    z-index: var(--z-toast);
}

/* ====== Floating Action Button for Theme Chooser ====== */
.theme-chooser-button[b-qjmoeq0uvi] {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    color: var(--text-on-primary);
    border: none;
    border-radius: calc(16px * var(--radius-factor));
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all var(--transition-normal) var(--animation-timing);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

    /* Ripple effect container */
    .theme-chooser-button[b-qjmoeq0uvi]::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
        opacity: 0;
        transition: opacity var(--transition-normal) ease;
    }

    .theme-chooser-button[b-qjmoeq0uvi]::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: -2px;
        right: -2px;
        height: 4px;
        background: var(--secondary-gradient);
        transform: scaleX(0);
        transition: transform var(--transition-normal) var(--animation-timing);
    }

    .theme-chooser-button:hover[b-qjmoeq0uvi] {
        transform: var(--hover-lift) var(--hover-scale);
        box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.35);
    }

        .theme-chooser-button:hover[b-qjmoeq0uvi]::before {
            opacity: 1;
        }

        .theme-chooser-button:hover[b-qjmoeq0uvi]::after {
            transform: scaleX(1);
        }

    .theme-chooser-button i[b-qjmoeq0uvi] {
        font-size: 1.75rem;
        transition: transform var(--transition-normal) var(--animation-timing);
        z-index: 1;
    }

    .theme-chooser-button:hover i[b-qjmoeq0uvi] {
        transform: rotate(15deg) scale(1.1);
    }

    .theme-chooser-button:active[b-qjmoeq0uvi] {
        transform: scale(0.95);
    }

/* Pulse animation for attention */
@keyframes theme-button-pulse-b-qjmoeq0uvi {
    0%, 100% {
        box-shadow: var(--shadow-lg), 0 0 0 0 rgba(var(--primary-rgb), 0.4);
    }

    50% {
        box-shadow: var(--shadow-lg), 0 0 0 12px rgba(var(--primary-rgb), 0);
    }
}

.theme-chooser-button:not(:hover)[b-qjmoeq0uvi] {
    animation: theme-button-pulse-b-qjmoeq0uvi 3s infinite;
}

/* ====== Theme Selector Modal Overlay ====== */
.theme-modal-overlay[b-qjmoeq0uvi] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal) var(--animation-timing);
    padding: var(--spacing-4);
    backdrop-filter: blur(8px);
}

.theme-modal-visible[b-qjmoeq0uvi] {
    opacity: 1;
    visibility: visible;
}

/* ====== Modal Content Container ====== */
.theme-modal-content[b-qjmoeq0uvi] {
    background: var(--content-bg);
    border-radius: calc(var(--border-radius-xl) * var(--radius-factor));
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 1000px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Changed from hidden to prevent cutoff */
    border: 1px solid var(--border-divider);
    transform: scale(0.9) translateY(30px);
    transition: all var(--transition-normal) var(--animation-timing);
    position: relative;
    isolation: isolate;
}

    /* Subtle gradient overlay */
    .theme-modal-content[b-qjmoeq0uvi]::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
        border-radius: inherit;
    }

.theme-modal-visible .theme-modal-content[b-qjmoeq0uvi] {
    transform: scale(1) translateY(0);
}

/* ====== Modal Header ====== */
.theme-modal-header[b-qjmoeq0uvi] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-5);
    border-bottom: 1px solid var(--border-divider);
    background: linear-gradient(135deg, var(--subtle-bg) 100%, rgba(var(--primary-rgb), 0.02) 100%);
    position: relative;
    z-index: 1;
    /* Smart border radius for top corners only */
    border-radius: calc(var(--border-radius-xl) * var(--radius-factor) - 1px) calc(var(--border-radius-xl) * var(--radius-factor) - 1px) 0 0;
    /* Dynamic padding to prevent content cutoff */
    padding-left: calc(var(--spacing-5) + max(0px, calc((var(--border-radius-xl) * var(--radius-factor) - 20px) * 0.4)));
    padding-right: calc(var(--spacing-5) + max(0px, calc((var(--border-radius-xl) * var(--radius-factor) - 20px) * 0.4)));
}



@keyframes shimmer-b-qjmoeq0uvi {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

.theme-header-main[b-qjmoeq0uvi] {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    flex: 1;
}

.theme-modal-icon[b-qjmoeq0uvi] {
    width: 56px;
    height: 56px;
    border-radius: calc(var(--border-radius-lg) * var(--radius-factor));
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md), 0 4px 16px rgba(var(--primary-rgb), 0.25);
    position: relative;
    overflow: hidden;
}

    .theme-modal-icon[b-qjmoeq0uvi]::after {
        content: '';
        position: absolute;
        inset: -50%;
        background: conic-gradient(transparent, rgba(255,255,255,0.3), transparent);
        animation: rotate-b-qjmoeq0uvi 3s linear infinite;
    }

@keyframes rotate-b-qjmoeq0uvi {
    to {
        transform: rotate(360deg);
    }
}

.theme-modal-icon i[b-qjmoeq0uvi] {
    z-index: 1;
}

.theme-title-section[b-qjmoeq0uvi] {
    flex: 1;
}

.theme-modal-title[b-qjmoeq0uvi] {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-1) 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-modal-subtitle[b-qjmoeq0uvi] {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.theme-modal-close[b-qjmoeq0uvi] {
    width: 44px;
    height: 44px;
    border-radius: calc(var(--border-radius-md) * var(--radius-factor));
    background: var(--subtle-bg);
    border: 2px solid var(--border-divider);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal) var(--animation-timing);
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

    .theme-modal-close[b-qjmoeq0uvi]::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--danger-gradient);
        opacity: 0;
        transition: opacity var(--transition-fast);
    }

    .theme-modal-close:hover[b-qjmoeq0uvi] {
        border-color: var(--danger);
        color: white;
        transform: var(--hover-scale) rotate(90deg);
    }

        .theme-modal-close:hover[b-qjmoeq0uvi]::before {
            opacity: 1;
        }

    .theme-modal-close i[b-qjmoeq0uvi] {
        z-index: 1;
        transition: transform var(--transition-normal);
    }

/* ====== Modal Body ====== */
.theme-modal-body[b-qjmoeq0uvi] {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-6);
    background: var(--body-bg);
    position: relative;
    z-index: 1;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .theme-modal-body[b-qjmoeq0uvi]::-webkit-scrollbar {
        display: none;
    }

    /* Elegant fade overlay for scroll indication */
    .theme-modal-body[b-qjmoeq0uvi]::before,
    .theme-modal-body[b-qjmoeq0uvi]::after {
        content: '';
        position: sticky;
        left: 0;
        right: 0;
        height: 24px;
        pointer-events: none;
        z-index: 10;
    }

    .theme-modal-body[b-qjmoeq0uvi]::before {
        top: 0;
        background: linear-gradient(to bottom, var(--body-bg) 0%, transparent 100%);
    }

    .theme-modal-body[b-qjmoeq0uvi]::after {
        bottom: 0;
        background: linear-gradient(to top, var(--body-bg) 0%, transparent 100%);
    }

/* ====== Theme Categories ====== */
.theme-categories[b-qjmoeq0uvi] {
    display: flex;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-6);
    padding-bottom: var(--spacing-5);
    border-bottom: 2px solid var(--border-divider);
    position: relative;
    flex-wrap: wrap;
}

    /* Animated underline */
    .theme-categories[b-qjmoeq0uvi]::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: var(--underline-left, 0);
        width: var(--underline-width, 0);
        height: 3px;
        background: var(--primary-gradient);
        transition: all var(--transition-normal) var(--animation-timing);
        border-radius: 3px;
    }

.theme-category-btn[b-qjmoeq0uvi] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-4);
    border: 2px solid var(--border-divider);
    border-radius: calc(var(--border-radius-pill) * var(--radius-factor));
    background: var(--content-bg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal) var(--animation-timing);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

    .theme-category-btn[b-qjmoeq0uvi]::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--primary-gradient);
        opacity: 0;
        transform: scale(0.8);
        transition: all var(--transition-normal) var(--animation-timing);
    }

    .theme-category-btn:hover[b-qjmoeq0uvi] {
        border-color: var(--primary);
        color: var(--primary);

        box-shadow: var(--shadow-sm);
    }

        .theme-category-btn:hover[b-qjmoeq0uvi]::before {
            opacity: 0.1;
            transform: scale(1);
        }
    .theme-category-btn.active:hover[b-qjmoeq0uvi] {
        color: white !important;
    }
    .theme-category-btn.active[b-qjmoeq0uvi] {
        background: var(--primary-gradient);
        color: white;
        border-color: transparent;
        box-shadow: var(--shadow-md), 0 4px 12px rgba(var(--primary-rgb), 0.25);
        transform: scale(1.05);
    }

        .theme-category-btn.active[b-qjmoeq0uvi]::before {
/*            opacity: 1;*/
        }

    .theme-category-btn i[b-qjmoeq0uvi] {
        font-size: var(--font-size-base);
        transition: transform var(--transition-fast);
        z-index: 1;
    }

    .theme-category-btn:hover i[b-qjmoeq0uvi] {
        transform: scale(1.2);
    }

/* ====== Category Info Bar ====== */
.category-info[b-qjmoeq0uvi] {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-5);
    background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-radius: calc(var(--border-radius-lg) * var(--radius-factor));
    margin-bottom: var(--spacing-5);
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    animation: slideDown-b-qjmoeq0uvi var(--animation-normal) var(--animation-timing);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    position: relative;
    overflow: hidden;
}

    .category-info[b-qjmoeq0uvi]::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
        animation: slide-b-qjmoeq0uvi 3s infinite;
    }

@keyframes slide-b-qjmoeq0uvi {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.category-info i[b-qjmoeq0uvi] {
    font-size: var(--font-size-lg);
    z-index: 1;
}

.category-info span[b-qjmoeq0uvi] {
    z-index: 1;
}

@keyframes slideDown-b-qjmoeq0uvi {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Theme Grid ====== */
.theme-grid[b-qjmoeq0uvi] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-5);
    animation: fadeInGrid-b-qjmoeq0uvi var(--animation-normal) var(--animation-timing);
}

@keyframes fadeInGrid-b-qjmoeq0uvi {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Theme Card ====== */
.theme-card[b-qjmoeq0uvi] {
    background: var(--content-bg);
    border: 2px solid var(--border-divider);
    border-radius: calc(var(--border-radius-lg) * var(--radius-factor));
    overflow: visible; /* Changed from hidden to prevent cutoff */
    cursor: pointer;
    transition: all var(--transition-normal) var(--animation-timing);
    position: relative;
    box-shadow: var(--card-shadow);
    isolation: isolate;
}

    /* Style-specific hover effects */
    .theme-card.style-playful[b-qjmoeq0uvi] {
        --radius-factor: 2.5;
    }

        .theme-card.style-playful:hover[b-qjmoeq0uvi] {
            transform: translateY(-8px) rotate(2deg) scale(1.02);
            box-shadow: var(--shadow-xl);
        }

    .theme-card.style-elegant[b-qjmoeq0uvi] {
        --radius-factor: 1.5;
    }

        .theme-card.style-elegant:hover[b-qjmoeq0uvi] {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

    .theme-card.style-minimal[b-qjmoeq0uvi] {
        --radius-factor: 0.5;
    }

        .theme-card.style-minimal:hover[b-qjmoeq0uvi] {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

    .theme-card.style-vibrant[b-qjmoeq0uvi] {
        --radius-factor: 2;
    }

        .theme-card.style-vibrant:hover[b-qjmoeq0uvi] {
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.3);
        }

    .theme-card.style-professional[b-qjmoeq0uvi] {
        --radius-factor: 0.75;
    }

        .theme-card.style-professional:hover[b-qjmoeq0uvi] {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }

    .theme-card.style-modern[b-qjmoeq0uvi] {
        --radius-factor: 1.25;
    }

        .theme-card.style-modern:hover[b-qjmoeq0uvi] {
            transform: translateY(-5px) scale(1.01);
            box-shadow: var(--shadow-lg);
        }

    /* Active theme card */
    .theme-card.active[b-qjmoeq0uvi] {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-lg);
        transform: scale(1.02);
    }

        .theme-card.active[b-qjmoeq0uvi]::before {
            content: '';
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            background: var(--success-gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            animation: popIn-b-qjmoeq0uvi var(--animation-fast) var(--animation-timing);
        }

        .theme-card.active[b-qjmoeq0uvi]::after {
            content: '\f00c';
            font-family: 'Font Awesome 5 Pro';
            font-weight: 300;
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
            z-index: 11;
            animation: checkIn-b-qjmoeq0uvi var(--animation-normal) var(--animation-timing);
        }

@keyframes popIn-b-qjmoeq0uvi {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkIn-b-qjmoeq0uvi {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* ====== Theme Preview ====== */
.theme-preview[b-qjmoeq0uvi] {
    height: 160px;
    padding: var(--spacing-3);
    background: var(--preview-bg);
    position: relative;
    overflow: hidden; /* Keep hidden for preview section */
    transition: all var(--transition-fast);
    /* Smart border radius for top only */
    border-radius: calc(var(--border-radius-lg) * var(--radius-factor) - 1px) calc(var(--border-radius-lg) * var(--radius-factor) - 1px) 0 0;
}

    /* Add subtle pattern overlay */
    .theme-preview[b-qjmoeq0uvi]::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.05) 10px, rgba(255,255,255,.05) 20px), repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0,0,0,.02) 10px, rgba(0,0,0,.02) 20px);
        pointer-events: none;
    }

.theme-preview-header[b-qjmoeq0uvi] {
    height: 24px;
    display: flex;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-2);
    position: relative;
    z-index: 1;
}

.theme-preview-nav[b-qjmoeq0uvi] {
    width: 40px;
    height: 100%;
    background: var(--preview-secondary);
    border-radius: calc(var(--border-radius-sm) * var(--radius-factor));
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.theme-preview-brand[b-qjmoeq0uvi] {
    flex: 1;
    height: 100%;
    background: var(--preview-primary);
    border-radius: calc(var(--border-radius-sm) * var(--radius-factor));
    position: relative;
    overflow: hidden;
}

    .theme-preview-brand[b-qjmoeq0uvi]::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
        animation: none;
    }

.theme-card:hover .theme-preview-brand[b-qjmoeq0uvi]::after {
    animation: slide-b-qjmoeq0uvi 1.5s ease-in-out;
}

.theme-preview-body[b-qjmoeq0uvi] {
    display: flex;
    gap: var(--spacing-2);
    height: calc(100% - 32px);
    position: relative;
    z-index: 1;
}

.theme-preview-sidebar[b-qjmoeq0uvi] {
    width: 60px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: calc(var(--border-radius-sm) * var(--radius-factor));
    transition: all var(--transition-fast);
}

.theme-card.dark .theme-preview-sidebar[b-qjmoeq0uvi] {
    background: rgba(255, 255, 255, 0.05);
}

.theme-preview-content[b-qjmoeq0uvi] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.theme-preview-card[b-qjmoeq0uvi] {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border-radius: calc(var(--border-radius-sm) * var(--radius-factor));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.theme-card.dark .theme-preview-card[b-qjmoeq0uvi] {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hover effects for preview elements */
.theme-card:hover .theme-preview-nav[b-qjmoeq0uvi] {
    transform: translateX(-2px);
}

.theme-card:hover .theme-preview-sidebar[b-qjmoeq0uvi] {
    transform: translateX(2px);
}

.theme-card:hover .theme-preview-card:first-child[b-qjmoeq0uvi] {
    transform: translateY(-2px);
}

.theme-card:hover .theme-preview-card:last-child[b-qjmoeq0uvi] {
    transform: translateY(2px);
}

/* ====== Theme Info ====== */
.theme-info[b-qjmoeq0uvi] {
    padding: var(--spacing-4);
    background: var(--content-bg);
    border-top: 1px solid var(--border-divider);
    position: relative;
    /* Smart border radius for bottom only */
    border-radius: 0 0 calc(var(--border-radius-lg) * var(--radius-factor) - 1px) calc(var(--border-radius-lg) * var(--radius-factor) - 1px);
    /* Dynamic padding based on radius to prevent content cutoff */
    padding-left: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-lg) * var(--radius-factor) - 16px) * 0.4)));
    padding-right: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-lg) * var(--radius-factor) - 16px) * 0.4)));
}

.theme-name[b-qjmoeq0uvi] {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-1);
}

    .theme-name i[b-qjmoeq0uvi] {
        color: var(--primary);
        font-size: var(--font-size-lg);
    }

.theme-description[b-qjmoeq0uvi] {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin: var(--spacing-1) 0 var(--spacing-3) 0;
    line-height: 1.5;
}

/* ====== Theme Badges ====== */
.theme-badges[b-qjmoeq0uvi] {
    display: flex;
    gap: var(--spacing-1);
    flex-wrap: wrap;
}

.theme-badge[b-qjmoeq0uvi] {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);
    padding: 4px var(--spacing-2);
    border-radius: calc(var(--border-radius-pill) * var(--radius-factor));
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

    .theme-badge i[b-qjmoeq0uvi] {
        font-size: 10px;
    }

.theme-badge-active[b-qjmoeq0uvi] {
    background: var(--success-light);
    color: var(--success);
    border-color: var(--success-border-light);
    animation: pulseSuccess-b-qjmoeq0uvi 2s infinite;
}

@keyframes pulseSuccess-b-qjmoeq0uvi {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--success-rgb), 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(var(--success-rgb), 0);
    }
}

.theme-badge-light[b-qjmoeq0uvi] {
    background: var(--warning-light);
    color: var(--warning);
    border-color: rgba(var(--warning-rgb), 0.2);
}

.theme-badge-dark[b-qjmoeq0uvi] {
    background: var(--info-light);
    color: var(--info);
    border-color: rgba(var(--info-rgb), 0.2);
}

.theme-badge-style[b-qjmoeq0uvi] {
    background: var(--primary-lighter);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* ====== Modal Footer - FIXED FOR EXTREME BORDER RADIUS ====== */
.theme-modal-footer[b-qjmoeq0uvi] {
    padding: var(--spacing-4) var(--spacing-6);
    border-top: 1px solid var(--border-divider);
    background: linear-gradient(135deg, var(--subtle-bg) 100%, rgba(var(--secondary-rgb), 0.02) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-4);
    position: relative;
    z-index: 1;
    /* Smart border radius for bottom corners only */
    border-radius: 0 0 calc(var(--border-radius-xl) * var(--radius-factor) - 1px) calc(var(--border-radius-xl) * var(--radius-factor) - 1px);
    /* Dynamic padding to prevent content cutoff in extreme radius themes */
    padding-left: calc(var(--spacing-6) + max(0px, calc((var(--border-radius-xl) * var(--radius-factor) - 20px) * 0.4)));
    padding-right: calc(var(--spacing-6) + max(0px, calc((var(--border-radius-xl) * var(--radius-factor) - 20px) * 0.4)));
}

/* ====== Footer Content Protection ====== */
.theme-footer-info[b-qjmoeq0uvi] {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    position: relative;
    z-index: 2;
}

.theme-footer-actions[b-qjmoeq0uvi] {
    display: flex;
    gap: var(--spacing-2);
    position: relative;
    z-index: 2;
}

/* ====== Keyboard Shortcuts ====== */
.theme-shortcuts[b-qjmoeq0uvi] {
    display: flex;
    gap: var(--spacing-4);
    align-items: center;
    flex-wrap: wrap;
}

.shortcut-item[b-qjmoeq0uvi] {
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

kbd[b-qjmoeq0uvi] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 var(--spacing-2);
    background: var(--content-bg);
    border: 1px solid var(--border-divider);
    border-bottom: 2px solid var(--border-color);
    border-radius: calc(var(--border-radius-sm) * var(--radius-factor));
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
    position: relative;
    top: -1px;
}

/* ====== Theme Buttons ====== */
.theme-btn[b-qjmoeq0uvi] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-5);
    border: 2px solid transparent;
    border-radius: calc(var(--border-radius-md) * var(--radius-factor));
    font-size: var(--font-size-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal) var(--animation-timing);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

    .theme-btn[b-qjmoeq0uvi]::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
        opacity: 0;
        transition: opacity var(--transition-fast);
    }

    .theme-btn:hover:not(:disabled)[b-qjmoeq0uvi] {
        transform: var(--hover-lift);
        box-shadow: var(--shadow-md);
    }

        .theme-btn:hover:not(:disabled)[b-qjmoeq0uvi]::before {
            opacity: 1;
        }

    .theme-btn:active:not(:disabled)[b-qjmoeq0uvi] {
        transform: scale(0.98);
    }

.theme-btn-primary[b-qjmoeq0uvi] {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
}

    .theme-btn-primary:hover:not(:disabled)[b-qjmoeq0uvi] {
        box-shadow: var(--shadow-lg), 0 4px 16px rgba(var(--primary-rgb), 0.25);
    }

.theme-btn-secondary[b-qjmoeq0uvi] {
    background: var(--subtle-bg);
    color: var(--text-primary);
    border-color: var(--border-divider);
}

    .theme-btn-secondary:hover:not(:disabled)[b-qjmoeq0uvi] {
        background: var(--content-bg);
        border-color: var(--primary);
        color: var(--primary);
    }

/* ====== Custom Scrollbar for Modal ====== */
.theme-modal-body[b-qjmoeq0uvi] {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) var(--subtle-bg);
}

    .theme-modal-body[b-qjmoeq0uvi]::-webkit-scrollbar {
        width: 10px;
    }

    .theme-modal-body[b-qjmoeq0uvi]::-webkit-scrollbar-track {
        background: var(--subtle-bg);
        border-radius: calc(5px * var(--radius-factor));
    }

    .theme-modal-body[b-qjmoeq0uvi]::-webkit-scrollbar-thumb {
        background: var(--scroll-thumb);
        border-radius: calc(5px * var(--radius-factor));
        border: 2px solid var(--subtle-bg);
    }

        .theme-modal-body[b-qjmoeq0uvi]::-webkit-scrollbar-thumb:hover {
            background: var(--scroll-thumb-hover);
        }

/* ====== Responsive Design ====== */
@media (max-width: 1200px) {
    .theme-grid[b-qjmoeq0uvi] {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .theme-chooser-button[b-qjmoeq0uvi] {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }


        .theme-chooser-button i[b-qjmoeq0uvi] {
            font-size: 1.5rem;
        }

    .theme-modal-overlay[b-qjmoeq0uvi] {
        padding: var(--spacing-2);
    }

    .theme-modal-content[b-qjmoeq0uvi] {
        max-height: 90vh;
    }

    .theme-modal-header[b-qjmoeq0uvi] {
        padding: var(--spacing-4);
        /* Reduce dynamic padding on mobile */
        padding-left: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-xl) * var(--radius-factor) - 20px) * 0.2)));
        padding-right: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-xl) * var(--radius-factor) - 20px) * 0.2)));
    }

    .theme-modal-icon[b-qjmoeq0uvi] {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .theme-modal-title[b-qjmoeq0uvi] {
        font-size: var(--font-size-xl);
    }

    .theme-modal-body[b-qjmoeq0uvi] {
        padding: var(--spacing-4);
    }

    .theme-categories[b-qjmoeq0uvi] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--spacing-3);
        flex-wrap: nowrap;
        display: grid;
    }

    .theme-grid[b-qjmoeq0uvi] {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--spacing-4);
    }

    .theme-modal-footer[b-qjmoeq0uvi] {
        padding: var(--spacing-3) var(--spacing-4);
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-3);
        /* Reduce dynamic padding on mobile */
        padding-left: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-xl) * var(--radius-factor) - 20px) * 0.2)));
        padding-right: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-xl) * var(--radius-factor) - 20px) * 0.2)));
    }

    .theme-footer-info[b-qjmoeq0uvi] {
        width: 100%;
    }

    .theme-shortcuts[b-qjmoeq0uvi] {
        justify-content: center;
    }

    .theme-footer-actions[b-qjmoeq0uvi] {
        justify-content: center;
        width: 100%;
    }

    .theme-btn[b-qjmoeq0uvi] {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .theme-chooser-button[b-qjmoeq0uvi] {
        width: 44px;
        height: 44px;
        bottom: 12px;
        right: 12px;
    }

        .theme-chooser-button i[b-qjmoeq0uvi] {
            font-size: 1.25rem;
        }

    .theme-modal-overlay[b-qjmoeq0uvi] {
        padding: 0;
    }

    .theme-modal-content[b-qjmoeq0uvi] {
        border-radius: 0;
        max-height: 100vh;
        max-width: 100%;
    }

    .theme-modal-header[b-qjmoeq0uvi] {
        padding: var(--spacing-3);
        border-radius: 0;
        padding-left: var(--spacing-3);
        padding-right: var(--spacing-3);
    }

    .theme-header-main[b-qjmoeq0uvi] {
        gap: var(--spacing-3);
    }

    .theme-modal-icon[b-qjmoeq0uvi] {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .theme-modal-title[b-qjmoeq0uvi] {
        font-size: var(--font-size-lg);
    }

    .theme-modal-subtitle[b-qjmoeq0uvi] {
        font-size: var(--font-size-xs);
    }

    .theme-modal-close[b-qjmoeq0uvi] {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .theme-modal-body[b-qjmoeq0uvi] {
        padding: var(--spacing-3);
    }

    .theme-categories[b-qjmoeq0uvi] {
        gap: var(--spacing-1);
        margin-bottom: var(--spacing-4);
    }

    .theme-category-btn[b-qjmoeq0uvi] {
        padding: var(--spacing-2) var(--spacing-3);
        font-size: var(--font-size-xs);
    }

    .theme-grid[b-qjmoeq0uvi] {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
    }

    .theme-preview[b-qjmoeq0uvi] {
        height: 120px;
    }

    .theme-description[b-qjmoeq0uvi] {
        display: none;
    }

    .theme-modal-footer[b-qjmoeq0uvi] {
        border-radius: 0;
        padding: var(--spacing-3);
        padding-left: var(--spacing-3);
        padding-right: var(--spacing-3);
    }

    .theme-shortcuts[b-qjmoeq0uvi] {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }
}

/* ====== Print Styles ====== */
@media print {
    .theme-component-wrapper[b-qjmoeq0uvi] {
        display: none !important;
    }
}

/* ====== Accessibility ====== */
@media (prefers-reduced-motion: reduce) {
    *[b-qjmoeq0uvi] {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====== High Contrast Mode ====== */
@media (prefers-contrast: high) {
    .theme-card[b-qjmoeq0uvi],
    .theme-category-btn[b-qjmoeq0uvi],
    .theme-btn[b-qjmoeq0uvi],
    .theme-modal-close[b-qjmoeq0uvi] {
        border-width: 3px;
    }

    .theme-badge[b-qjmoeq0uvi] {
        border-width: 2px;
    }
}

/* ====== Dark Mode Specific Enhancements ====== */
@media (prefers-color-scheme: dark) {
    .theme-modal-content[b-qjmoeq0uvi] {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .theme-card[b-qjmoeq0uvi] {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

        .theme-card:hover[b-qjmoeq0uvi] {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        }

    .theme-chooser-button[b-qjmoeq0uvi] {
        box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    }
}

/* ====== Loading State for Theme Changes ====== */
.theme-loading[b-qjmoeq0uvi] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--body-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

    .theme-loading.active[b-qjmoeq0uvi] {
        opacity: 1;
        pointer-events: all;
    }

.theme-loading-spinner[b-qjmoeq0uvi] {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-divider);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ================================================================= */
/* GLOBAL Card Border Radius Fix - Prevents Header/Footer Content Cutoff */
/* ================================================================= */

/* ====== Root Variables for Dynamic Padding ====== */
:root[b-qjmoeq0uvi] {
    --card-header-footer-padding-h: var(--spacing-5);
    --card-header-footer-padding-extra: 0px;
}

/* Dynamic padding adjustments based on corner style */
[data-corner-style="standard"][b-qjmoeq0uvi] {
    --card-header-footer-padding-extra: 0px;
}

[data-corner-style="rounded"][b-qjmoeq0uvi] {
    --card-header-footer-padding-extra: max(0px, calc((var(--border-radius-lg) - 16px) * 0.3));
}

[data-corner-style="smooth"][b-qjmoeq0uvi] {
    --card-header-footer-padding-extra: max(0px, calc((var(--border-radius-lg) - 16px) * 0.5));
}

[data-corner-style="pill"][b-qjmoeq0uvi] {
    --card-header-footer-padding-extra: max(0px, calc((var(--border-radius-lg) - 16px) * 0.7));
}

/* ====== Base Card Structure Fix ====== */
.card[b-qjmoeq0uvi] {
    background-color: var(--content-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-divider);
    overflow: visible; /* Changed from hidden to visible */
    transition: var(--card-transition);
    box-shadow: var(--card-shadow);
    position: relative;
    isolation: isolate;
}

    /* Create visual border radius without clipping */
    .card[b-qjmoeq0uvi]::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        z-index: 1;
        box-shadow: inset 0 0 0 1px var(--border-divider), 0 0 0 1px var(--content-bg);
    }

    .card:hover[b-qjmoeq0uvi] {
        box-shadow: var(--card-shadow-hover);
        transform: var(--hover-lift);
    }

/* ====== Card Header with Smart Border Radius ====== */
.card-header[b-qjmoeq0uvi] {
    padding: var(--spacing-5);
    border-bottom: 1px solid var(--border-divider);
    background-color: var(--subtle-bg);
    position: relative;
    border-radius: calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px) 0 0;
    overflow: visible;
    isolation: isolate;
    /* Apply dynamic padding */
    padding-left: calc(var(--card-header-footer-padding-h) + var(--card-header-footer-padding-extra));
    padding-right: calc(var(--card-header-footer-padding-h) + var(--card-header-footer-padding-extra));
}

/* ====== Card Body ====== */
.card-body[b-qjmoeq0uvi] {
    padding: var(--spacing-5);
    position: relative;
    background-color: var(--content-bg);
    z-index: 1;
}

/* ====== Card Footer with Smart Border Radius ====== */
.card-footer[b-qjmoeq0uvi] {
    padding: var(--spacing-5);
    border-top: 1px solid var(--border-divider);
    background-color: var(--subtle-bg);
    position: relative;
    border-radius: 0 0 calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px);
    overflow: visible;
    isolation: isolate;
    /* Apply dynamic padding */
    padding-left: calc(var(--card-header-footer-padding-h) + var(--card-header-footer-padding-extra));
    padding-right: calc(var(--card-header-footer-padding-h) + var(--card-header-footer-padding-extra));
}

/* ====== Panel Layouts Fix ====== */
.roovia-panel[b-qjmoeq0uvi] {
    background-color: var(--content-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: visible;
    transition: var(--card-transition);
    margin-bottom: var(--spacing-5);
    border: 1px solid var(--border-divider);
    position: relative;
    isolation: isolate;
}

.roovia-panel-header[b-qjmoeq0uvi] {
    padding: var(--spacing-4);
    border-bottom: 1px solid var(--border-divider);
    background-color: var(--subtle-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px) 0 0;
    overflow: visible;
    padding-left: calc(var(--spacing-4) + var(--card-header-footer-padding-extra));
    padding-right: calc(var(--spacing-4) + var(--card-header-footer-padding-extra));
}

.roovia-panel-footer[b-qjmoeq0uvi] {
    padding: var(--spacing-4);
    border-top: 1px solid var(--border-divider);
    background-color: var(--subtle-bg);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-3);
    border-radius: 0 0 calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px);
    overflow: visible;
    padding-left: calc(var(--spacing-4) + var(--card-header-footer-padding-extra));
    padding-right: calc(var(--spacing-4) + var(--card-header-footer-padding-extra));
}

/* ====== Modal Content Fix ====== */
.modal-content[b-qjmoeq0uvi] {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--modal-bg);
    background-clip: padding-box;
    border: 1px solid var(--border-divider);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    outline: 0;
    overflow: visible;
    isolation: isolate;
}

.modal-header[b-qjmoeq0uvi] {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-4);
    border-bottom: 1px solid var(--border-divider);
    border-radius: calc(var(--border-radius-xl) - 1px) calc(var(--border-radius-xl) - 1px) 0 0;
    overflow: visible;
    padding-left: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-xl) - 20px) * 0.5)));
    padding-right: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-xl) - 20px) * 0.5)));
}

.modal-footer[b-qjmoeq0uvi] {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: var(--spacing-3) var(--spacing-4);
    border-top: 1px solid var(--border-divider);
    border-radius: 0 0 calc(var(--border-radius-xl) - 1px) calc(var(--border-radius-xl) - 1px);
    gap: var(--spacing-2);
    overflow: visible;
    padding-left: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-xl) - 20px) * 0.5)));
    padding-right: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-xl) - 20px) * 0.5)));
}

/* ====== Manage Cards Fix ====== */
.manage-card[b-qjmoeq0uvi] {
    background: var(--content-bg);
    border: 1px solid var(--border-divider);
    border-radius: calc(16px * var(--radius-factor));
    overflow: visible;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    position: relative;
    transition: all var(--transition-slow) var(--animation-timing);
    isolation: isolate;
}

.manage-card-header[b-qjmoeq0uvi] {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-divider);
    background: linear-gradient(135deg, var(--subtle-bg) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    position: relative;
    border-radius: calc(16px * var(--radius-factor) - 1px) calc(16px * var(--radius-factor) - 1px) 0 0;
    overflow: visible;
    padding-left: calc(1.5rem + max(0px, calc((16px * var(--radius-factor) - 16px) * 0.5)));
    padding-right: calc(1.5rem + max(0px, calc((16px * var(--radius-factor) - 16px) * 0.5)));
}

/* ====== Alert Boxes Fix ====== */
.alert[b-qjmoeq0uvi] {
    position: relative;
    padding: var(--spacing-3) var(--spacing-4);
    margin-bottom: var(--spacing-4);
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    overflow: visible;
    padding-left: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-md) - 12px) * 0.5)));
    padding-right: calc(var(--spacing-4) + max(0px, calc((var(--border-radius-md) - 12px) * 0.5)));
}

/* ====== Special handling for elements in headers/footers ====== */
.card-header .btn[b-qjmoeq0uvi],
.card-footer .btn[b-qjmoeq0uvi],
.modal-header .btn[b-qjmoeq0uvi],
.modal-footer .btn[b-qjmoeq0uvi],
.roovia-panel-header .btn[b-qjmoeq0uvi],
.roovia-panel-footer .btn[b-qjmoeq0uvi],
.manage-card-header .btn[b-qjmoeq0uvi],
.theme-modal-header .btn[b-qjmoeq0uvi],
.theme-modal-footer .btn[b-qjmoeq0uvi] {
    position: relative;
    z-index: 2;
}

.card-header .badge[b-qjmoeq0uvi],
.card-footer .badge[b-qjmoeq0uvi],
.roovia-panel-header .badge[b-qjmoeq0uvi],
.roovia-panel-footer .badge[b-qjmoeq0uvi],
.theme-modal-header .badge[b-qjmoeq0uvi],
.theme-modal-footer .badge[b-qjmoeq0uvi] {
    border-radius: min(var(--border-radius-pill), calc(var(--border-radius-lg) * 0.3));
    position: relative;
    z-index: 2;
}

/* ====== Clipped Cards (for images) ====== */
.card-clipped[b-qjmoeq0uvi] {
    overflow: hidden;
}

.card:has(.card-img-top)[b-qjmoeq0uvi] {
    overflow: hidden;
}

/* ====== Z-index Management ====== */
.card > *[b-qjmoeq0uvi],
.roovia-panel > *[b-qjmoeq0uvi],
.modal-content > *[b-qjmoeq0uvi],
.theme-modal-content > *[b-qjmoeq0uvi] {
    position: relative;
    z-index: 1;
}

.card button[b-qjmoeq0uvi],
.card a[b-qjmoeq0uvi],
.card input[b-qjmoeq0uvi],
.card select[b-qjmoeq0uvi],
.card textarea[b-qjmoeq0uvi],
.roovia-panel button[b-qjmoeq0uvi],
.roovia-panel a[b-qjmoeq0uvi],
.modal-content button[b-qjmoeq0uvi],
.modal-content a[b-qjmoeq0uvi],
.theme-modal-content button[b-qjmoeq0uvi],
.theme-modal-content a[b-qjmoeq0uvi] {
    position: relative;
    z-index: 2;
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 768px) {
    [data-corner-style="pill"][b-qjmoeq0uvi] {
        --card-header-footer-padding-extra: max(0px, calc((var(--border-radius-lg) - 16px) * 0.4));
    }

    [data-corner-style="rounded"][b-qjmoeq0uvi],
    [data-corner-style="smooth"][b-qjmoeq0uvi] {
        --card-header-footer-padding-extra: max(0px, calc((var(--border-radius-lg) - 16px) * 0.2));
    }
}

@media (max-width: 576px) {
    [data-corner-style="pill"][b-qjmoeq0uvi],
    [data-corner-style="rounded"][b-qjmoeq0uvi],
    [data-corner-style="smooth"][b-qjmoeq0uvi] {
        --card-header-footer-padding-extra: max(0px, calc((var(--border-radius-lg) - 16px) * 0.2));
    }
}

/* ====== Fallback for browsers without max() support ====== */
@supports not (padding: max(1px, 2px)) {
    .card-header[b-qjmoeq0uvi],
    .card-footer[b-qjmoeq0uvi],
    .modal-header[b-qjmoeq0uvi],
    .modal-footer[b-qjmoeq0uvi],
    .roovia-panel-header[b-qjmoeq0uvi],
    .roovia-panel-footer[b-qjmoeq0uvi],
    .theme-modal-header[b-qjmoeq0uvi],
    .theme-modal-footer[b-qjmoeq0uvi] {
        padding-left: calc(var(--spacing-5) + 1rem);
        padding-right: calc(var(--spacing-5) + 1rem);
    }

    [data-corner-style="pill"] .card-header[b-qjmoeq0uvi],
    [data-corner-style="pill"] .card-footer[b-qjmoeq0uvi],
    [data-corner-style="pill"] .theme-modal-header[b-qjmoeq0uvi],
    [data-corner-style="pill"] .theme-modal-footer[b-qjmoeq0uvi] {
        padding-left: calc(var(--spacing-5) + 1.5rem);
        padding-right: calc(var(--spacing-5) + 1.5rem);
    }
}
