/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-log02x23mt] {
    height: 100%;
    font-family: var(--bs-font-sans-serif);
}

.grid[b-log02x23mt]

 .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-log02x23mt] #menu-top {
    display: block;
}

    [b-log02x23mt] #menu-top.hidden {
        display: none;
    }

[b-log02x23mt] .icon-back {
    -webkit-mask-image: url("images/back.svg");
    mask-image: url("images/back.svg");
}

[b-log02x23mt] .icon-menu {
    -webkit-mask-image: url("images/menu.svg");
    mask-image: url("images/menu.svg");
}

[b-log02x23mt] .content {
    overflow: auto;
    display: flex;
    flex-direction: column;
}

[b-log02x23mt] .menu-button:hover .icon {
    background-color: var(--dxbl-btn-hover-color);
}

.nav-buttons-container[b-log02x23mt] {
    display: flex;
    gap: 10px;
    padding: 2rem 0rem;
}

    .nav-buttons-container[b-log02x23mt]  .menubutton-float-end {
        margin-left: auto;
    }

    .nav-buttons-container[b-log02x23mt]  .dxbl-btn-icon-only {
        --dxbl-btn-padding-x: 0.75rem;
        --dxbl-btn-padding-y: 0.25rem;
    }

@media (max-width: 768px) {
    [b-log02x23mt] .layout-sidebar {
        grid-area: header / header / header / header !important;
    }
}

@media (max-width: 768px) {
    [b-log02x23mt] #menu-top {
        display: none;
    }
}
/* /Components/Pages/Chat/ChatHistory.razor.rz.scp.css */
/* Base history pane styling (desktop + mobile) */
.history-wrapper[b-24mctarb9l] {
    height: 100%;
}

