@import '_content/AuralizeBlazor/AuralizeBlazor.bundle.scp.css';
@import '_content/Nextended.Blazor/Nextended.Blazor.bundle.scp.css';

/* /Components/Layout/LoadingSpinner.razor.rz.scp.css */
/* Used under CC0 license */

.lds-ellipsis[b-9iurqgkwxb] {
    color: #666;
    animation: fade-in-b-9iurqgkwxb 1s;
}

@keyframes fade-in-b-9iurqgkwxb {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

    .lds-ellipsis[b-9iurqgkwxb],
    .lds-ellipsis div[b-9iurqgkwxb] {
        box-sizing: border-box;
    }

.lds-ellipsis[b-9iurqgkwxb] {
    margin: auto;
    display: block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ellipsis div[b-9iurqgkwxb] {
        position: absolute;
        top: 33.33333px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: currentColor;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .lds-ellipsis div:nth-child(1)[b-9iurqgkwxb] {
            left: 8px;
            animation: lds-ellipsis1-b-9iurqgkwxb 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2)[b-9iurqgkwxb] {
            left: 8px;
            animation: lds-ellipsis2-b-9iurqgkwxb 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3)[b-9iurqgkwxb] {
            left: 32px;
            animation: lds-ellipsis2-b-9iurqgkwxb 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4)[b-9iurqgkwxb] {
            left: 56px;
            animation: lds-ellipsis3-b-9iurqgkwxb 0.6s infinite;
        }

@keyframes lds-ellipsis1-b-9iurqgkwxb {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3-b-9iurqgkwxb {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2-b-9iurqgkwxb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-9kpszl06up] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-9kpszl06up] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Modals/CardViewer/CardViewerDotIndicator.razor.rz.scp.css */
/* ========== Dot Indicators ========== */
.image-viewer-dots[b-oxfy5jq3h9] {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 105;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.image-viewer-dot[b-oxfy5jq3h9] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.image-viewer-dot.active[b-oxfy5jq3h9] {
    background-color: white;
    transform: scale(1.2);
}

.image-viewer-dot:hover:not(.active)[b-oxfy5jq3h9] {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Content dot indicator style */
.image-viewer-dot.content-dot[b-oxfy5jq3h9] {
    border-radius: 2px;
    width: 12px;
    height: 8px;
}

/* Light theme - Dot indicators */
:global(.light-theme) .image-viewer-dot[b-oxfy5jq3h9] {
    background-color: rgba(0, 0, 0, 0.25);
}

:global(.light-theme) .image-viewer-dot.active[b-oxfy5jq3h9] {
    background-color: #333333;
}

:global(.light-theme) .image-viewer-dot:hover:not(.active)[b-oxfy5jq3h9] {
    background-color: rgba(0, 0, 0, 0.4);
}
/* /Components/Modals/CardViewer/CardViewerModal.razor.rz.scp.css */
/* ========== Base Overlay ========== */
.image-viewer-overlay[b-j59npbjwda] {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
}

/* Light theme - overlay background */
:root[data-theme="light"] .image-viewer-overlay[b-j59npbjwda],
.light-theme .image-viewer-overlay[b-j59npbjwda] {
    background-color: rgba(245, 245, 245, 0.98);
}

/* ========== Header ========== */
[b-j59npbjwda] .image-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

[b-j59npbjwda] .image-viewer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

[b-j59npbjwda] .image-viewer-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

[b-j59npbjwda] .image-viewer-counter {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Light theme - Header */
:root[data-theme="light"][b-j59npbjwda]  .image-viewer-header,
.light-theme[b-j59npbjwda]  .image-viewer-header {
    background: linear-gradient(to bottom, rgba(245, 245, 245, 0.9), transparent);
}

:root[data-theme="light"][b-j59npbjwda]  .image-viewer-close,
.light-theme[b-j59npbjwda]  .image-viewer-close {
    background-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"][b-j59npbjwda]  .image-viewer-close:hover,
.light-theme[b-j59npbjwda]  .image-viewer-close:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"][b-j59npbjwda]  .image-viewer-close svg,
.light-theme[b-j59npbjwda]  .image-viewer-close svg {
    stroke: #333333;
}

:root[data-theme="light"][b-j59npbjwda]  .image-viewer-counter,
.light-theme[b-j59npbjwda]  .image-viewer-counter {
    color: #333333;
}

/* ========== Content Area ========== */
.image-viewer-content[b-j59npbjwda] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    opacity: 1;
    transition: flex 0.3s ease-in-out, height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

[b-j59npbjwda] .image-viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    will-change: transform;
    position: relative;
    z-index: 1;
}

/* ========== Carousel ========== */
[b-j59npbjwda] .image-viewer-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    z-index: 1;
}

[b-j59npbjwda] .image-viewer-carousel.no-transition {
    transition: none;
}

[b-j59npbjwda] .image-viewer-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

[b-j59npbjwda] .image-viewer-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* ========== Navigation Buttons ========== */
[b-j59npbjwda] .image-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 105;
    transition: background-color 0.2s, opacity 0.2s;
    user-select: none;
}

[b-j59npbjwda] .image-viewer-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

[b-j59npbjwda] .image-viewer-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

[b-j59npbjwda] .image-viewer-nav-prev {
    left: 16px;
}

[b-j59npbjwda] .image-viewer-nav-next {
    right: 80px; /* Moved left to avoid overlap with sidebar (sidebar is at right: 16px) */
}

/* Light theme - Navigation buttons */
:root[data-theme="light"][b-j59npbjwda]  .image-viewer-nav,
.light-theme[b-j59npbjwda]  .image-viewer-nav {
    background-color: rgba(0, 0, 0, 0.15);
}

:root[data-theme="light"][b-j59npbjwda]  .image-viewer-nav:hover,
.light-theme[b-j59npbjwda]  .image-viewer-nav:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

:root[data-theme="light"][b-j59npbjwda]  .image-viewer-nav svg,
.light-theme[b-j59npbjwda]  .image-viewer-nav svg {
    stroke: #333333;
}

/* ========== Dot Indicators Container ========== */
[b-j59npbjwda] .image-viewer-dots-container {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 105;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

[b-j59npbjwda] .image-viewer-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

[b-j59npbjwda] .image-viewer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

[b-j59npbjwda] .image-viewer-dot.active {
    background-color: white;
    transform: scale(1.2);
}

[b-j59npbjwda] .image-viewer-dot:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Content dot indicator style */
[b-j59npbjwda] .image-viewer-dot.content-dot {
    border-radius: 2px;
    width: 12px;
    height: 8px;
}

/* Slide type icons */
[b-j59npbjwda] .slide-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    color: rgba(255, 255, 255, 0.6);
}

[b-j59npbjwda] .slide-type-icon:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

[b-j59npbjwda] .slide-type-icon.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
    transform: scale(1.05);
}

[b-j59npbjwda] .slide-type-icon svg {
    width: 16px;
    height: 16px;
}

/* Light theme - Dot indicators */
:root[data-theme="light"][b-j59npbjwda]  .image-viewer-dot,
.light-theme[b-j59npbjwda]  .image-viewer-dot {
    background-color: rgba(0, 0, 0, 0.25);
}

:root[data-theme="light"][b-j59npbjwda]  .image-viewer-dot.active,
.light-theme[b-j59npbjwda]  .image-viewer-dot.active {
    background-color: #333333;
}

:root[data-theme="light"][b-j59npbjwda]  .image-viewer-dot:hover:not(.active),
.light-theme[b-j59npbjwda]  .image-viewer-dot:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Light theme - Slide type icons */
:root[data-theme="light"][b-j59npbjwda]  .slide-type-icon,
.light-theme[b-j59npbjwda]  .slide-type-icon {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"][b-j59npbjwda]  .slide-type-icon:hover,
.light-theme[b-j59npbjwda]  .slide-type-icon:hover {
    background-color: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"][b-j59npbjwda]  .slide-type-icon.active,
.light-theme[b-j59npbjwda]  .slide-type-icon.active {
    background-color: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.5);
    color: #333333;
}

/* ========== Rotation Buttons ========== */
[b-j59npbjwda] .image-viewer-rotation-buttons {
    display: flex;
    gap: 8px;
}

[b-j59npbjwda] .image-viewer-rotate {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

[b-j59npbjwda] .image-viewer-rotate:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

[b-j59npbjwda] .image-viewer-rotate-left svg {
    transform: scaleX(-1);
}

/* ========== Crop Button ========== */
[b-j59npbjwda] .image-viewer-crop {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

[b-j59npbjwda] .image-viewer-crop:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

[b-j59npbjwda] .image-viewer-crop:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Light theme - Rotation and Crop buttons */
:root[data-theme="light"][b-j59npbjwda]  .image-viewer-rotate,
.light-theme[b-j59npbjwda]  .image-viewer-rotate,
:root[data-theme="light"][b-j59npbjwda]  .image-viewer-crop,
.light-theme[b-j59npbjwda]  .image-viewer-crop {
    background-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"][b-j59npbjwda]  .image-viewer-rotate:hover,
.light-theme[b-j59npbjwda]  .image-viewer-rotate:hover,
:root[data-theme="light"][b-j59npbjwda]  .image-viewer-crop:hover,
.light-theme[b-j59npbjwda]  .image-viewer-crop:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"][b-j59npbjwda]  .image-viewer-rotate svg,
.light-theme[b-j59npbjwda]  .image-viewer-rotate svg,
:root[data-theme="light"][b-j59npbjwda]  .image-viewer-crop svg,
.light-theme[b-j59npbjwda]  .image-viewer-crop svg {
    fill: #333333;
}

/* ========== Processing Overlay ========== */
.image-viewer-processing-overlay[b-j59npbjwda] {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 25vh;
    gap: 16px;
}

.image-viewer-processing-text[b-j59npbjwda] {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* ========== Sidebar (YouTube Shorts / Reddit style) ========== */
[b-j59npbjwda] .image-viewer-sidebar {
    position: absolute;
    right: 16px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 120;
    pointer-events: auto;
}

[b-j59npbjwda] .image-viewer-sidebar.hidden {
    display: none;
}

[b-j59npbjwda] .sidebar-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.2s;
}

/* Light theme override for sidebar button */
:root[data-theme="light"][b-j59npbjwda]  .sidebar-button,
.light-theme[b-j59npbjwda]  .sidebar-button {
    color: #1a1a1a;
}

[b-j59npbjwda] .sidebar-button:hover {
    opacity: 0.8;
}

[b-j59npbjwda] .sidebar-button:active {
    opacity: 0.6;
}

[b-j59npbjwda] .sidebar-button svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Light theme override for sidebar button svg */
:root[data-theme="light"][b-j59npbjwda]  .sidebar-button svg,
.light-theme[b-j59npbjwda]  .sidebar-button svg {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    stroke: #1a1a1a;
    stroke-width: 2.5;
}

[b-j59npbjwda] .sidebar-button-label {
    font-size: 11px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Light theme override for sidebar button label */
:root[data-theme="light"][b-j59npbjwda]  .sidebar-button-label,
.light-theme[b-j59npbjwda]  .sidebar-button-label {
    color: #1a1a1a;
    font-weight: 600;
    text-shadow: none;
}

/* ========== Chat Mode Styles ========== */
.image-viewer-overlay.chat-mode[b-j59npbjwda]  .image-viewer-header,
.image-viewer-overlay.chat-mode[b-j59npbjwda]  .image-viewer-dots-container,
.image-viewer-overlay.chat-mode .image-viewer-content[b-j59npbjwda] {
    transition: none;
}

/* List view: 30% image area */
.image-viewer-overlay.chat-mode.chat-list-view[b-j59npbjwda]  .image-viewer-header {
    opacity: 0;
    pointer-events: none;
}

.image-viewer-overlay.chat-mode.chat-list-view .image-viewer-content[b-j59npbjwda] {
    flex: 0 0 30%;
    height: 30%;
}

.image-viewer-overlay.chat-mode.chat-list-view[b-j59npbjwda]  .image-viewer-dots-container {
    opacity: 0;
    pointer-events: none;
}

/* Hide ContentSlide header section in chat list view */
.image-viewer-overlay.chat-mode.chat-list-view[b-j59npbjwda]  .content-slide-header-section {
    display: none;
}

/* Adjust ContentSlide padding in chat list view */
.image-viewer-overlay.chat-mode.chat-list-view[b-j59npbjwda]  .image-viewer-slide.content-slide {
    padding-top: 8px;
}

/* Adjust content-slide-layout gap in chat list view */
.image-viewer-overlay.chat-mode.chat-list-view[b-j59npbjwda]  .content-slide-layout {
    gap: 0;
    padding: 4px;
}

/* Detail view: fullscreen chat */
.image-viewer-overlay.chat-mode.chat-detail-view[b-j59npbjwda]  .image-viewer-header,
.image-viewer-overlay.chat-mode.chat-detail-view[b-j59npbjwda]  .image-viewer-dots-container,
.image-viewer-overlay.chat-mode.chat-detail-view .image-viewer-content[b-j59npbjwda] {
    opacity: 0;
    pointer-events: none;
}

.image-viewer-overlay.chat-mode.chat-detail-view .image-viewer-content[b-j59npbjwda] {
    flex: 0 0 0%;
    height: 0%;
}

/* Hide ContentSlide header section in chat detail view */
.image-viewer-overlay.chat-mode.chat-detail-view[b-j59npbjwda]  .content-slide-header-section {
    display: none;
}

.image-viewer-content.normal-mode[b-j59npbjwda] {
    flex: 1;
    height: 100%;
}

/* ========== Chat Panel ========== */
[b-j59npbjwda] .chat-panel {
    display: flex;
    flex-direction: column;
    background-color: var(--background, #1a1a2e);
    overflow: hidden;
}

[b-j59npbjwda] .chat-panel.list-view {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

[b-j59npbjwda] .chat-panel.list-view.active {
    opacity: 1;
    transform: none; /* Use 'none' instead of 'translateY(0)' to allow fixed positioning in children */
}

[b-j59npbjwda] .chat-panel.detail-view {
    position: fixed;
    inset: 0;
    z-index: 200;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

[b-j59npbjwda] .chat-panel.detail-view.active {
    opacity: 1;
    transform: none; /* Use 'none' instead of 'translateX(0)' to allow fixed positioning in children */
}

/* ========== Chat Panel Header ========== */
[b-j59npbjwda] .chat-panel-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border2, rgba(255, 255, 255, 0.1));
    background-color: var(--background2, #16213e);
}

[b-j59npbjwda] .chat-panel-back {
    padding: 8px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text, white);
    cursor: pointer;
    transition: background-color 0.2s;
}

[b-j59npbjwda] .chat-panel-back:hover {
    background-color: var(--highlight, rgba(255, 255, 255, 0.1));
}

[b-j59npbjwda] .chat-panel-back svg {
    width: 20px;
    height: 20px;
}

[b-j59npbjwda] .chat-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

[b-j59npbjwda] .chat-panel-title-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text, white);
}

[b-j59npbjwda] .chat-panel-title-sub {
    font-size: 12px;
    color: var(--textLight, rgba(255, 255, 255, 0.6));
}

[b-j59npbjwda] .chat-panel-count {
    color: var(--textLight, rgba(255, 255, 255, 0.7));
    font-size: 14px;
    font-weight: 400;
}

[b-j59npbjwda] .chat-panel-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text, white);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

[b-j59npbjwda] .chat-panel-close:hover {
    background-color: var(--highlight, rgba(255, 255, 255, 0.1));
}

[b-j59npbjwda] .chat-panel-close svg {
    width: 20px;
    height: 20px;
}

[b-j59npbjwda] .chat-panel-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

[b-j59npbjwda] .chat-panel-action {
    padding: 8px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--textLight, rgba(255, 255, 255, 0.6));
    cursor: pointer;
    transition: background-color 0.2s;
}

[b-j59npbjwda] .chat-panel-action:hover {
    background-color: var(--highlight, rgba(255, 255, 255, 0.1));
}

[b-j59npbjwda] .chat-panel-action svg {
    width: 16px;
    height: 16px;
}

[b-j59npbjwda] .chat-panel-action.danger {
    color: var(--red, #ef4444);
}

/* ========== Chat Panel Content ========== */
[b-j59npbjwda] .chat-panel-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[b-j59npbjwda] .session-list-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

[b-j59npbjwda] .session-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

[b-j59npbjwda] .session-detail-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ========== FAB Buttons ========== */
/* Session Scroll FAB - fixed bottom left, above input */
[b-j59npbjwda] .session-scroll-fab {
    position: fixed;
    left: 16px;
    bottom: 80px; /* Above the input area */
    z-index: 210;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--accent, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

[b-j59npbjwda] .session-scroll-fab:hover {
    background-color: #2563eb;
}

[b-j59npbjwda] .session-scroll-fab:active {
    transform: scale(0.95);
}

[b-j59npbjwda] .session-scroll-fab svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Go Back FAB - fixed bottom right, above input (matches mobile iPad layout) */
[b-j59npbjwda] .go-back-fab {
    position: fixed;
    right: 16px;
    bottom: 80px; /* Above the input area */
    z-index: 210;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

[b-j59npbjwda] .go-back-fab:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

[b-j59npbjwda] .go-back-fab:active {
    transform: scale(0.95);
}

[b-j59npbjwda] .go-back-fab svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* List View Go Back FAB - fixed bottom right */
[b-j59npbjwda] .list-view-go-back-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background-color 0.2s;
    z-index: 210;
}

[b-j59npbjwda] .list-view-go-back-fab:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

/* Bottom Fixed Area */
[b-j59npbjwda] .bottom-fixed-area {
    position: relative;
    flex-shrink: 0;
}

[b-j59npbjwda] .session-chat-input-container {
    padding: 0.5rem 1rem;
}

/* ========== Content Slide ========== */
[b-j59npbjwda] .image-viewer-slide.content-slide {
    background-color: var(--background, #1a1a2e);
    overflow-y: auto;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 72px;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Content Slide Layout - flexbox for separated sections */
[b-j59npbjwda] .content-slide-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 12px;
    /* Match image slide note-header margin: 0 8px - no top padding to align with image slide header */
    padding: 0 8px 8px 8px;
}

/* NoteHeader Section inside ContentSlide - card style */
[b-j59npbjwda] .content-slide-header-section {
    flex-shrink: 0;
}

/* Override note-header-container styles when inside content-slide */
[b-j59npbjwda] .content-slide-header-section .note-header-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    margin: 0 !important;
    width: 100% !important;
    background-color: var(--post, #1a1a1b);
    border: 1px solid var(--border, #3a3c48);
    border-radius: 8px;
    padding: 12px 16px;
}

/* Content Section inside ContentSlide - card style */
[b-j59npbjwda] .content-slide-content-section {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background-color: var(--post, #1a1a1b);
    border: 1px solid var(--border, #3a3c48);
    border-radius: 8px;
}

/* Override CardContentFull styles inside content-slide */
[b-j59npbjwda] .content-slide-content-section .card-content-full {
    height: 100%;
    background-color: transparent;
}

[b-j59npbjwda] .content-slide-content-section .card-content-full-inner {
    padding: 16px;
    padding-top: 16px;
}

/* ========== Note Edit Mode Overlay ========== */
[b-j59npbjwda] .note-edit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 200;
    background-color: var(--background, #f1f5f9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

[b-j59npbjwda] .note-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    flex-shrink: 0;
}

[b-j59npbjwda] .note-edit-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text, #171717);
}

[b-j59npbjwda] .note-edit-done {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--link, #1d4ed8);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

[b-j59npbjwda] .note-edit-done:active {
    opacity: 0.6;
}

/* Check icon button (matches CardViewerSidebar Close button style) */
[b-j59npbjwda] .note-edit-check-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    color: white;
}

[b-j59npbjwda] .note-edit-check-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

[b-j59npbjwda] .note-edit-check-btn:active {
    opacity: 0.8;
    transform: scale(0.95);
}

[b-j59npbjwda] .note-edit-check-btn svg {
    width: 20px;
    height: 20px;
}

[b-j59npbjwda] .note-edit-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 8px 8px;
    min-height: 0;
    overflow: hidden;
}

[b-j59npbjwda] .note-edit-editor-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border2, #d1d5db);
    background-color: var(--background2, #ffffff);
}

/* Hide TinyEditor toolbar in note edit mode */
[b-j59npbjwda] .note-edit-editor-wrapper .ql-toolbar {
    display: none !important;
}

/* Hide images in note edit mode */
[b-j59npbjwda] .note-edit-editor-wrapper .ql-editor img {
    display: none !important;
}

[b-j59npbjwda] .note-edit-editor-wrapper .ql-container-parent {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

[b-j59npbjwda] .note-edit-editor-wrapper .ql-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: none !important;
}

[b-j59npbjwda] .note-edit-editor-wrapper .ql-container .ql-editor {
    flex: 1;
    min-height: 0;
    overflow-y: auto !important;
    padding: 16px !important;
    padding-bottom: 80px !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: var(--text, #171717) !important;
    background-color: var(--background2, #ffffff) !important;
}

/* Match CardContentFull paragraph spacing */
[b-j59npbjwda] .note-edit-editor-wrapper .ql-editor p {
    margin-bottom: 0.75rem;
}

[b-j59npbjwda] .note-edit-editor-wrapper .ql-editor p:last-child {
    margin-bottom: 0;
}

[b-j59npbjwda] .note-edit-fab {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent, #2c8ebb);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 210;
}

[b-j59npbjwda] .note-edit-fab:active {
    opacity: 0.7;
    transform: scale(0.95);
}

/* ========== Note Header Component (CardHeader-style) ========== */
[b-j59npbjwda] .note-header-container {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 109;
    padding: 12px 16px;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 8px;
    margin: 0 8px;
    width: calc(100% - 16px);
    border: 1px solid var(--border, #3a3c48);
}

/* Notebook Info Row (matching CardHeader.razor design) */
[b-j59npbjwda] .note-header-notebook-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

[b-j59npbjwda] .note-header-notebook-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

[b-j59npbjwda] .note-header-notebook-icon {
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    color: white;
}

[b-j59npbjwda] .note-header-notebook-icon.ask-notebook {
    background-color: #3b82f6;
    font-weight: 700;
}

[b-j59npbjwda] .note-header-notebook-icon.odapnote-notebook {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[b-j59npbjwda] .note-header-notebook-icon.regular-notebook {
    background-color: var(--red, #ef4444);
}

[b-j59npbjwda] .note-header-notebook-name {
    font-weight: 600;
    color: var(--text, #171717);
}

[b-j59npbjwda] .note-header-time {
    color: var(--textLight, #9ca3af);
}

[b-j59npbjwda] .note-header-time::before {
    content: '•';
    padding-right: 4px;
}

[b-j59npbjwda] .note-header-tags-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
}

[b-j59npbjwda] .note-header-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    flex: 1;
}

/* Tag style matching NoteMobileModal: darker blue background */
[b-j59npbjwda] .note-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    background-color: rgb(0, 91, 161);
}

[b-j59npbjwda] .note-header-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 50%;
    color: currentColor;
    cursor: pointer;
    transition: background-color 0.2s;
}

[b-j59npbjwda] .note-header-tag-remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

[b-j59npbjwda] .note-header-add-tag {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgb(51, 122, 183);
}

[b-j59npbjwda] .note-header-add-tag-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 12px;
    width: 80px;
    min-width: 50px;
}

[b-j59npbjwda] .note-header-add-tag-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

[b-j59npbjwda] .note-header-auto-buttons {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Button style matching NoteMobileModal */
[b-j59npbjwda] .note-header-auto-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

[b-j59npbjwda] .note-header-auto-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

[b-j59npbjwda] .note-header-auto-btn.auto-tag {
    background-color: #16a34a;
}

[b-j59npbjwda] .note-header-auto-btn.auto-tag:hover:not(:disabled) {
    background-color: #15803d;
}

[b-j59npbjwda] .note-header-auto-btn.auto-desc {
    background-color: #9333ea;
}

[b-j59npbjwda] .note-header-auto-btn.auto-desc:hover:not(:disabled) {
    background-color: #7e22ce;
}

[b-j59npbjwda] .note-header-auto-btn svg {
    width: 12px;
    height: 12px;
}

[b-j59npbjwda] .note-header-rating-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

[b-j59npbjwda] .note-header-rating {
    display: flex;
    align-items: center;
}

[b-j59npbjwda] .note-header-discussion-count {
    display: flex;
    align-items: center;
    color: var(--textLight, #9ca3af);
    font-size: 14px;
}

/* Note Header inside Note Edit Overlay - card style with proper spacing */
[b-j59npbjwda] .note-edit-overlay .note-header-container {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    margin: 0 8px 12px 8px;
    width: calc(100% - 16px);
    background-color: var(--post, #f8fafc);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 8px;
    border: 1px solid var(--border, #d4d4d8);
}

/* ============================================ */
/* Crop Modal Styles */
/* ============================================ */

.crop-modal-overlay[b-j59npbjwda] {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(0, 0, 0, 0.98);
    display: flex;
    flex-direction: column;
}

.crop-modal-header[b-j59npbjwda] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #1a1a1a;
}

.crop-modal-title[b-j59npbjwda] {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.crop-modal-actions[b-j59npbjwda] {
    display: flex;
    gap: 12px;
}

.crop-modal-btn[b-j59npbjwda] {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.crop-modal-btn-cancel[b-j59npbjwda] {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.crop-modal-btn-cancel:hover[b-j59npbjwda] {
    background-color: rgba(255, 255, 255, 0.1);
}

.crop-modal-btn-apply[b-j59npbjwda] {
    background-color: #3b82f6;
    border: none;
    color: white;
}

.crop-modal-btn-apply:hover[b-j59npbjwda] {
    background-color: #2563eb;
}

.crop-modal-content[b-j59npbjwda] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.crop-container[b-j59npbjwda] {
    max-width: 100%;
    max-height: 100%;
}

.crop-container img[b-j59npbjwda] {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Processing overlay */
.processing-overlay[b-j59npbjwda] {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 210;
}

.processing-spinner[b-j59npbjwda] {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin-b-j59npbjwda 1s linear infinite;
}

@keyframes spin-b-j59npbjwda {
    to { transform: rotate(360deg); }
}
/* /Components/Pages/AIChat/AIChat.razor.rz.scp.css */
.moa-ai-chat-root[b-2nv46r2i7k] {
    display: flex;
    flex-direction: column;
}

.chat-container[b-2nv46r2i7k] {
    position: fixed; /* 화면에 고정 */
    bottom: 0; /* 하단에 붙이기 */
    left: 50%; /* viewport의 가로 50% 위치 */
    transform: translateX(-50%); /* 자신의 너비의 절반만큼 왼쪽으로 이동해서 중앙 정렬 */
    /* (선택) 원하는 너비 지정 */
    width: 100%; /* 화면 가로 전체를 덮고 싶으면 */
    /* max-width: 640px;  중앙에 일정 너비만 유지하고 싶으면 */
    
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0;
    padding-bottom: 0.5rem;
    border-top-width: 1px;
    border-color: #E5E7EB;
    z-index: 50; /* 다른 요소 위에 있도록 */
}

/* ✅ 다크 테마용 배경색 및 경계색 변경 */
html[style*="color-scheme: dark"] .chat-container[b-2nv46r2i7k] {
    /*background-color: var(--background2); */
    border-color: var(--background2); /* Tailwind gray-700 정도의 어두운 경계 */
}
/* /Components/Pages/AIChat/AIChatCitation.razor.rz.scp.css */
.citation[b-bzdsbrkaky] {
    display: inline-flex;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-top: 1rem;
    margin-right: 1rem;
    border-bottom: 2px solid #a770de;
    gap: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background-color: #ffffff;
}

    .citation[href]:hover[b-bzdsbrkaky] {
        outline: 1px solid #865cb1;
    }

    .citation svg[b-bzdsbrkaky] {
        width: 1.5rem;
        height: 1.5rem;
    }

    .citation:active[b-bzdsbrkaky] {
        background-color: rgba(0,0,0,0.05);
    }

.citation-content[b-bzdsbrkaky] {
    display: flex;
    flex-direction: column;
}

.citation-file[b-bzdsbrkaky] {
    font-weight: 600;
}
/* /Components/Pages/AIChat/AIChatHeader.razor.rz.scp.css */
.icon-stroke[b-r034jhkxq1] {
    color: #f0f0f0; /* 기본 선 색 (light mode) */
}

html[style*="color-scheme: dark"] .icon-stroke[b-r034jhkxq1] {
    color: #212121; /* 다크 모드일 때 선 색 변경 */
}

.icon-stroke2[b-r034jhkxq1] {
    color: #212121; /* 기본 선 색 (light mode) */
}

html[style*="color-scheme: dark"] .icon-stroke2[b-r034jhkxq1] {
    color: #f0f0f0; /* 다크 모드일 때 선 색 변경 */
}


/* 라이트 테마 (기본) */
.icon-fill[b-r034jhkxq1] {
    fill: #212121;
}

/* 다크 테마 */
html[style*="color-scheme: dark"] .icon-fill[b-r034jhkxq1] {
    fill: #ffffff;
}
/* /Components/Pages/AIChat/AIChatInput.razor.rz.scp.css */
.input-box[b-g2fjq3jk9r] {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.75rem;
    background: var(--background2);
}

    .input-box:focus-within[b-g2fjq3jk9r] {
        outline: 2px solid #aaa;
    }

textarea[b-g2fjq3jk9r] {
    resize: none;
    border: none;
    outline: none;
    flex-grow: 1;
    width: 100%;
    background: transparent;
}

    textarea:placeholder-shown + .tools[b-g2fjq3jk9r] {
        --send-button-color: #aaa;
    }

.tools[b-g2fjq3jk9r] {
    display: flex; 
    margin-top: 1rem; 
    align-items: center;
}

.tool-icon[b-g2fjq3jk9r] {
    width: 1.25rem;
    height: 1.25rem;
}

.send-button[b-g2fjq3jk9r] {
    color: var(--send-button-color);
    margin-left: auto;
}

    .send-button:hover[b-g2fjq3jk9r] {
        color: black;
    }

html[style*="color-scheme: dark"] .send-button:hover[b-g2fjq3jk9r] {
    color: #f0f0f0;
}

.attach[b-g2fjq3jk9r] {
    /*background-color: white;*/
    border-style: dashed;
    color: #888;
    border-color: #888;
    padding: 3px 8px;
}

    .attach:hover[b-g2fjq3jk9r] {
        color: black;
    }

html[style*="color-scheme: dark"] .attach:hover[b-g2fjq3jk9r] {
    color: #f0f0f0;
}
/* /Components/Pages/AIChat/AIChatMessageItem.razor.rz.scp.css */
.user-message[b-evoh18u21i] {
    background-color: rgba(182, 215, 232, 0.1);
    align-self: flex-end;
    min-width: 25%;
    max-width: calc(100% - 5rem);
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    color: #1F2937;
    white-space: pre-wrap;
}

html[style*="color-scheme: dark"] .user-message[b-evoh18u21i] {
    background-color: #262626;
    color: #e7e5e4;
}


.assistant-message[b-evoh18u21i], .assistant-search[b-evoh18u21i] {
    display: grid;
    grid-template-rows: min-content;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.25rem;
    position: relative;
}

.copy-button[b-evoh18u21i] {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
    color: #9ca3af;
    background-color: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.copy-button:hover[b-evoh18u21i] {
    color: #4b5563;
    background-color: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .copy-button[b-evoh18u21i] {
        color: #6b7280;
    }

    .copy-button:hover[b-evoh18u21i] {
        color: #e5e7eb;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

html[data-theme="dark"] .copy-button[b-evoh18u21i] {
    color: #6b7280;
}

html[data-theme="dark"] .copy-button:hover[b-evoh18u21i] {
    color: #e5e7eb;
    background-color: rgba(255, 255, 255, 0.1);
}

.assistant-message-header[b-evoh18u21i] {
    font-weight: 600;
}

.assistant-message-text[b-evoh18u21i] {
    grid-column-start: 2;
}

.assistant-message-icon[b-evoh18u21i] {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 9999px; 
    width: 1.5rem; 
    height: 1.5rem; 
    color: #ffffff; 
    background: #9b72ce;
}

    .assistant-message-icon svg[b-evoh18u21i] {
        width: 1rem; 
        height: 1rem; 
    }

.assistant-search[b-evoh18u21i] {
    font-size: 0.875rem;
    line-height: 1.25rem; 
}

.assistant-search-icon[b-evoh18u21i] {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 1.5rem; 
    height: 1.5rem; 
}

    .assistant-search-icon svg[b-evoh18u21i] {
        width: 1rem; 
        height: 1rem; 
    }

.assistant-search-content[b-evoh18u21i] {
    align-content: center;
}

.assistant-search-phrase[b-evoh18u21i] {
    font-weight: 600;
}

/* Default styling for markdown-formatted assistant messages */
[b-evoh18u21i] ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

[b-evoh18u21i] ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
}

[b-evoh18u21i] li {
    margin: 0.5rem 0;
}

[b-evoh18u21i] strong {
    font-weight: 600;
}

[b-evoh18u21i] h3 {
    margin: 1rem 0;
    font-weight: 600;
}

[b-evoh18u21i] p + p {
    margin-top: 1rem;
}

[b-evoh18u21i] table {
    margin: 1rem 0;
}

[b-evoh18u21i] th {
    text-align: left;
    border-bottom: 1px solid silver;
}

[b-evoh18u21i] th, [b-evoh18u21i] td {
    padding: 0.1rem 0.5rem;
}

[b-evoh18u21i] th, [b-evoh18u21i] tr:nth-child(even) {
    background: var(--background2);
}

[b-evoh18u21i] pre > code {
    background: var(--background2);
    display: block;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}


/* /Components/Pages/AIChat/AIChatMessageList.razor.rz.scp.css */
.message-list-container[b-alnfjdc0v7] {
    margin: 0.5rem 0.5rem;
    flex-grow: 1;
    scroll-behavior: smooth;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
}

.message-list[b-alnfjdc0v7] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.no-messages[b-alnfjdc0v7] {
    text-align: center;
    font-size: 1.25rem;
    color: #999;
    margin-top: calc(87vh - 18rem);
}

chat-messages[b-alnfjdc0v7] >  div:last-of-type {
    /* Adds some vertical buffer to so that suggestions don't overlap the output when they appear */
    margin-bottom: 2rem;
}
/* /Components/Pages/AIChat/AIChatMobile.razor.rz.scp.css */
.moa-ai-chat-root[b-xjblbixmmg] {
    display: flex;
    flex-direction: column;
}

.chat-container[b-xjblbixmmg] {
    position: fixed; /* 화면에 고정 */
    bottom: 0; /* 하단에 붙이기 */
    left: 50%; /* viewport의 가로 50% 위치 */
    transform: translateX(-50%); /* 자신의 너비의 절반만큼 왼쪽으로 이동해서 중앙 정렬 */
    /* (선택) 원하는 너비 지정 */
    width: 100%; /* 화면 가로 전체를 덮고 싶으면 */
    /* max-width: 640px;  중앙에 일정 너비만 유지하고 싶으면 */

    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0;
    padding-bottom: 0.5rem;
    border-top-width: 1px;
    border-color: #E5E7EB;
    z-index: 50; /* 다른 요소 위에 있도록 */
}

/* ✅ 다크 테마용 배경색 및 경계색 변경 */
html[style*="color-scheme: dark"] .chat-container[b-xjblbixmmg] {
    /*background-color: var(--background2); */
    border-color: var(--background2); /* Tailwind gray-700 정도의 어두운 경계 */
}
/* /Components/Pages/AIChat/AIChatSuggestions.razor.rz.scp.css */
.suggestions[b-v97zdw8m1x] {
    text-align: right;
    white-space: nowrap;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    display: flex;
    margin-bottom: 0.75rem;
}
/* /Components/Pages/AIChat/AIChatWarning.razor.rz.scp.css */
.warning[b-oh6us5vypg] {
    text-align: center;
    white-space: nowrap;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    display: flex;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}
/* /Components/Pages/AIChat/ScrollToBottom.razor.rz.scp.css */
.floating-scroll-btn[b-1ne98olbrl] {
    position: fixed;
    left: 50%;
    /* bottom: 150px;  bottom 속성 제거, 인라인 스타일로 대체 */
    transform: translateX(-50%);
    z-index: 1000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface-secondary, #f3f4f6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    transition: box-shadow 0.2s;
    cursor: pointer;
    padding: 0;
}

    .floating-scroll-btn svg[b-1ne98olbrl] {
        width: 24px;
        height: 24px;
    }

    .floating-scroll-btn:active[b-1ne98olbrl] {
        box-shadow: 0 4px 16px rgba(0,0,0,0.16);
    }


html[style*="color-scheme: dark"] .floating-scroll-btn[b-1ne98olbrl] {
    background: var(--surface-secondary, #000000);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
}

    html[style*="color-scheme: dark"] .floating-scroll-btn svg[b-1ne98olbrl] {
        fill: none; /* Tailwind의 text-gray-50 */
    }


html[style*="color-scheme: dark"] .floating-scroll-btn svg circle[b-1ne98olbrl] {
    --scroll-btn-bg: #000000;
}
