@import '_content/ZXingBlazor/ZXingBlazor.bundle.scp.css';
@import '_content/Octo.Web.Core/Octo.Web.Core.bundle.scp.css';

/* _content/Octo.Web.Server/Components/AiChatFab.razor.rz.scp.css */
.ai-fab[b-fejs3cgv4y] {
    position: fixed;
    bottom: 110px;
    right: 11px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    /* Octo blue → AI purple: fuses the Octo brand with the AI identity */
    background: linear-gradient(135deg, #4040FF 0%, #6366f1 55%, #8b5cf6 100%);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 10005;
    box-shadow: 0 8px 24px -4px rgba(64, 64, 255, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: ai-fab-float-b-fejs3cgv4y 3.5s ease-in-out infinite;
}

.ai-fab:hover[b-fejs3cgv4y] {
    transform: scale(1.08);
    box-shadow: 0 12px 30px -4px rgba(139, 92, 246, .75);
}

.ai-fab.open[b-fejs3cgv4y] {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    animation: none;
}

.ai-fab i[b-fejs3cgv4y] {
    position: relative;
    z-index: 2;
}

/* White Octo logo on the gradient (brightness/invert turns the blue mark white) */
.ai-fab-logo[b-fejs3cgv4y] {
    position: relative;
    z-index: 2;
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

/* Small AI sparkle accent, top-right */
.ai-fab-spark[b-fejs3cgv4y] {
    position: absolute;
    top: 7px;
    right: 8px;
    z-index: 3;
    font-size: 11px;
    color: #fde047;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    animation: ai-fab-twinkle-b-fejs3cgv4y 2.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ai-fab-twinkle-b-fejs3cgv4y {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.8); }
}

/* Pulsing ring */
.ai-fab-pulse[b-fejs3cgv4y] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, .5);
    z-index: 1;
    animation: ai-fab-pulse-b-fejs3cgv4y 2s ease-out infinite;
}

@keyframes ai-fab-pulse-b-fejs3cgv4y {
    0% {
        transform: scale(1);
        opacity: .7;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@keyframes ai-fab-float-b-fejs3cgv4y {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-fab[b-fejs3cgv4y],
    .ai-fab-spark[b-fejs3cgv4y] {
        animation: none;
    }
    .ai-fab-pulse[b-fejs3cgv4y] {
        animation: none;
        opacity: 0;
    }
}
/* _content/Octo.Web.Server/Components/AiChatPanel.razor.rz.scp.css */
.ai-panel[b-30nv6ugdw5] {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 760px;
    max-width: 96vw;
    background: #ffffff;
    box-shadow: -8px 0 40px -10px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    z-index: 10010;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(0.22, 1, 0.36, 1);
    color: #1f2430;
    font-size: 14px;
}

.ai-panel.open[b-30nv6ugdw5] {
    transform: translateX(0);
}

/* Left-edge resize handle */
.ai-resize-handle[b-30nv6ugdw5] {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    cursor: ew-resize;
    z-index: 20;
    background: transparent;
    transition: background .15s;
}

.ai-resize-handle:hover[b-30nv6ugdw5],
.ai-resize-handle.dragging[b-30nv6ugdw5] {
    background: rgba(74, 144, 255, .4);
}

[b-30nv6ugdw5] [data-bs-theme="dark"] .ai-panel,
.ai-panel[b-30nv6ugdw5] {
}

/* Header */
.ai-panel-header[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #2F6BED, #4A90FF);
    color: #fff;
    flex-shrink: 0;
}

.ai-panel-title[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: .3px;
}

.ai-panel-header-actions[b-30nv6ugdw5] {
    display: flex;
    gap: 4px;
}

.ai-icon-btn[b-30nv6ugdw5] {
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}

.ai-icon-btn:hover[b-30nv6ugdw5] {
    background: rgba(255, 255, 255, .3);
}

/* Body */
.ai-panel-body[b-30nv6ugdw5] {
    flex: 1;
    display: flex;
    min-height: 0;
}

/* History */
.ai-history[b-30nv6ugdw5] {
    width: 190px;
    flex-shrink: 0;
    border-right: 1px solid #ececf1;
    background: #f7f7fa;
    overflow-y: auto;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-new-chat-btn[b-30nv6ugdw5] {
    width: 100%;
    border: 1px solid #e0e0ea;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    cursor: pointer;
    color: #1E3FD9;
    font-weight: 500;
    margin-bottom: 6px;
    transition: background .15s;
}

.ai-new-chat-btn:hover[b-30nv6ugdw5] {
    background: #eef4ff;
}

.ai-history-empty[b-30nv6ugdw5] {
    color: #98a0ab;
    font-size: 12px;
    text-align: center;
    padding: 20px 6px;
}

.ai-history-item[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #3b4250;
    transition: background .12s;
    gap: 6px;
}

.ai-history-item:hover[b-30nv6ugdw5] {
    background: #ececf5;
}

.ai-history-item.active[b-30nv6ugdw5] {
    background: #dbe7ff;
    color: #1E3FD9;
    font-weight: 500;
}

.ai-history-title[b-30nv6ugdw5] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.ai-history-actions[b-30nv6ugdw5] {
    display: none;
    gap: 8px;
    flex-shrink: 0;
}

.ai-history-item:hover .ai-history-actions[b-30nv6ugdw5] {
    display: flex;
}

.ai-history-actions i[b-30nv6ugdw5] {
    color: #98a0ab;
    font-size: 12px;
}

.ai-history-actions i:hover[b-30nv6ugdw5] {
    color: #1E3FD9;
}

.ai-rename-input[b-30nv6ugdw5] {
    width: 100%;
    border: 1px solid #4A90FF;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 13px;
}

/* Thread */
.ai-thread-wrap[b-30nv6ugdw5] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ai-thread[b-30nv6ugdw5] {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-empty[b-30nv6ugdw5] {
    margin: auto;
    text-align: center;
    color: #98a0ab;
    padding: 30px 20px;
}

.ai-empty p[b-30nv6ugdw5] {
    font-size: 16px;
    font-weight: 600;
    color: #5b626f;
}

/* RnAi message layout: user → right-aligned light bubble, assistant → plain left text */
.ai-msg[b-30nv6ugdw5] {
    display: flex;
}

.ai-msg.user[b-30nv6ugdw5] {
    justify-content: flex-end;
}

.ai-msg.assistant[b-30nv6ugdw5] {
    justify-content: flex-start;
}

.ai-msg-content[b-30nv6ugdw5] {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.ai-msg.user .ai-msg-content[b-30nv6ugdw5] {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
    background: #eef4ff;
    color: #1f2430;
    border: 1px solid #dbe7ff;
}

.ai-msg.assistant .ai-msg-content[b-30nv6ugdw5] {
    max-width: 100%;
    width: 100%;
    color: #1f2430;
}

/* Assistant action row (copy etc.) */
.ai-msg-actions[b-30nv6ugdw5] {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.ai-msg-action[b-30nv6ugdw5] {
    background: transparent;
    border: none;
    color: #98a0ab;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.ai-msg-action:hover[b-30nv6ugdw5] {
    background: #eef4ff;
    color: #2F6BED;
}

/* "Thinking" typing indicator */
.ai-typing[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4A90FF;
    font-size: 13px;
    font-weight: 500;
}

.ai-typing-text[b-30nv6ugdw5] {
    background: linear-gradient(90deg, #4A90FF, #9DC2FF, #4A90FF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ai-typing-shimmer-b-30nv6ugdw5 1.6s linear infinite;
}

@keyframes ai-typing-shimmer-b-30nv6ugdw5 {
    to { background-position: 200% center; }
}

/* Persistent "answering…" indicator shown under streaming content until generation finishes */
.ai-generating[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #4A90FF;
    font-size: 12px;
    font-weight: 500;
}

.ai-generating-text[b-30nv6ugdw5] {
    background: linear-gradient(90deg, #4A90FF, #9DC2FF, #4A90FF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ai-typing-shimmer-b-30nv6ugdw5 1.6s linear infinite;
}

.ai-typing-dots[b-30nv6ugdw5] {
    display: inline-flex;
    gap: 3px;
}

.ai-typing-dots span[b-30nv6ugdw5] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4A90FF;
    display: inline-block;
    animation: ai-typing-bounce-b-30nv6ugdw5 1.2s ease-in-out infinite;
}

.ai-typing-dots span:nth-child(2)[b-30nv6ugdw5] { animation-delay: .2s; }
.ai-typing-dots span:nth-child(3)[b-30nv6ugdw5] { animation-delay: .4s; }

@keyframes ai-typing-bounce-b-30nv6ugdw5 {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.ai-msg-attachments[b-30nv6ugdw5] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.ai-attach-chip[b-30nv6ugdw5] {
    font-size: 12px;
    background: rgba(0, 0, 0, .08);
    padding: 3px 8px;
    border-radius: 10px;
}

.ai-msg.user .ai-attach-chip[b-30nv6ugdw5] {
    background: rgba(47, 107, 237, .12);
    color: #1E3FD9;
}

/* Composer */
.ai-composer[b-30nv6ugdw5] {
    flex-shrink: 0;
    border-top: 1px solid #ececf1;
    padding: 10px 14px 12px;
    background: #fafafd;
}

.ai-quota-banner[b-30nv6ugdw5] {
    background: #fdecec;
    color: #c0392b;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 8px;
}

.ai-pending-attachments[b-30nv6ugdw5] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-pending-item[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #eef4ff;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    max-width: 180px;
}

.ai-pending-thumb[b-30nv6ugdw5] {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
}

.ai-pending-fileicon[b-30nv6ugdw5] {
    color: #4A90FF;
}

.ai-pending-name[b-30nv6ugdw5] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-pending-remove[b-30nv6ugdw5] {
    cursor: pointer;
    color: #98a0ab;
}

.ai-pending-remove:hover[b-30nv6ugdw5] {
    color: #c0392b;
}

.ai-composer-input[b-30nv6ugdw5] {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #fff;
    border: 1px solid #e0e0ea;
    border-radius: 14px;
    padding: 6px 8px;
}

.ai-attach-btn[b-30nv6ugdw5] {
    cursor: pointer;
    color: #4A90FF;
    padding: 6px;
    margin-bottom: 2px;
}

.ai-attach-btn.disabled[b-30nv6ugdw5] {
    opacity: .45;
    cursor: not-allowed;
    color: #98a0ab;
}

.ai-file-input[b-30nv6ugdw5] {
    display: none;
}

.ai-mic-btn[b-30nv6ugdw5] {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #4A90FF;
    padding: 6px;
    margin-bottom: 2px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.ai-mic-btn:hover[b-30nv6ugdw5] {
    background: #eef4ff;
}

.ai-mic-btn:disabled[b-30nv6ugdw5] {
    opacity: .45;
    cursor: not-allowed;
}

.ai-mic-btn.listening[b-30nv6ugdw5] {
    color: #fff;
    background: #ef4444;
    animation: ai-mic-pulse-b-30nv6ugdw5 1.3s ease-out infinite;
}

@keyframes ai-mic-pulse-b-30nv6ugdw5 {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
    100% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* InputFile renders its own <input type="file"> as a child component,
   which does NOT receive the scoped attribute — hide it via ::deep. */
.ai-attach-btn[b-30nv6ugdw5]  input[type="file"] {
    display: none;
}

.ai-textarea[b-30nv6ugdw5] {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    min-height: 38px;
    max-height: 140px;
    font-size: 14px;
    padding: 8px 4px;
    background: transparent;
    color: #1f2430;
    font-family: inherit;
}

.ai-send-btn[b-30nv6ugdw5] {
    background: linear-gradient(135deg, #2F6BED, #4A90FF);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity .15s;
}

.ai-send-btn:disabled[b-30nv6ugdw5] {
    opacity: .45;
    cursor: not-allowed;
}

.ai-stop-btn[b-30nv6ugdw5] {
    background: #ef4444;
}

.ai-composer-footer[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #98a0ab;
}

.ai-hint kbd[b-30nv6ugdw5] {
    background: #ececf1;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 10px;
    color: #5b626f;
}

.ai-token-info[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-token-bar[b-30nv6ugdw5] {
    width: 60px;
    height: 6px;
    background: #ececf1;
    border-radius: 3px;
    overflow: hidden;
}

.ai-token-fill[b-30nv6ugdw5] {
    display: block;
    height: 100%;
    background: #4A90FF;
    transition: width .3s;
}

.ai-token-fill.low[b-30nv6ugdw5] {
    background: #f39c12;
}

/* Report artifact card (preview / download) */
.ai-artifact[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d8d8e6;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(47, 107, 237, .08), rgba(74, 144, 255, .08));
    cursor: pointer;
    transition: box-shadow .15s, transform .1s;
}

.ai-artifact:hover[b-30nv6ugdw5] {
    box-shadow: 0 4px 14px -4px rgba(47, 107, 237, .4);
    transform: translateY(-1px);
}

.ai-artifact-open[b-30nv6ugdw5] {
    color: #4A90FF;
    flex-shrink: 0;
}

.ai-artifact-info[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ai-artifact-icon[b-30nv6ugdw5] {
    font-size: 20px;
    color: #4A90FF;
    flex-shrink: 0;
}

.ai-artifact-title[b-30nv6ugdw5] {
    font-weight: 600;
    color: #1f2430;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-artifact-sub[b-30nv6ugdw5] {
    font-size: 11px;
    color: #98a0ab;
}

.ai-artifact-actions[b-30nv6ugdw5] {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ai-artifact-btn[b-30nv6ugdw5] {
    border: 1px solid #d8d8e6;
    background: #fff;
    color: #1E3FD9;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.ai-artifact-btn:hover[b-30nv6ugdw5] {
    background: #eef4ff;
}

/* Report preview popup (centered modal over the whole app) */
.ai-preview-backdrop[b-30nv6ugdw5] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(2px);
    z-index: 10020;
}

.ai-preview-modal[b-30nv6ugdw5] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92vw;
    max-width: 1100px;
    height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    z-index: 10021;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
}

.ai-preview-modal-header[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2F6BED, #4A90FF);
    color: #fff;
    flex-shrink: 0;
}

.ai-preview-actions[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-preview-btn[b-30nv6ugdw5] {
    border: none;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.ai-preview-btn:hover[b-30nv6ugdw5] {
    background: rgba(255, 255, 255, .32);
}

.ai-preview-btn.ghost[b-30nv6ugdw5] {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .5);
    font-weight: 500;
}

.ai-preview-frame[b-30nv6ugdw5] {
    flex: 1;
    width: 100%;
    border: none;
    background: #fff;
}

.ai-preview-title[b-30nv6ugdw5] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

/* Admin rules / skills overlay */
.ai-rules-overlay[b-30nv6ugdw5] {
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 30;
    display: flex;
    flex-direction: column;
}

.ai-rules-header[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #2F6BED, #4A90FF);
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

.ai-rules-body[b-30nv6ugdw5] {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
}

.ai-rule-item[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #ececf1;
    border-radius: 10px;
    margin-bottom: 8px;
}

.ai-rule-info[b-30nv6ugdw5] {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.ai-rule-title[b-30nv6ugdw5] {
    font-weight: 600;
    color: #1f2430;
}

.ai-rule-meta[b-30nv6ugdw5] {
    font-size: 11px;
    color: #98a0ab;
}

.ai-rule-del[b-30nv6ugdw5] {
    color: #98a0ab;
    cursor: pointer;
    flex-shrink: 0;
}

.ai-rule-del:hover[b-30nv6ugdw5] {
    color: #c0392b;
}

.ai-rule-form[b-30nv6ugdw5] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-rule-form label[b-30nv6ugdw5] {
    font-size: 12px;
    font-weight: 600;
    color: #5b626f;
    margin-top: 8px;
}

.ai-rule-input[b-30nv6ugdw5],
.ai-rule-textarea[b-30nv6ugdw5] {
    border: 1px solid #e0e0ea;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}

.ai-rule-num[b-30nv6ugdw5] {
    width: 120px;
}

.ai-rule-textarea[b-30nv6ugdw5] {
    min-height: 160px;
    resize: vertical;
}

.ai-rule-check[b-30nv6ugdw5] {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
    margin-top: 10px !important;
}

.ai-rule-actions[b-30nv6ugdw5] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.ai-rule-save[b-30nv6ugdw5] {
    width: auto;
    padding: 0 18px;
    border-radius: 10px;
    height: 38px;
}

/* Markdown (injected HTML needs ::deep) */
.markdown-content[b-30nv6ugdw5] {
    line-height: 1.6;
}

.markdown-content[b-30nv6ugdw5]  h1,
.markdown-content[b-30nv6ugdw5]  h2,
.markdown-content[b-30nv6ugdw5]  h3 {
    margin: .8em 0 .4em;
    font-weight: 600;
}

.markdown-content[b-30nv6ugdw5]  h1 { font-size: 1.3em; }
.markdown-content[b-30nv6ugdw5]  h2 { font-size: 1.18em; }
.markdown-content[b-30nv6ugdw5]  h3 { font-size: 1.08em; }

.markdown-content[b-30nv6ugdw5]  p {
    margin: .5em 0;
}

.markdown-content[b-30nv6ugdw5]  ul,
.markdown-content[b-30nv6ugdw5]  ol {
    margin: .5em 0;
    padding-left: 1.4em;
}

.markdown-content[b-30nv6ugdw5]  code {
    background: rgba(47, 107, 237, .12);
    padding: .15em .4em;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: .88em;
    color: #1E3FD9;
}

.markdown-content[b-30nv6ugdw5]  pre {
    background: #1e1e2e;
    color: #e5e7eb;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: .8em 0;
    border-left: 3px solid #4A90FF;
}

.markdown-content[b-30nv6ugdw5]  pre code {
    background: none;
    padding: 0;
    color: #e5e7eb;
}

.markdown-content[b-30nv6ugdw5]  blockquote {
    border-left: 3px solid #4A90FF;
    margin: .8em 0;
    padding: .4em 0 .4em 1em;
    background: rgba(74, 144, 255, .08);
    border-radius: 0 6px 6px 0;
}

.markdown-content[b-30nv6ugdw5]  table {
    border-collapse: collapse;
    width: 100%;
    margin: .8em 0;
}

.markdown-content[b-30nv6ugdw5]  th,
.markdown-content[b-30nv6ugdw5]  td {
    border: 1px solid #e0e0ea;
    padding: .4em .6em;
    text-align: left;
}

.markdown-content[b-30nv6ugdw5]  th {
    background: rgba(74, 144, 255, .12);
    font-weight: 600;
}

.markdown-content[b-30nv6ugdw5]  a {
    color: #1E3FD9;
    text-decoration: none;
}

.markdown-content[b-30nv6ugdw5]  a:hover {
    text-decoration: underline;
}

/* Header title (active conversation) */
.ai-panel-title-text[b-30nv6ugdw5] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
}

/* Header overflow menu */
.ai-header-menu-wrap[b-30nv6ugdw5] {
    position: relative;
}

.ai-header-menu[b-30nv6ugdw5] {
    position: absolute;
    top: 38px;
    right: 0;
    background: #fff;
    border: 1px solid #e6e6ef;
    border-radius: 12px;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .28);
    padding: 6px;
    min-width: 220px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-header-menu-item[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    color: #3b4250;
    cursor: pointer;
    transition: background .12s;
}

.ai-header-menu-item:hover[b-30nv6ugdw5] {
    background: #eef4ff;
    color: #1E3FD9;
}

.ai-header-menu-item i[b-30nv6ugdw5] {
    width: 16px;
    color: #4A90FF;
}

/* History section headers (Pinned / Recent) */
.ai-history-section[b-30nv6ugdw5] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #98a0ab;
    padding: 10px 8px 4px;
}

.ai-history-section i[b-30nv6ugdw5] {
    font-size: 10px;
}

.ai-history-actions .fa-thumbtack.pinned[b-30nv6ugdw5] {
    color: #2F6BED;
}

/* Code block header (language label + copy) — injected by enhanceCodeBlocks JS */
.markdown-content[b-30nv6ugdw5]  .ai-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2a2a3c;
    color: #c9c9d6;
    padding: 6px 12px;
    border-radius: 8px 8px 0 0;
    font-size: 12px;
    margin: .8em 0 0;
}

.markdown-content[b-30nv6ugdw5]  .ai-code-header + pre {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    border-left: none;
}

.markdown-content[b-30nv6ugdw5]  .ai-code-lang {
    font-weight: 600;
    letter-spacing: .3px;
}

.markdown-content[b-30nv6ugdw5]  .ai-code-lang i {
    margin-right: 6px;
    color: #4A90FF;
}

.markdown-content[b-30nv6ugdw5]  .ai-code-copy {
    background: transparent;
    border: none;
    color: #c9c9d6;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.markdown-content[b-30nv6ugdw5]  .ai-code-copy:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* Composer disclaimer (RnAi) */
.ai-disclaimer[b-30nv6ugdw5] {
    text-align: center;
    font-size: 11px;
    color: #a6adba;
    margin-top: 8px;
    padding: 0 8px;
}

@media (max-width: 768px) {
    .ai-history[b-30nv6ugdw5] {
        width: 140px;
    }

    .ai-panel-title-text[b-30nv6ugdw5] {
        max-width: 150px;
    }
}
/* _content/Octo.Web.Server/Components/Layout/Drawer.razor.rz.scp.css */
[b-6tru6lyd3d] .navigation-drawer {
    --dxbl-drawer-panel-footer-justify-content: center;
    height: 100vh;
    max-height: 100%;
}

[b-6tru6lyd3d] .panel-open:not(.mobile) .menu-button {
    display: none;
}

@media (max-width: 768px) {
    [b-6tru6lyd3d] .panel-open:not(.mobile) .menu-button {
        display: inline-flex;
    }

    .mobile-drawer-closed .shading-copy[b-6tru6lyd3d] {
        display: none;
        visibility: hidden;
    }

    [b-6tru6lyd3d] .shading-copy {
        background-color: var(--dxbl-drawer-content-shading-bg);
        height: 100%;
        position: absolute;
        transition: opacity ease var(--dxbl-drawer-animation-duration);
        visibility: visible;
        width: 100%;
        z-index: 99;
        opacity: var(--dxbl-drawer-content-shading-opacity);
    }

    [b-6tru6lyd3d] .panel-open .shading-copy {
        opacity: 0;
        visibility: unset;
        height: unset;
    }
}
/* _content/Octo.Web.Server/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-agg85ey3d8] {
    height: 100%;
    font-family: 'Inter';
}

[b-agg85ey3d8] .icon {
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center center;
    -webkit-mask-mask-position: center center;
    width: 1rem;
    height: 1rem;
    background-repeat: no-repeat;
    background-color: var(--dxbl-btn-color);
}

[b-agg85ey3d8] #menu-top {
    display: block;
}

    [b-agg85ey3d8] #menu-top.hidden {
        display: none;
    }

[b-agg85ey3d8] .icon-back {
    -webkit-mask-image: url("images/back.svg");
    mask-image: url("images/back.svg");
}

[b-agg85ey3d8] .icon-menu {
    -webkit-mask-image: url("images/menu.svg");
    mask-image: url("images/menu.svg");
}

[b-agg85ey3d8] .icon-log-in {
    -webkit-mask-image: url("images/account/log-in.svg");
    mask-image: url("images/account/log-in.svg");
}


[b-agg85ey3d8] .icon-log-out {
    -webkit-mask-image: url("images/account/log-out.svg");
    mask-image: url("images/account/log-out.svg");
}

[b-agg85ey3d8] .icon-user {
    -webkit-mask-image: url("images/account/user.svg");
    mask-image: url("images/account/user.svg");
}

[b-agg85ey3d8] .content {
    overflow: auto;
    display: flex;
    flex-direction: column;
}

[b-agg85ey3d8] .menu-button:hover .icon {
    background-color: var(--dxbl-btn-hover-color);
}

.nav-buttons-container[b-agg85ey3d8] {
    display: flex;
    gap: 10px;
    padding: 2rem 0rem;
}

    .nav-buttons-container[b-agg85ey3d8]  .menubutton-float-end {
        margin-left: auto;
    }

    .nav-buttons-container[b-agg85ey3d8]  .dxbl-btn-icon-only {
        --dxbl-btn-padding-x: 0.75rem;
        --dxbl-btn-padding-y: 0.25rem;
    }

@media (max-width: 768px) {
    [b-agg85ey3d8] .layout-sidebar {
        grid-area: header / header / header / header !important;
    }
}

@media (max-width: 768px) {
    [b-agg85ey3d8] #menu-top {
        display: none;
    }
}
/* _content/Octo.Web.Server/Components/Layout/NavMenu.razor.rz.scp.css */
#sidebar[b-1orjikqto6] {
    width: 15rem;
    max-width: 15rem;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.16);
    transition: width 0.2s ease;
    height: 100%;
    background: linear-gradient(180deg, var(--bs-renium-primary) 0%, var(--bs-renium-dark) 70%);
    display: block;
    color: var(--bs-renium-branding);
}

    #sidebar.auto-expanded[b-1orjikqto6] {
        width: 50px;
    }

    #sidebar .menu-closeonclick-placeholder[b-1orjikqto6] {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
    }


[b-1orjikqto6] .sidebar-tree {
    padding: 0.5rem;
}

[b-1orjikqto6] .sidebar-header {
    padding: 2rem 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bs-white);
    text-align: center;
}

.logo[b-1orjikqto6] {
    display: flex;
    justify-content: center;
}

.menu-button-container[b-1orjikqto6] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button[b-1orjikqto6] {
    padding: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("images/menu.svg");
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .menu-button:hover[b-1orjikqto6] {
        background-color: rgba(255, 255, 255, 0.1);
    }

.menu[b-1orjikqto6] {
    background-color: transparent;
}

    .menu .dxbl-menu-item-list[b-1orjikqto6] {
        gap: 0.5rem;
    }

.icon[b-1orjikqto6] {
    width: 1.2rem;
    height: 1.2rem;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 0.5rem;
}

.footer[b-1orjikqto6] {
    text-align: center;
    padding: 1rem;
    color: var(--bs-renium-branding);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-button[b-1orjikqto6] {
    color: var(--bs-renium-branding);
    text-decoration: none;
    font-size: 0.85rem;
}

    .footer-button:hover .demos-icon[b-1orjikqto6],
    .footer-button:hover .docs-icon[b-1orjikqto6] {
        background-color: rgba(255, 255, 255, 0.2);
    }

#sidebar.auto-expanded .layout-item[b-1orjikqto6],
#sidebar.auto-expanded .footer[b-1orjikqto6] {
    display: block;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    #sidebar[b-1orjikqto6] {
        min-width: 100%;
        max-width: 100%;
        position: fixed;
        z-index: 3;
    }

        #sidebar .menu-closeonclick-placeholder[b-1orjikqto6] {
            display: block;
        }

        #sidebar.auto-expanded[b-1orjikqto6] {
            display: block;
        }

    .menu-button[b-1orjikqto6] {
        background-image: url("images/close.svg");
        width: 2rem;
        height: 2rem;
    }

    [b-1orjikqto6] .sidebar-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .menu-button-container[b-1orjikqto6] {
        display: flex;
        justify-content: center;
    }

    .layout-item[b-1orjikqto6] {
        display: none;
    }

    .footer[b-1orjikqto6] {
        display: none;
    }
}

.form-control-dx[b-1orjikqto6] {
    width: 100% !important;
}

/* Object Selection Popup */
.object-selection-popup[b-1orjikqto6] {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
}

.object-item[b-1orjikqto6] {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.object-item:hover[b-1orjikqto6] {
    background-color: #f8f9fa;
    border-color: #007bff;
    transform: translateX(2px);
}

.object-name[b-1orjikqto6] {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.object-id[b-1orjikqto6] {
    font-size: 12px;
    color: #6c757d;
}

.no-results[b-1orjikqto6] {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.search-box input[b-1orjikqto6] {
    font-size: 14px;
}

.input-group-text[b-1orjikqto6] {
    background-color: #f8f9fa;
    border-color: #ced4da;
}
/* _content/Octo.Web.Server/Components/Mobile/MobileHome.razor.rz.scp.css */
/* Telefon ana sayfası. Dokunma hedefleri en az 44px: altındaki değerler parmakla
   ıskalanıyor. Kaydırma bu kapsayıcıda, sayfa gövdesinde değil — böylece üst çubuk
   sabit kalıyor. */

.mhome[b-nqmpy949g7] {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== Karşılama ===== */

.mhome-welcome[b-nqmpy949g7] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: var(--octo-hover-bg);
    border: 1px solid var(--octo-border-glass);
}

.mhome-avatar[b-nqmpy949g7] {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9f65e2, #f49fa7);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.mhome-welcome-text[b-nqmpy949g7] {
    min-width: 0;
}

.mhome-greeting[b-nqmpy949g7] {
    font-size: 0.8rem;
    color: var(--octo-text-secondary);
}

.mhome-username[b-nqmpy949g7] {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--octo-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mhome-role[b-nqmpy949g7] {
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--octo-text-tertiary);
}

/* ===== Bölüm ===== */

.mhome-section-header[b-nqmpy949g7] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.15rem 0.6rem;
}

.mhome-section-icon[b-nqmpy949g7] {
    font-size: 0.85rem;
    color: #f5b32e;
}

.mhome-section-title[b-nqmpy949g7] {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--octo-text-primary);
}

.mhome-badge[b-nqmpy949g7] {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 11px;
    background: var(--octo-hover-bg);
    border: 1px solid var(--octo-border-glass);
    font-size: 0.72rem;
    color: var(--octo-text-secondary);
    text-align: center;
}

/* ===== Favori kartları ===== */

.mhome-fav-grid[b-nqmpy949g7] {
    display: grid;
    /* Sığdığı kadar kolon: 360px telefonda 3, 420px'te 4, küçük tablette 5-6 olur.
       Sabit kolon sayısı vermek dar cihazda kartları eziyor. */
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.6rem;
}

.mhome-fav-card[b-nqmpy949g7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.4rem;
    min-height: 92px;
    border-radius: 14px;
    background: var(--octo-hover-bg);
    border: 1px solid var(--octo-border-glass);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, background 0.12s ease;
}

.mhome-fav-card:active[b-nqmpy949g7] {
    transform: scale(0.96);
    background: var(--octo-hover-bg-strong);
}

.mhome-fav-icon[b-nqmpy949g7] {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--octo-hover-bg-strong);
}

.mhome-fav-icon img[b-nqmpy949g7] {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mhome-fav-icon i[b-nqmpy949g7] {
    font-size: 1rem;
    color: var(--octo-text-secondary);
}

.mhome-fav-label[b-nqmpy949g7] {
    font-size: 0.72rem;
    line-height: 1.15;
    font-weight: 500;
    color: var(--octo-text-primary);
    text-align: center;
    /* İki satırda kes: uzun ekran adları kart yüksekliklerini bozmasın. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* ===== Boş durum ===== */

.mhome-empty[b-nqmpy949g7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: 14px;
    background: var(--octo-hover-bg);
    border: 1px dashed var(--octo-border-glass);
}

.mhome-empty i[b-nqmpy949g7] {
    font-size: 1.9rem;
    opacity: 0.25;
    margin-bottom: 0.6rem;
    color: var(--octo-text-secondary);
}

.mhome-empty p[b-nqmpy949g7] {
    margin: 0 0 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--octo-text-secondary);
}

.mhome-empty small[b-nqmpy949g7] {
    font-size: 0.75rem;
    color: var(--octo-text-tertiary);
    line-height: 1.35;
}

/* ===== Menü girişi ===== */

.mhome-menu-entry[b-nqmpy949g7] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.85rem 1rem;
    min-height: 60px;
    border-radius: 14px;
    background: var(--octo-hover-bg);
    border: 1px solid var(--octo-border-glass);
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease;
}

.mhome-menu-entry:active[b-nqmpy949g7] {
    transform: scale(0.99);
}

.mhome-menu-entry-icon[b-nqmpy949g7] {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--octo-hover-bg-strong);
    color: var(--octo-text-secondary);
}

.mhome-menu-entry-text[b-nqmpy949g7] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.mhome-menu-entry-title[b-nqmpy949g7] {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--octo-text-primary);
}

.mhome-menu-entry-sub[b-nqmpy949g7] {
    font-size: 0.75rem;
    color: var(--octo-text-tertiary);
    margin-top: 1px;
}

.mhome-menu-entry-arrow[b-nqmpy949g7] {
    font-size: 0.7rem;
    color: var(--octo-text-tertiary);
    flex-shrink: 0;
}

/* ===== Kur kartı ===== */

/* Veri yoksa bölüm hiç yer kaplamaz — widget mount kalır ki veriyi çekip haber
   verebilsin, ama başlık ve kart görünmez. */
.mhome-section-hidden[b-nqmpy949g7] {
    display: none;
}

.mhome-icon-rate[b-nqmpy949g7] {
    color: #16a34a;
}

.mhome-rate-card[b-nqmpy949g7] {
    padding: 0.5rem;
    border-radius: 14px;
    background: var(--octo-hover-bg);
    border: 1px solid var(--octo-border-glass);
}

/* Widget üst çubuk için tasarlanmış kompakt bir pil; kartın içinde tam genişliğe
   yayılıp ortalanıyor. */
.mhome-rate-card[b-nqmpy949g7]  .exchange-rate-widget {
    width: 100%;
    justify-content: space-around;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.35rem 0.25rem;
}
/* _content/Octo.Web.Server/Components/Pages/Index.razor.rz.scp.css */
[b-jpus63cdot] .welcome-gridlayout {
    margin: auto;
    width: auto;
    height: auto;
}

    [b-jpus63cdot] .welcome-gridlayout .dxbl-gridlayout-root {
        align-content: center;
        justify-content: center;
    }

[b-jpus63cdot] .title {
    text-align: center;
}

[b-jpus63cdot] .dxbl-drawer.dxbl-sm {
    background-color: var(--octo-surface-header);
}

[b-jpus63cdot] .dxbl-tabs > .dxbl-tabs-tablist.dxbl-tabs-tablist-scrollable > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul {
    background-color: var(--octo-surface-header);
}
[b-jpus63cdot] .dxbl-splitter > .dxbl-splitter-pane > .dxbl-splitter-pane-content {
    background-color: var(--octo-surface-header);
}
    :: deep .welcome-cards[b-jpus63cdot] {
    display: grid;
    grid-template-columns: repeat(2, 190px); /* Her satırda 2 kart göster */
    gap: 1rem; /* Kartlar arasındaki boşluk */
    justify-content: center;
}

[b-jpus63cdot] .welcome-card {
    width: 190px; /* Kart genişliği sabit 190px */
    height: 156px; /* Kart yüksekliği sabit 156px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
    border-radius: 1rem;
    color: var(--bs-link-color-rgb);
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
}



    [b-jpus63cdot] .welcome-card:hover {
        box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    }

    [b-jpus63cdot] .welcome-card .welcome-card-img {
        width: auto;
        height: 4.5rem; /* Resim yüksekliği */
        object-fit: contain;
        max-width: 100%;
    }

    [b-jpus63cdot] .welcome-card .welcome-card-text {
        font-size: 1.25rem; /* Yazı boyutu */
        font-weight: 600;
        text-align: center;
        text-decoration: unset;
    }

[b-jpus63cdot] .icon-fill {
    fill: var(--bs-renium-primary);
}

[b-jpus63cdot] .welcome-card .welcome-card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bs-body-color);
    opacity: 0.05;
    border-radius: 1rem;
    z-index: -2;
}

/* Mobil ekranlar ve küçük ekranlar için de aynı düzeni koru */
@media (max-width: 480px) {
    [b-jpus63cdot] .welcome-cards {
        grid-template-columns: repeat(2, 190px); /* Mobilde de yan yana en fazla 2 kart */
        justify-content: center;
    }
}

.skeleton-container[b-jpus63cdot] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    min-height: 100vh; /* Take up full screen height */
}


.skeleton-card[b-jpus63cdot] {
    width: 200px;
    height: 150px;
    background: linear-gradient(90deg, var(--octo-skeleton-from) 25%, var(--octo-skeleton-mid) 50%, var(--octo-skeleton-from) 75%);
    background-size: 400% 100%;
    border-radius: 8px;
    animation: loading-b-jpus63cdot 1.5s ease-in-out infinite;
}

/* Loading animation */
@keyframes loading-b-jpus63cdot {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.page[b-jpus63cdot] {
    height: 100%;
    /*font-family: var(--bs-font-sans-serif);*/
    font-family: 'Inter';
}

[b-jpus63cdot] .icon {
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center center;
    -webkit-mask-mask-position: center center;
    width: 1rem;
    height: 1rem;
    background-repeat: no-repeat;
    background-color: var(--bs-renium-branding);
}

[b-jpus63cdot] #menu-top {
    display: block;
}

    [b-jpus63cdot] #menu-top.hidden {
        display: none;
    }

[b-jpus63cdot] .icon-back {
    -webkit-mask-image: url("images/back.svg");
    mask-image: url("images/back.svg");
}

[b-jpus63cdot] .icon-menu {
    -webkit-mask-image: url("images/menu.svg");
    mask-image: url("images/menu.svg");
    color: var(--bs-renium-branding);
}

[b-jpus63cdot] .icon-log-in {
    -webkit-mask-image: url("images/account/log-in.svg");
    mask-image: url("images/account/log-in.svg");
}

[b-jpus63cdot] .dxbl-btn-split > .dxbl-btn-tool.dxbl-btn-text-secondary:where(:not(.dxbl-btn-standalone)) > svg.dxbl-image, .dxbl-btn-tool.dxbl-btn-text-secondary:where(:not(.dxbl-btn-standalone)) > svg.dxbl-image[b-jpus63cdot] {
    color: var(--bs-renium-branding);
}

:: deep .icon-log-out[b-jpus63cdot] {
    -webkit-mask-image: url("images/account/log-out.svg");
    mask-image: url("images/account/log-out.svg");
}

[b-jpus63cdot] .icon-user {
    -webkit-mask-image: url("images/account/user.svg");
    mask-image: url("images/account/user.svg");
}

[b-jpus63cdot] .content {
    /* Buradaki desen görseli (images/reniumpattern.jpg) bu host'un wwwroot'unda yok;
       dosya çözüme dahil olmayan eski Octo.Web/Octo.Web projesinde kalmış. Tarayıcı her
       sayfa açılışında 404 alıyordu ve desen zaten hiç görünmüyordu. Referansla birlikte
       yalnızca desen için anlamlı olan ayarlar (blend-mode, size, repeat, position) da
       kaldırıldı; görünen sonuç değişmiyor. */
    background-color: var(--octo-content-bg-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
}

[b-jpus63cdot] .menu-button {
    color: var(--bs-renium-branding);
    font-size: 15px;
}

    :: deep .menu-button:hover .icon[b-jpus63cdot] {
        background-color: var(--dxbl-btn-hover-color);
    }

.nav-buttons-container[b-jpus63cdot] {
    display: flex;
    gap: 10px;
    padding: 2rem 0rem;
    background-color: var(--octo-surface-header);
    color: var(--bs-renium-branding);
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

    .nav-buttons-container[b-jpus63cdot]  .menubutton-float-end {
        margin-left: auto;
    }

    .nav-buttons-container[b-jpus63cdot]  .dxbl-btn-icon-only {
        --dxbl-btn-padding-x: 0.75rem;
        --dxbl-btn-padding-y: 0.25rem;
    }

@media (max-width: 768px) {
    [b-jpus63cdot] #menu-top {
        display: none;
    }
}

/* ==========================================================================
   MOBİL DÜZEN (< 768px)

   Buradan önce mobilde iki şey bozuktu: (1) üst çubuğun tamamı .display-desktop
   sınıfıyla gizleniyordu, yani arama/profil/çıkış erişilemezdi; (2) .layout-sidebar
   grid-area ile header alanına taşınıp başlığın üstüne biniyordu. Şimdi üst çubuk
   duruyor ve sığmayan parçaları tek tek gizleniyor, menü ise kayan çekmeceye taşındı.
   ========================================================================== */

@media (max-width: 767.98px) {

    /* ── Üst çubuk: sığmayanları çıkar ── */

    /* Kur widget'ı, dokümantasyon düğmesi ve dil seçici telefonda yer bırakmıyor;
       ikisi de profil menüsünden ya da masaüstünden erişilebilir. */
    [b-jpus63cdot] .octo-topbar .exchange-rate-widget,
    [b-jpus63cdot] .octo-topbar .lang-selector,
    [b-jpus63cdot] .octo-topbar .octo-docs-link {
        display: none !important;
    }

    [b-jpus63cdot] .octo-topbar {
        padding: 0.35rem 0.4rem !important;
        gap: 2px;
    }

    /* Marka adı yazısı: logo yeterli, 12 karakterlik "OCTO" yazısı firma adının
       yerini yiyor. */
    [b-jpus63cdot] .octo-topbar .octo-brand-text {
        display: none;
    }

    [b-jpus63cdot] .header-company-name {
        max-width: 38vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.75rem;
    }

    /* Profil düğmesi telefonda yalnızca avatar: ad ve rol yazısı çubuğu taşırıyor. */
    [b-jpus63cdot] .octo-topbar .user-menu-content .user-info {
        display: none;
    }

    [b-jpus63cdot] .nav-toggle-btn {
        min-width: 44px;
        min-height: 44px;
    }

    [b-jpus63cdot] .global-search-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Profil açılır menüsü telefonda neredeyse tam genişlik: masaüstü genişliği
       ekrandan taşıp sağa kayıyordu. */
    [b-jpus63cdot] .user-dropdown-content {
        width: calc(100vw - 20px) !important;
        max-width: 360px;
        right: 4px !important;
    }

    /* ── Sekme şeridi: mobilde hiç yok ──
       Ana sayfa artık bir sekme değil, yığının kökü. Açık ekranın adı ve geri
       düğmesi üst çubukta duruyor (bkz. IsMobileScreenOpen). Sekmelerin kendisi
       DOM'da kalıyor — AllTabs sayesinde açılmış ekranlar canlı, ikinci açılış
       anında geliyor; yalnızca şerit gizli. */
    [b-jpus63cdot] .content-tabs > .dxbl-tabs-tablist {
        display: none !important;
    }

    /* ── Yükseklik zinciri ──
       Alttaki boşluğun sebebi buydu: dış sekme sayfasının yüksekliği "auto" kalıyor,
       içindeki .master-detail-container'ın height:100%'i çözülemiyor ve ızgara kendi
       max-height'ine (100dvh - 150px) düşüyordu — ekranın altında tam o kadar boşluk
       kalıyordu. Zincir buradan aşağı kesintisiz olmak zorunda.

       Alt (detay) sekmelerini bozmamak için hepsinde DOĞRUDAN ÇOCUK birleştirici
       kullanılıyor; descendant seçici iç içe sekmelere de sızardı. */
    [b-jpus63cdot] .content .px-4 {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    @* Sekme sayfasına DOĞRUDAN ÇOCUK zinciriyle ulaşmaya çalışmak kırılgan: DevExpress
       içerik panelinin altına kaydırma sarmalayıcıları koyabiliyor ve zincir kopuyor.
       Bunun yerine kök sekme sayfalarına kendi sınıfımız veriliyor (octo-root-tabpage,
       bkz. Index.razor) ve kural doğrudan ona yazılıyor — iç detay sekmelerine sızmıyor
       çünkü o sınıf yalnızca kök sekmelerde var. *@
    ::deep .content-tabs,
    ::deep .content-tabs .dxbl-tabs-content-panel,
    ::deep .octo-root-tabpage {
        flex: 1;
        min-height: 0;
        height: 100% !important;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* ── Üst çubuktaki geri düğmesi ve ekran adı ── */

    [b-jpus63cdot] .mobile-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 44px;
        border: none;
        background: none;
        color: var(--octo-brand-text);
        font-size: 1.15rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
    }

    [b-jpus63cdot] .mobile-screen-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--octo-text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    /* İçerik kenar boşluğu: px-4 telefonda ızgaraya kalan genişliği yiyor. */
    [b-jpus63cdot] .content .px-4 {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }
}

/* ── Mobil menü çekmecesi ──
   position:fixed, ızgaranın dışında. Kapalıyken ekran dışında bekliyor; transform
   ile kayıyor (left animasyonu her karede yeniden yerleşim tetikler). */

.mobile-drawer[b-jpus63cdot] {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86vw;
    max-width: 320px;
    z-index: 1301;
    display: flex;
    flex-direction: column;
    /* Opak yüzey şart: çekmece içeriğin üstüne biniyor, yarı saydam olsa alttaki
       ızgara okunmaz hale getiriyor. */
    background: var(--octo-surface-solid);
    border-right: 1px solid var(--octo-border-primary);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
}

.mobile-drawer.open[b-jpus63cdot] {
    transform: translateX(0);
}

.mobile-drawer-header[b-jpus63cdot] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem 0.75rem 1rem;
    border-bottom: 1px solid var(--octo-border-primary);
    flex-shrink: 0;
}

.mobile-drawer-title[b-jpus63cdot] {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--octo-text-primary);
}

.mobile-drawer-close[b-jpus63cdot] {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    border-radius: 50%;
    color: var(--octo-text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-close:active[b-jpus63cdot] {
    background: var(--octo-hover-bg);
}

.mobile-drawer-body[b-jpus63cdot] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer-backdrop[b-jpus63cdot] {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.mobile-drawer-backdrop.open[b-jpus63cdot] {
    opacity: 1;
    pointer-events: auto;
}

/* Durum Çubuğu Ana Stil */

/* DevExpress Toolbar Stili */
[b-jpus63cdot] .status-bar-toolbar {
    background-color: var(--bs-renium-dark); /* Arka plan rengini ayarlayın */
    padding: 5px;
}

/* Toolbar itemleri arasında boşluk bırakmak için */
[b-jpus63cdot] .status-bar-item {
    background-color: var(--bs-renium-dark); /* Arka plan rengini ayarlayın */
    color: var(--bs-renium-branding);
    font-size: 14px;
    border: none;
}

.header-gradient[b-jpus63cdot] {
    height: 4px; /* İnce bir çizgi için yükseklik */
    background: linear-gradient(90deg, #9f65e2, #f49fa7); /* Renk geçişi */
    width: 100%; /* Tam genişlik */
}

.header-gradient-footer[b-jpus63cdot] {
    height: 2px; /* İnce bir çizgi için yükseklik */
    background: linear-gradient(90deg, #9f65e2, #f49fa7); /* Renk geçişi */
    width: 100%; /* Tam genişlik */
}

[b-jpus63cdot] .dxbl-tabs > .dxbl-tabs-tablist > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-disabled):not(:disabled).dxbl-active, .dxbl-tabs > .dxbl-tabs-tablist > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-disabled):not(:disabled).dxbl-active[b-jpus63cdot] {
    color: var(--bs-renium-branding);
}
.chat-launcher-footer[b-jpus63cdot] {
    z-index: 1050;
    background-color: var(--octo-chat-footer-bg);
    border-top: 1px solid var(--octo-chat-footer-border);
    padding-bottom: 8px;
}
/* === Tek oturum popup'ı: başka tarayıcıdan giriş bu oturumu kapattığında === */
.session-terminated-overlay[b-jpus63cdot] {
    position: fixed;
    inset: 0;
    z-index: 100000; /* her şeyin üstünde: spotlight, DxPopup, AI panel dahil */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: session-terminated-fade-in-b-jpus63cdot 0.25s ease-out;
}

.session-terminated-card[b-jpus63cdot] {
    width: min(420px, calc(100vw - 48px));
    padding: 36px 32px 28px;
    border-radius: 20px;
    background: var(--octo-surface-elevated, #ffffff);
    border: 1px solid var(--octo-border-primary, rgba(0, 0, 0, 0.1));
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    animation: session-terminated-pop-in-b-jpus63cdot 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.session-terminated-icon[b-jpus63cdot] {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 26px;
    color: var(--octo-brand-text, #4040FF);
    background: color-mix(in srgb, var(--octo-brand-text, #4040FF) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--octo-brand-text, #4040FF) 25%, transparent);
}

.session-terminated-title[b-jpus63cdot] {
    font-size: 19px;
    font-weight: 700;
    color: var(--octo-text-primary, #1d1d1f);
    margin-bottom: 10px;
}

.session-terminated-text[b-jpus63cdot] {
    font-size: 14px;
    line-height: 1.6;
    color: var(--octo-text-secondary, #6b7280);
    margin-bottom: 24px;
}

.session-terminated-button[b-jpus63cdot] {
    min-width: 160px;
    padding: 11px 28px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--octo-surface-solid, #ffffff); /* koyu temada marka rengi açık; metin koyuya döner */
    background: var(--octo-brand-text, #4040FF);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.session-terminated-button:hover[b-jpus63cdot] {
    filter: brightness(1.1);
}

.session-terminated-button:active[b-jpus63cdot] {
    transform: scale(0.97);
}

@keyframes session-terminated-fade-in-b-jpus63cdot {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes session-terminated-pop-in-b-jpus63cdot {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