.history-pane[b-24mctarb9l] {
    width: 280px;
    max-width: 320px;
    border-right: 1px solid #e5e7eb;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
.history-header[b-24mctarb9l] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

    .history-header .title[b-24mctarb9l] {
        font-weight: 600;
    }

    .history-header .actions[b-24mctarb9l] {
        display: flex;
        gap: 0.25rem;
    }

/* Search */
.history-search[b-24mctarb9l] {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* List area */
.history-list[b-24mctarb9l] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* Thread item */
.thread-item[b-24mctarb9l] {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

    .thread-item:hover[b-24mctarb9l] {
        background-color: #f3f4f6;
    }

    .thread-item.is-selected[b-24mctarb9l] {
        background-color: #e5e7eb;
    }

.ti-line1[b-24mctarb9l] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.ti-title[b-24mctarb9l] {
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ti-actions[b-24mctarb9l] {
    display: flex;
    gap: 0.25rem;
}

.ti-line2[b-24mctarb9l] {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

/* -------- Mobile slide-in behaviour -------- */

@media (max-width: 768px) {
    .history-wrapper[b-24mctarb9l] {
        position: fixed;
        top: 56px; /* height of your main navbar – adjust if needed */
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        pointer-events: none; /* let clicks through when closed */
    }

    .history-pane[b-24mctarb9l] {
        height: 100%;
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
        background-color: #f9fafb;
        transform: translateX(-100%);
        transition: transform 0.25s ease-out;
        pointer-events: auto; /* re-enable inside pane */
    }

        .history-pane.is-open[b-24mctarb9l] {
            transform: translateX(0);
        }
}
/* /Components/Pages/Chat/ChatSurface.razor.rz.scp.css */
/* Chat card – flex so DxAIChat can stretch nicely */
.chat-card[b-ffm48962i4] {
    display: flex;
    flex-direction: column;
    /* IMPORTANT: no fixed height here */
}

    .chat-card .card-body[b-ffm48962i4] {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0;
    }

/* Let DxAIChat fill what it needs but also be scrollable */
.my-chat[b-ffm48962i4] {
    display: flex;
    flex-direction: column;
}

    /* Try to stretch message area inside DxAIChat */
    .my-chat .dxai-chat-messages[b-ffm48962i4],
    .my-chat .dxai-chat-message-list[b-ffm48962i4],
    .my-chat .dxai-chat-scrollable[b-ffm48962i4] {
        flex: 1 1 auto;
        min-height: 0;
    }

/* ---------- Mobile: add extra space at bottom so it's never hidden ---------- */

@media (max-width: 768px) {
    /* Extra scroll area below the chat so Safari toolbar never covers the input */
    .chat-card[b-ffm48962i4] {
        margin-bottom: 5rem; /* tweak 4–6rem to taste */
    }

    /* A bit of padding inside as well (in case DevExpress input is sticky) */
    #mainChat[b-ffm48962i4] {
        padding-bottom: 1.5rem;
    }

    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .chat-card[b-ffm48962i4] {
            margin-bottom: calc(5rem + env(safe-area-inset-bottom));
        }
    }
}
/* /Components/Pages/Dashboard/Dashboard.razor.rz.scp.css */
/* ---------- Desktop / Tablet ---------- */

.dashboard-layout[b-gto8roalmu] {
    height: calc(100vh - 56px); /* adjust if you have a header height */
}

.dashboard-main-desktop[b-gto8roalmu] {
    height: 100%;
    background: #f3f4f6;
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}

/* ---------- Mobile Layout ---------- */

.dashboard-mobile[b-gto8roalmu] {
    position: relative;
    min-height: calc(100vh - 56px); /* adjust to your top navbar */
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
}

.dashboard-mobile-header[b-gto8roalmu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-title[b-gto8roalmu] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Hamburger button */
.sidebar-toggle-btn[b-gto8roalmu] {
    border: none;
    background: transparent;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .sidebar-toggle-btn .dx-icon[b-gto8roalmu] {
        font-size: 20px;
    }

/* Main content on mobile */
.dashboard-main-mobile[b-gto8roalmu] {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
}

/* ---------- Slide-in Sidebar ---------- */

.sidebar-overlay[b-gto8roalmu] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1040;
}

.sidebar-panel[b-gto8roalmu] {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    max-width: 80vw;
    background: #ffffff;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.25);
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

/* A small header inside the slide-in panel */
.sidebar-panel-header[b-gto8roalmu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
}

.sidebar-close-btn[b-gto8roalmu] {
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 0.1rem 0.25rem;
}

/* Let the Sidebar component use the rest of the height and scroll */
.sidebar-panel > *:not(.sidebar-panel-header)[b-gto8roalmu] {
    flex: 1;
    overflow-y: auto;
}

/* Optional: small animation (slide-in) */
.sidebar-panel[b-gto8roalmu] {
    transition: transform 0.2s ease-out;
}
/* /Components/Pages/Dashboard/GetStarted.razor.rz.scp.css */
/* Center the card vertically with breathing room */
.getstarted-wrapper[b-cay718cjif] {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: calc(80vh - 120px); /* ❤️ hero section height */
    /* 80vh = 80% of viewport height
       120px = adjusts for top navbar or tabs */
}

/* Card container: increase height and allow internal spacing */
.getstarted-card[b-cay718cjif] {
    width: 100%;
    max-width: 1100px;
    min-height: 420px; /* <--- Increase base height */
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    padding: 2.25rem 2rem;
    display: flex;
    align-items: center;
}

/* Grid inside the card */
.getstarted-grid[b-cay718cjif] {
    display: grid;
    gap: 2rem;
    align-items: center;
}

/* Image section */
.getstarted-image[b-cay718cjif] {
    text-align: center;
}

    .getstarted-image img[b-cay718cjif] {
        max-width: 100%;
        height: auto;
        max-height: 360px;
    }

/* Text content */
.getstarted-content[b-cay718cjif] {
    text-align: left;
}

.getstarted-title[b-cay718cjif] {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.getstarted-description[b-cay718cjif] {
    font-size: 0.98rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Buttons row */
.getstarted-actions[b-cay718cjif] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Let DevExpress buttons fill nicely */
.getstarted-btn-primary[b-cay718cjif],
.getstarted-btn-secondary[b-cay718cjif] {
    min-width: 130px;
}

/* ---------- Responsive tweaks ---------- */

/* Small devices: center text & make buttons full-width */
@media (max-width: 575.98px) {
    .getstarted-wrapper[b-cay718cjif] {
        padding: 1.5rem 0.75rem;
    }

    .getstarted-card[b-cay718cjif] {
        padding: 1.25rem 1rem;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    }

    .getstarted-grid[b-cay718cjif] {
        grid-template-columns: 1fr;
    }

    .getstarted-content[b-cay718cjif] {
        text-align: center;
    }

    .getstarted-title[b-cay718cjif] {
        font-size: 1.35rem;
    }

    .getstarted-actions[b-cay718cjif] {
        flex-direction: column;
        align-items: stretch;
    }

    .getstarted-btn-primary[b-cay718cjif],
    .getstarted-btn-secondary[b-cay718cjif] {
        width: 100%;
    }
}

/* Medium+ screens: 2-column layout */
@media (min-width: 576px) {
    .getstarted-grid[b-cay718cjif] {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }

    .getstarted-image[b-cay718cjif] {
        padding-right: 1rem;
    }
}

/* Large screens: slightly bigger title */
@media (min-width: 992px) {
    .getstarted-title[b-cay718cjif] {
        font-size: 1.8rem;
    }
}
/* /Components/Pages/Dashboard/PromptGeneraterForm.razor.rz.scp.css */
.prompt-form[b-xgp7nzfoon] {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem; /* ⬅ extra space so bottom isn't cut */
}

/* iPhone safe-area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .prompt-form[b-xgp7nzfoon] {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom));
    }
}

/* Header */
.prompt-header[b-xgp7nzfoon] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.prompt-title[b-xgp7nzfoon] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.prompt-delete-btn[b-xgp7nzfoon] {
    white-space: nowrap;
}

/* Form layout spacing */
.prompt-form-layout .dx-formlayout-item[b-xgp7nzfoon] {
    margin-bottom: 0.75rem;
}

.prompt-form-layout .dx-formlayout-caption[b-xgp7nzfoon] {
    font-weight: 500;
}

/* Generate button */
.prompt-actions[b-xgp7nzfoon] {
    text-align: left;
}

.prompt-generate-btn[b-xgp7nzfoon] {
    min-width: 140px;
}

/* Generated prompt block */
.prompt-output[b-xgp7nzfoon] {
    background: #eef2ff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid #e0e7ff;
}

    .prompt-output pre[b-xgp7nzfoon] {
        margin: 0 0 0.75rem 0;
        font-size: 0.95rem;
        white-space: pre-wrap;
        word-break: break-word;
        max-height: 260px;
        overflow: auto;
    }

.prompt-output-actions[b-xgp7nzfoon] {
    text-align: right;
}

/* Save block */
.prompt-save-block p[b-xgp7nzfoon] {
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    color: #4b5563;
}

.prompt-save-actions[b-xgp7nzfoon] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Popup max width on small screens */
.prompt-delete-popup .dxbl-popup-main[b-xgp7nzfoon] {
    max-width: 90vw;
    max-height: 80vh; /* ⬅ prevents cutoff */
}

/* Allow popup body to scroll if needed */
.prompt-delete-popup .dxbl-popup-content[b-xgp7nzfoon] {
    overflow-y: auto;
}

/* Mobile improvements */
@media (max-width: 575.98px) {
    .prompt-form[b-xgp7nzfoon] {
        padding: 0 0.5rem 5rem; /* ⬅ extra mobile padding */
    }

    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .prompt-form[b-xgp7nzfoon] {
            padding-bottom: calc(5rem + env(safe-area-inset-bottom));
        }
    }

    .prompt-header[b-xgp7nzfoon] {
        align-items: flex-start;
    }

    .prompt-actions[b-xgp7nzfoon],
    .prompt-output-actions[b-xgp7nzfoon] {
        text-align: left;
    }

    .prompt-save-actions[b-xgp7nzfoon] {
        flex-direction: column;
        align-items: stretch;
    }

        .prompt-save-actions .dxbs-button[b-xgp7nzfoon],
        .prompt-generate-btn[b-xgp7nzfoon] {
            width: 100%;
        }
}
/* /Components/Pages/Dashboard/Sidebar.razor.rz.scp.css */
.sidebar-wrapper[b-o6iklj48ht] {
    height: 100%;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    display: flex;
}

.sidebar-layout[b-o6iklj48ht] {
    width: 100%;
    height: 100%;
}

    /* Make header + search sticky and content scrollable */
    .sidebar-layout .dxbl-grid-layout-root[b-o6iklj48ht] {
        height: 100%;
        grid-template-rows: auto auto minmax(0, 1fr) !important;
    }

/* Header */
.sidebar-header[b-o6iklj48ht] {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.sidebar-header-title[b-o6iklj48ht] {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
}

/* Search row, stays under header */
.sidebar-search[b-o6iklj48ht] {
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    position: sticky;
    top: 48px; /* same as header height */
    z-index: 1;
}

/* Content area */
.sidebar-content[b-o6iklj48ht] {
    padding: 0.5rem 0.5rem 0.75rem 0.5rem;
    overflow-y: auto;
}

/* States */
.sidebar-loading[b-o6iklj48ht],
.sidebar-empty[b-o6iklj48ht] {
    font-size: 0.9rem;
    color: #9ca3af;
    padding: 0.75rem;
}

/* Optional subtle scrollbar tuning */
.sidebar-content[b-o6iklj48ht]::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content[b-o6iklj48ht]::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
}

/* Mobile: tighten padding */
@media (max-width: 575.98px) {
    .sidebar-header[b-o6iklj48ht] {
        padding: 0.5rem 0.65rem;
    }

    .sidebar-search[b-o6iklj48ht] {
        padding: 0.4rem 0.65rem;
    }

    .sidebar-header-title[b-o6iklj48ht] {
        font-size: 0.8rem;
    }
}
/* /Components/Pages/Index.razor.rz.scp.css */
[b-2qxsv37wl1] .welcome-gridlayout {
    margin: auto;
    width: auto;
    height: auto;
}

    [b-2qxsv37wl1] .welcome-gridlayout .dxbl-gridlayout-root {
        align-content: center;
        justify-content: center;
    }


[b-2qxsv37wl1] .title {
    text-align: center;
}

[b-2qxsv37wl1] .welcome-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

[b-2qxsv37wl1] .welcome-card {
    width: 26.25rem;
    height: 15rem;
    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: 1.5rem;
    text-decoration: none;
    position: relative;
}

    [b-2qxsv37wl1] .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-2qxsv37wl1] .welcome-card .welcome-card-img {
        width: 6.5rem;
        height: 6.5rem;
    }

    [b-2qxsv37wl1] .welcome-card .welcome-card-text {
        font-size: 1.75rem;
        font-weight: 600;
        letter-spacing: 0em;
        text-align: center;
        text-decoration: unset;
    }

[b-2qxsv37wl1] .icon-fill {
    fill: var(--bs-primary);
}

[b-2qxsv37wl1] .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;
}
/* /Components/Pages/Login/Login.razor.rz.scp.css */
/* Full viewport wrapper */
.login-wrapper[b-alnpnwx7ku] {
    height: 100vh;
    overflow-y: auto; /* Scroll if needed */
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    background: #f8f9fa;
}

/* Card container */
.login-container[b-alnpnwx7ku] {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: auto;
}

/* Center vertically on large screens */
@media (min-height: 720px) {
    .login-wrapper[b-alnpnwx7ku] {
        align-items: center;
    }
}

/* On shorter screens, align top for natural scroll */
@media (max-height: 719.98px) {
    .login-wrapper[b-alnpnwx7ku] {
        align-items: flex-start;
    }
}

/* Logo */
.login-container img[b-alnpnwx7ku] {
    max-height: 85px;
    width: auto;
}

.dxbs-form .form-label[b-alnpnwx7ku] {
    font-weight: 500;
    font-size: 0.93rem;
}

/* Small phones */
@media (max-width: 400px) {
    .login-container .btn[b-alnpnwx7ku] {
        font-size: 0.9rem;
        padding: 0.55rem 0.75rem;
    }
}
/* /Components/Pages/Login/Register.razor.rz.scp.css */
/* Outer viewport area */
.register-wrapper[b-90mqaiss06] {
    height: 100vh; /* full viewport height */
    overflow-y: auto; /* ⬅ if content is taller, this area scrolls */
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    background: #f8f9fa;
}

/* The card that holds the form */
.register-container[b-90mqaiss06] {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Center horizontally, vertical position handled by wrapper */
    margin: auto;
}

/* On taller screens (desktop, big laptops) – center vertically */
@media (min-height: 720px) {
    .register-wrapper[b-90mqaiss06] {
        align-items: center;
    }
}

/* On short screens (small laptops / landscape phones) – align to top */
@media (max-height: 719.98px) {
    .register-wrapper[b-90mqaiss06] {
        align-items: flex-start;
    }
}

/* Logo */
.register-container img[b-90mqaiss06] {
    max-height: 85px;
    width: auto;
}

/* Labels */
.dxbs-form .form-label[b-90mqaiss06] {
    font-weight: 500;
    font-size: 0.93rem;
}

/* Small phones – slightly smaller buttons */
@media (max-width: 400px) {
    .register-container .btn[b-90mqaiss06] {
        font-size: 0.9rem;
        padding: 0.55rem 0.75rem;
    }
}
