/* _content/mPromptLab.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout specific styles with new color palette */

.page-wrapper[b-k21r94ybf8] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.top-navigation[b-k21r94ybf8] {
    flex-shrink: 0;
    background: rgba(217, 221, 224, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(126, 136, 144, 0.25);
    box-shadow: 0 4px 24px rgba(42, 25, 16, 0.08);
}

.main-content[b-k21r94ybf8] {
    flex: 1;
    min-height: 0;
    background: linear-gradient(135deg,
        #F5F5F5 0%,
        rgba(217, 221, 224, 0.4) 50%,
        rgba(126, 136, 144, 0.1) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main-content[b-k21r94ybf8]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(217, 221, 224, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(126, 136, 144, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.content-area[b-k21r94ybf8] {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Ensure article fills available space for flex children */
.main-content > article[b-k21r94ybf8] {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: auto;
}

.navbar-dark.bg-gradient[b-k21r94ybf8] {
    background: linear-gradient(135deg,
        rgba(42, 25, 16, 0.95) 0%,
        rgba(102, 60, 16, 0.9) 100%) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand[b-k21r94ybf8] {
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: white !important;
    font-weight: 700;
    transition: all 0.2s ease;
}

.navbar-brand:hover[b-k21r94ybf8] {
    color: var(--color-pewter, #D9DDE0) !important;
    transform: translateX(3px);
}

.nav-link[b-k21r94ybf8] {
    font-weight: 500;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover[b-k21r94ybf8] {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    color: white !important;
}

.nav-link.active[b-k21r94ybf8] {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

/* Blazor Error UI */
#blazor-error-ui[b-k21r94ybf8] {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    bottom: 0;
    box-shadow: 0 -4px 24px rgba(42, 25, 16, 0.12);
    display: none;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 3px solid var(--color-primary, #663C10);
    color: var(--color-text-primary, #2A1910);
}

#blazor-error-ui .dismiss[b-k21r94ybf8] {
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary, rgba(42, 25, 16, 0.7));
    transition: color 0.2s ease;
}

#blazor-error-ui .dismiss:hover[b-k21r94ybf8] {
    color: var(--color-primary, #663C10);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-navigation[b-k21r94ybf8] {
        backdrop-filter: blur(16px) saturate(160%);
    }

    .main-content[b-k21r94ybf8]::before {
        opacity: 0.6;
    }
}
/* _content/mPromptLab.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* Navigation menu specific styles with new color palette */

.navbar-toggler[b-srzurhunz9] {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.navbar-toggler:hover[b-srzurhunz9] {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler:focus[b-srzurhunz9] {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    outline: none;
}

.navbar-toggler-icon[b-srzurhunz9] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link[b-srzurhunz9] {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.navbar-nav .nav-link[b-srzurhunz9]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-pewter, #D9DDE0), white);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.navbar-nav .nav-link:hover[b-srzurhunz9]::after {
    width: 70%;
}

.navbar-nav .nav-link.active[b-srzurhunz9]::after {
    width: 85%;
}

/* Dropdown menu styling */
.navbar-nav .dropdown-menu[b-srzurhunz9] {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(126, 136, 144, 0.25);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(42, 25, 16, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item[b-srzurhunz9] {
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
    color: var(--color-text-primary, #2A1910);
    font-weight: 500;
}

.navbar-nav .dropdown-item:hover[b-srzurhunz9] {
    background: rgba(126, 136, 144, 0.15);
    color: var(--color-primary, #663C10);
    transform: translateX(4px);
}

.navbar-nav .dropdown-item.active[b-srzurhunz9] {
    background: linear-gradient(135deg,
        var(--color-primary, #663C10) 0%,
        var(--color-primary-light, #8B5217) 100%);
    color: white;
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .navbar-nav[b-srzurhunz9] {
        padding-top: 1rem;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border-radius: 0.75rem;
        margin-top: 0.5rem;
        padding: 1rem;
    }

    .navbar-nav .nav-link[b-srzurhunz9] {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }

    .navbar-nav .nav-link[b-srzurhunz9]::after {
        display: none;
    }

    .navbar-nav .dropdown-menu[b-srzurhunz9] {
        background: rgba(217, 221, 224, 0.5);
        border: none;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1rem;
    }

    .navbar-nav .dropdown-item[b-srzurhunz9] {
        padding-left: 1.5rem;
    }
}

/* Animation for collapsible menu */
.navbar-collapse[b-srzurhunz9] {
    transition: all 0.3s ease-in-out;
}

.navbar-collapse.show[b-srzurhunz9],
.navbar-collapse.collapsing[b-srzurhunz9] {
    animation: slideDown-b-srzurhunz9 0.3s ease-out;
}

@keyframes slideDown-b-srzurhunz9 {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* _content/mPromptLab.Web/Components/Pages/Prompts/Test.razor.rz.scp.css */
/* Test page container - Create fixed viewport that fills parent, preventing article scrollbar */
.test-page-container[b-iyv0rmoz41] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

/* OpenAI-Inspired Layout */
.test-layout[b-iyv0rmoz41] {
    display: flex;
    flex: 1;
    gap: 0;
    background: #f9f9f9;
    overflow: hidden; /* Prevent any scrolling on the container */
    min-height: 0; /* Critical: allows flex item to shrink */
}

/* Left Sidebar - History */
.history-sidebar[b-iyv0rmoz41] {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.history-sidebar.collapsed[b-iyv0rmoz41] {
    width: 0;
    opacity: 0;
    border: none;
    overflow: hidden;
}

.history-header[b-iyv0rmoz41] {
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-header h6[b-iyv0rmoz41] {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Toggle History Button (in chat header) */
.btn-toggle-history[b-iyv0rmoz41] {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-toggle-history:hover[b-iyv0rmoz41] {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.btn-toggle-history:active[b-iyv0rmoz41] {
    background: #f3f4f6;
}

.btn-toggle-history i[b-iyv0rmoz41] {
    font-size: 0.875rem;
}

/* Show Sidebar Button (when collapsed) */
.btn-show-sidebar[b-iyv0rmoz41] {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-show-sidebar:hover[b-iyv0rmoz41] {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-show-sidebar i[b-iyv0rmoz41] {
    font-size: 1.125rem;
    color: #6b7280;
}

.btn-show-sidebar:hover i[b-iyv0rmoz41] {
    color: #3b82f6;
}

.history-list[b-iyv0rmoz41] {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.history-item[b-iyv0rmoz41] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.history-item:hover[b-iyv0rmoz41] {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.history-item.active[b-iyv0rmoz41] {
    background: #eff6ff;
    border-color: #3b82f6;
}

.history-item-header[b-iyv0rmoz41] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.history-item-model[b-iyv0rmoz41] {
    font-size: 0.813rem;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-status[b-iyv0rmoz41] {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.688rem;
    font-weight: 500;
}

.history-item-status.success[b-iyv0rmoz41] {
    background: #d1fae5;
    color: #065f46;
}

.history-item-status.failed[b-iyv0rmoz41] {
    background: #fee2e2;
    color: #991b1b;
}

.history-item-time[b-iyv0rmoz41] {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.history-item-preview[b-iyv0rmoz41] {
    font-size: 0.75rem;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 4px;
}

.history-item-meta[b-iyv0rmoz41] {
    display: flex;
    justify-content: space-between;
    font-size: 0.688rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* Center Area - Chat */
.chat-area[b-iyv0rmoz41] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    min-height: 0; /* Critical: prevents flex item from overflowing parent */
    max-height: 100%; /* Constrains the chat area to parent height */
}

.chat-header[b-iyv0rmoz41] {
    padding: 9px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Header stays fixed at top */
}

.chat-header h6[b-iyv0rmoz41] {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chat-messages[b-iyv0rmoz41] {
    flex: 1 1 auto; /* Allow it to grow and shrink, but scroll when content overflows */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    background: #f9fafb;
    min-height: 0; /* Critical: allows flex item to shrink below content size */
    max-height: 100%; /* Prevents expanding beyond available space */
}

.chat-messages[b-iyv0rmoz41]::-webkit-scrollbar {
    width: 8px;
}

.chat-messages[b-iyv0rmoz41]::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages[b-iyv0rmoz41]::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.chat-messages[b-iyv0rmoz41]::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Message Bubbles - OpenAI Style */
.message[b-iyv0rmoz41] {
    max-width: 800px;
    margin: 0 auto 24px;
}

.message-header[b-iyv0rmoz41] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.message-icon[b-iyv0rmoz41] {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.message-icon.user[b-iyv0rmoz41] {
    background: #19c37d;
    color: white;
}

.message-icon.assistant[b-iyv0rmoz41] {
    background: #ab68ff;
    color: white;
}

.message-label[b-iyv0rmoz41] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.btn-copy-message[b-iyv0rmoz41] {
    margin-left: auto;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
}

.btn-copy-message:hover[b-iyv0rmoz41] {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.btn-copy-message:active[b-iyv0rmoz41] {
    background: #f3f4f6;
}

.message-content[b-iyv0rmoz41] {
    margin-left: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-size: 0.938rem;
    line-height: 1.6;
    color: #374151;
}

.message-content pre[b-iyv0rmoz41] {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    color: #1f2937;
}

.message-meta[b-iyv0rmoz41] {
    margin-left: 40px;
    margin-top: 8px;
    display: flex;
    gap: 16px;
    font-size: 0.813rem;
    color: #6b7280;
}

.message-meta-item[b-iyv0rmoz41] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.empty-state[b-iyv0rmoz41] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
}

.empty-state i[b-iyv0rmoz41] {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h5[b-iyv0rmoz41] {
    font-size: 1.125rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.empty-state p[b-iyv0rmoz41] {
    font-size: 0.938rem;
    color: #9ca3af;
    margin: 0;
}

.streaming-cursor[b-iyv0rmoz41] {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #3b82f6;
    margin-left: 2px;
    animation: blink-b-iyv0rmoz41 1s infinite;
}

@keyframes blink-b-iyv0rmoz41 {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Right Sidebar - Settings */
.settings-sidebar[b-iyv0rmoz41] {
    width: 340px;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.settings-sidebar.collapsed[b-iyv0rmoz41] {
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

.settings-header[b-iyv0rmoz41] {
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h6[b-iyv0rmoz41] {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.settings-content[b-iyv0rmoz41] {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.settings-content[b-iyv0rmoz41]::-webkit-scrollbar {
    width: 6px;
}

.settings-content[b-iyv0rmoz41]::-webkit-scrollbar-track {
    background: transparent;
}

.settings-content[b-iyv0rmoz41]::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.settings-footer[b-iyv0rmoz41] {
    border-top: 1px solid #e5e5e5;
    padding: 16px;
    background: #fff;
}

.settings-group[b-iyv0rmoz41] {
    margin-bottom: 20px;
}

.settings-group:last-child[b-iyv0rmoz41] {
    margin-bottom: 0;
}

.settings-label[b-iyv0rmoz41] {
    display: block;
    font-size: 0.813rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.settings-label-optional[b-iyv0rmoz41] {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.75rem;
}

.settings-input[b-iyv0rmoz41],
.settings-select[b-iyv0rmoz41],
.settings-textarea[b-iyv0rmoz41] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    background: #fff;
}

.settings-input:focus[b-iyv0rmoz41],
.settings-select:focus[b-iyv0rmoz41],
.settings-textarea:focus[b-iyv0rmoz41] {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-input:disabled[b-iyv0rmoz41],
.settings-select:disabled[b-iyv0rmoz41],
.settings-textarea:disabled[b-iyv0rmoz41] {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.settings-textarea[b-iyv0rmoz41] {
    resize: vertical;
    min-height: 80px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.settings-help[b-iyv0rmoz41] {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

.settings-switch[b-iyv0rmoz41] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.settings-switch-label[b-iyv0rmoz41] {
    font-size: 0.875rem;
    color: #374151;
}

.switch-input[b-iyv0rmoz41] {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.switch-input.checked[b-iyv0rmoz41] {
    background: #10b981;
}

.switch-input.disabled[b-iyv0rmoz41] {
    opacity: 0.5;
    cursor: not-allowed;
}

.switch-input[b-iyv0rmoz41]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.switch-input.checked[b-iyv0rmoz41]::after {
    transform: translateX(20px);
}

.slider-container[b-iyv0rmoz41] {
    padding: 8px 0;
}

.slider-input[b-iyv0rmoz41] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-input[b-iyv0rmoz41]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    transition: all 0.15s ease;
}

.slider-input[b-iyv0rmoz41]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-input[b-iyv0rmoz41]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.slider-labels[b-iyv0rmoz41] {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.slider-labels span[b-iyv0rmoz41] {
    font-size: 0.688rem;
    color: #9ca3af;
}

.slider-value[b-iyv0rmoz41] {
    display: inline-block;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.813rem;
    font-weight: 600;
    color: #374151;
    margin-left: 8px;
}

.settings-tabs[b-iyv0rmoz41] {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 4px;
}

.settings-tab[b-iyv0rmoz41] {
    flex: 1;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 0.813rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.settings-tab:hover[b-iyv0rmoz41] {
    color: #374151;
}

.settings-tab.active[b-iyv0rmoz41] {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-run[b-iyv0rmoz41] {
    width: 100%;
    padding: 12px;
    background: #10a37f;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.938rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-run:hover:not(:disabled)[b-iyv0rmoz41] {
    background: #0d8c6d;
}

.btn-run:disabled[b-iyv0rmoz41] {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn-clear[b-iyv0rmoz41] {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
}

.btn-clear:hover:not(:disabled)[b-iyv0rmoz41] {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-clear:disabled[b-iyv0rmoz41] {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-settings-btn[b-iyv0rmoz41] {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 10;
}

.toggle-settings-btn:hover[b-iyv0rmoz41] {
    background: #f9fafb;
    border-color: #d1d5db;
}

.validation-error[b-iyv0rmoz41] {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 4px;
}

.validation-alert[b-iyv0rmoz41] {
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.813rem;
    color: #991b1b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-input-container[b-iyv0rmoz41] {
    padding: 16px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    flex-shrink: 0;
    width: 100%;
}

.chat-input-container .input-group[b-iyv0rmoz41] {
    margin-bottom: 0;
    display: flex;
    align-items: stretch;
}

.chat-input-container .input-group .btn-outline-secondary[b-iyv0rmoz41] {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    transition: all 0.15s ease;
}

.chat-input-container .input-group .btn-outline-secondary:hover[b-iyv0rmoz41] {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
}

.chat-input-container .input-group .form-control[b-iyv0rmoz41] {
    border-left: 0;
    border-right: 0;
}

.chat-input-container .input-group .btn-primary[b-iyv0rmoz41] {
    border-radius: 0 6px 6px 0;
    padding: 0.625rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-title-bar[b-iyv0rmoz41] {
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.breadcrumb[b-iyv0rmoz41] {
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.page-header-compact[b-iyv0rmoz41] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-compact h2[b-iyv0rmoz41] {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .settings-sidebar[b-iyv0rmoz41] {
        width: 300px;
    }
}

/* Image Action Buttons */
.btn-image-action[b-iyv0rmoz41] {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #374151;
}

.btn-image-action:hover[b-iyv0rmoz41] {
    background: #fff;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-image-action i[b-iyv0rmoz41] {
    font-size: 14px;
}

.image-container:hover .image-actions[b-iyv0rmoz41] {
    opacity: 1;
}

.image-actions[b-iyv0rmoz41] {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Image Generation Loading State */
.image-generation-loading[b-iyv0rmoz41] {
    margin-left: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.image-generation-icon[b-iyv0rmoz41] {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ab68ff 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow-b-iyv0rmoz41 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(171, 104, 255, 0.3);
}

.image-generation-icon i[b-iyv0rmoz41] {
    font-size: 32px;
    color: white;
}

@keyframes pulse-glow-b-iyv0rmoz41 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(171, 104, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(171, 104, 255, 0.5);
    }
}

.image-generation-text[b-iyv0rmoz41] {
    text-align: center;
}

.image-generation-title[b-iyv0rmoz41] {
    font-size: 0.938rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.image-generation-subtitle[b-iyv0rmoz41] {
    font-size: 0.813rem;
    color: #6b7280;
}

/* Image Placeholder with Shimmer Effect */
.image-placeholder[b-iyv0rmoz41] {
    width: 100%;
    max-width: 512px;
    aspect-ratio: 1;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer-b-iyv0rmoz41 2s infinite;
    position: relative;
    overflow: hidden;
}

.image-placeholder[b-iyv0rmoz41]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(171, 104, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes shimmer-b-iyv0rmoz41 {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Progress Dots Animation */
.progress-dots[b-iyv0rmoz41] {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.progress-dot[b-iyv0rmoz41] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ab68ff;
    animation: dot-bounce-b-iyv0rmoz41 1.4s infinite ease-in-out both;
}

.progress-dot:nth-child(1)[b-iyv0rmoz41] {
    animation-delay: -0.32s;
}

.progress-dot:nth-child(2)[b-iyv0rmoz41] {
    animation-delay: -0.16s;
}

@keyframes dot-bounce-b-iyv0rmoz41 {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Generated Image Display in Chat */
.chat-image-grid[b-iyv0rmoz41] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.chat-image-item[b-iyv0rmoz41] {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.chat-image-item:hover[b-iyv0rmoz41] {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chat-image-item img[b-iyv0rmoz41] {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-image-item:hover img[b-iyv0rmoz41] {
    transform: scale(1.02);
}

.chat-image-actions[b-iyv0rmoz41] {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chat-image-item:hover .chat-image-actions[b-iyv0rmoz41] {
    opacity: 1;
}

/* Image Generation Status Badge */
.image-generation-badge[b-iyv0rmoz41] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ab68ff 0%, #8b5cf6 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

.image-generation-badge i[b-iyv0rmoz41] {
    font-size: 12px;
}

@media (max-width: 992px) {
    .test-layout[b-iyv0rmoz41] {
        flex-direction: column;
        height: auto;
    }

    .history-sidebar[b-iyv0rmoz41] {
        width: 100%;
        max-height: 250px;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .history-sidebar.collapsed[b-iyv0rmoz41] {
        max-height: 0;
        padding: 0;
        border: none;
    }

    .btn-show-sidebar[b-iyv0rmoz41] {
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
    }

    .settings-sidebar[b-iyv0rmoz41] {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e5e5e5;
    }

    .settings-sidebar.collapsed[b-iyv0rmoz41] {
        display: none;
        width: 0;
    }

    .message[b-iyv0rmoz41] {
        max-width: 100%;
    }

    .image-actions[b-iyv0rmoz41] {
        opacity: 1;
    }

    .chat-image-actions[b-iyv0rmoz41] {
        opacity: 1;
    }

    .chat-image-grid[b-iyv0rmoz41] {
        grid-template-columns: 1fr;
    }

    /* Mobile attachment preview adjustments */
    .chat-attachments-preview[b-iyv0rmoz41] {
        padding: 10px 12px;
    }

    .chat-attachment-item[b-iyv0rmoz41] {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .attachment-name[b-iyv0rmoz41] {
        max-width: 120px;
    }

    .chat-input-container[b-iyv0rmoz41] {
        padding: 12px;
    }
}

/* File Upload Styles */
.file-upload-area[b-iyv0rmoz41] {
    position: relative;
    margin-bottom: 12px;
}

.file-upload-label[b-iyv0rmoz41] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.file-upload-label:hover[b-iyv0rmoz41] {
    border-color: #3b82f6;
    background: #eff6ff;
}

.file-upload-label i[b-iyv0rmoz41] {
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.file-upload-label span[b-iyv0rmoz41] {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.file-upload-label small[b-iyv0rmoz41] {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

.file-upload-input[b-iyv0rmoz41] {
    display: none;
}

.selected-files-list[b-iyv0rmoz41] {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.selected-file-item[b-iyv0rmoz41] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s ease;
}

.selected-file-item:last-child[b-iyv0rmoz41] {
    border-bottom: none;
}

.selected-file-item:hover[b-iyv0rmoz41] {
    background: #f9fafb;
}

.selected-file-item i[b-iyv0rmoz41] {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.file-info[b-iyv0rmoz41] {
    flex: 1;
    min-width: 0;
}

.file-name[b-iyv0rmoz41] {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size[b-iyv0rmoz41] {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.btn-remove-file[b-iyv0rmoz41] {
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-remove-file:hover[b-iyv0rmoz41] {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Chat Attachments Preview */
.chat-attachments-preview[b-iyv0rmoz41] {
    padding: 12px 16px;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    border: 1px solid #e5e7eb;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) inset;
}

.chat-attachment-item[b-iyv0rmoz41] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.813rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
}

.chat-attachment-item:hover[b-iyv0rmoz41] {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.chat-attachment-item i[b-iyv0rmoz41] {
    font-size: 1rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.attachment-name[b-iyv0rmoz41] {
    font-weight: 500;
    color: #111827;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-size[b-iyv0rmoz41] {
    color: #6b7280;
    font-size: 0.75rem;
    margin-left: 4px;
}

.btn-remove-attachment[b-iyv0rmoz41] {
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.15s ease;
    margin-left: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-remove-attachment:hover[b-iyv0rmoz41] {
    background: #fee2e2;
    color: #dc2626;
}

.btn-remove-attachment i[b-iyv0rmoz41] {
    font-size: 0.875rem;
}

.chat-file-attachment[b-iyv0rmoz41] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 8px;
}

.chat-file-attachment i[b-iyv0rmoz41] {
    font-size: 1.5rem;
    color: #6b7280;
}

.chat-file-attachment span[b-iyv0rmoz41] {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* Thinking Toggle Button in Chat Input */
.btn-thinking-toggle[b-iyv0rmoz41] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-color: #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    transition: all 0.15s ease;
}

.btn-thinking-toggle:hover:not(:disabled)[b-iyv0rmoz41] {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
}

.btn-thinking-toggle.active[b-iyv0rmoz41] {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.btn-thinking-toggle.active:hover:not(:disabled)[b-iyv0rmoz41] {
    background: #fde68a;
    border-color: #f59e0b;
}

.btn-thinking-toggle:disabled[b-iyv0rmoz41] {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-thinking-toggle i[b-iyv0rmoz41] {
    font-size: 1.125rem;
}

/* Configuration Panel - Floating Modal */
.config-panel-overlay[b-iyv0rmoz41] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn-b-iyv0rmoz41 0.2s ease;
}

@keyframes fadeIn-b-iyv0rmoz41 {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.config-panel[b-iyv0rmoz41] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    animation: slideIn-b-iyv0rmoz41 0.3s ease;
}

@keyframes slideIn-b-iyv0rmoz41 {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.config-panel-header[b-iyv0rmoz41] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.config-panel-header h5[b-iyv0rmoz41] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.btn-close-panel[b-iyv0rmoz41] {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-panel:hover[b-iyv0rmoz41] {
    background: #f3f4f6;
    color: #374151;
}

.btn-close-panel i[b-iyv0rmoz41] {
    font-size: 1.125rem;
}

.config-panel-content[b-iyv0rmoz41] {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.config-panel-content[b-iyv0rmoz41]::-webkit-scrollbar {
    width: 8px;
}

.config-panel-content[b-iyv0rmoz41]::-webkit-scrollbar-track {
    background: transparent;
}

.config-panel-content[b-iyv0rmoz41]::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.config-panel-content[b-iyv0rmoz41]::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Settings Actions (inside config panel) */
.settings-actions[b-iyv0rmoz41] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsive Config Panel */
@media (max-width: 768px) {
    .config-panel[b-iyv0rmoz41] {
        width: 95%;
        max-height: 90vh;
    }

    .config-panel-header[b-iyv0rmoz41] {
        padding: 16px 20px;
    }

    .config-panel-content[b-iyv0rmoz41] {
        padding: 20px;
    }
}
/* _content/mPromptLab.Web/Components/Shared/Common/ToastContainer.razor.rz.scp.css */
/* Toast notifications with new color palette and transparency */

.toast-container[b-jlni990ybx] {
    z-index: 9999;
    pointer-events: none;
}

.toast[b-jlni990ybx] {
    pointer-events: auto;
    min-width: 320px;
    max-width: 420px;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(34, 63, 71, 0.15);
    border-radius: 0.75rem;
    border: 1px solid rgba(146, 184, 255, 0.2);
    animation: slideIn-b-jlni990ybx 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.toast:hover[b-jlni990ybx] {
    box-shadow: 0 12px 40px rgba(34, 63, 71, 0.2);
    transform: translateY(-2px);
}

@keyframes slideIn-b-jlni990ybx {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-header[b-jlni990ybx] {
    padding: 1rem;
    border-bottom: 1px solid rgba(146, 184, 255, 0.15);
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    background: rgba(220, 245, 255, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 600;
    color: var(--color-text-primary, #223F47);
}

.toast-body[b-jlni990ybx] {
    padding: 1rem;
    word-wrap: break-word;
    color: var(--color-text-primary, #223F47);
    line-height: 1.5;
}

/* Success Toast */
.toast-success[b-jlni990ybx] {
    border-left: 4px solid #28a745;
}

.toast-success .toast-header[b-jlni990ybx] {
    background: linear-gradient(90deg,
        rgba(40, 167, 69, 0.1) 0%,
        rgba(220, 245, 255, 0.3) 100%);
}

/* Error Toast */
.toast-error[b-jlni990ybx] {
    border-left: 4px solid #dc3545;
}

.toast-error .toast-header[b-jlni990ybx] {
    background: linear-gradient(90deg,
        rgba(220, 53, 69, 0.1) 0%,
        rgba(220, 245, 255, 0.3) 100%);
}

/* Warning Toast */
.toast-warning[b-jlni990ybx] {
    border-left: 4px solid #ffc107;
}

.toast-warning .toast-header[b-jlni990ybx] {
    background: linear-gradient(90deg,
        rgba(255, 193, 7, 0.1) 0%,
        rgba(220, 245, 255, 0.3) 100%);
}

/* Info Toast */
.toast-info[b-jlni990ybx] {
    border-left: 4px solid var(--color-primary, #198CC1);
}

.toast-info .toast-header[b-jlni990ybx] {
    background: linear-gradient(90deg,
        rgba(25, 140, 193, 0.1) 0%,
        rgba(220, 245, 255, 0.3) 100%);
}

/* Close button styling */
.btn-close[b-jlni990ybx] {
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-close:hover[b-jlni990ybx] {
    opacity: 1;
    transform: scale(1.1);
}

.btn-close-white[b-jlni990ybx] {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.btn-close-dark[b-jlni990ybx] {
    filter: brightness(0) saturate(100%) invert(21%) sepia(28%) saturate(1073%) hue-rotate(160deg) brightness(95%) contrast(91%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .toast[b-jlni990ybx] {
        min-width: 280px;
        max-width: calc(100vw - 2rem);
        margin-bottom: 0.5rem;
    }

    .toast-header[b-jlni990ybx],
    .toast-body[b-jlni990ybx] {
        padding: 0.875rem;
    }
}

/* Animation for toast dismissal */
@keyframes slideOut-b-jlni990ybx {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast.hiding[b-jlni990ybx] {
    animation: slideOut-b-jlni990ybx 0.3s ease-out forwards;
}
/* _content/mPromptLab.Web/Components/Shared/VariableManager.razor.rz.scp.css */
/* Variable Manager - Updated with new color palette */

/* Variable Manager Container */
.variable-manager[b-ljnnbyzs8d] {
    width: 100%;
}

/* Template Preview Section */
.template-preview-section[b-ljnnbyzs8d] {
    margin-bottom: 1rem;
    border-radius: var(--radius-lg, 0.75rem);
    overflow: hidden;
    border: 1px solid rgba(146, 184, 255, 0.25);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(34, 63, 71, 0.06);
}

.template-preview-header[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(to bottom,
        rgba(220, 245, 255, 0.6),
        rgba(220, 245, 255, 0.4));
    border-bottom: 1px solid rgba(146, 184, 255, 0.25);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary, #223F47);
}

.template-preview-header i[b-ljnnbyzs8d] {
    font-size: 1rem;
    color: var(--color-primary, #198CC1);
}

.template-preview-hint[b-ljnnbyzs8d] {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted, rgba(34, 63, 71, 0.5));
    font-style: italic;
}

.template-preview-content[b-ljnnbyzs8d] {
    padding: 1rem;
    background: rgba(220, 245, 255, 0.15);
    max-height: 220px;
    overflow-y: auto;
    font-family: var(--font-family-mono, 'SF Mono', 'Monaco', 'Consolas', monospace);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-primary, #223F47);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Scrollbar styling */
.template-preview-content[b-ljnnbyzs8d]::-webkit-scrollbar {
    width: 10px;
}

.template-preview-content[b-ljnnbyzs8d]::-webkit-scrollbar-track {
    background: rgba(220, 245, 255, 0.3);
    border-radius: 5px;
}

.template-preview-content[b-ljnnbyzs8d]::-webkit-scrollbar-thumb {
    background: rgba(146, 184, 255, 0.5);
    border-radius: 5px;
}

.template-preview-content[b-ljnnbyzs8d]::-webkit-scrollbar-thumb:hover {
    background: var(--color-cornflower, #92B8FF);
}

/* Clickable Variables in Template */
[b-ljnnbyzs8d] .clickable-variable {
    color: var(--color-primary, #198CC1);
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm, 0.375rem);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    background: rgba(146, 184, 255, 0.15);
    border: 1px solid rgba(25, 140, 193, 0.25);
}

[b-ljnnbyzs8d] .clickable-variable:hover {
    background: rgba(146, 184, 255, 0.25);
    border-color: var(--color-primary, #198CC1);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(25, 140, 193, 0.25);
}

[b-ljnnbyzs8d] .clickable-variable:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(25, 140, 193, 0.2);
}

/* Header */
.variable-manager-header[b-ljnnbyzs8d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.variable-manager-label[b-ljnnbyzs8d] {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary, #223F47);
    margin: 0;
}

.btn-add-variable[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(146, 184, 255, 0.3);
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary, #223F47);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-variable:hover:not(:disabled)[b-ljnnbyzs8d] {
    background: rgba(146, 184, 255, 0.1);
    border-color: var(--color-primary, #198CC1);
    color: var(--color-primary, #198CC1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 140, 193, 0.15);
}

.btn-add-variable:disabled[b-ljnnbyzs8d] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add-variable i[b-ljnnbyzs8d] {
    font-size: 1rem;
}

/* Validation Error */
.variable-validation-error[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.875rem;
    color: #991b1b;
    margin-bottom: 1rem;
}

.variable-validation-error i[b-ljnnbyzs8d] {
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Empty State */
.variable-empty-state[b-ljnnbyzs8d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background: rgba(220, 245, 255, 0.2);
    border: 2px dashed rgba(146, 184, 255, 0.4);
    border-radius: var(--radius-lg, 0.75rem);
    text-align: center;
}

.variable-empty-state i[b-ljnnbyzs8d] {
    font-size: 3rem;
    color: var(--color-cornflower, #92B8FF);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.variable-empty-state p[b-ljnnbyzs8d] {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary, #223F47);
    margin: 0 0 0.5rem 0;
}

.variable-empty-state small[b-ljnnbyzs8d] {
    font-size: 0.875rem;
    color: var(--color-text-secondary, rgba(34, 63, 71, 0.7));
}

/* Variable List */
.variable-list[b-ljnnbyzs8d] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Variable Item */
.variable-item[b-ljnnbyzs8d] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(220, 245, 255, 0.2);
    border: 1px solid rgba(146, 184, 255, 0.25);
    border-radius: var(--radius-lg, 0.75rem);
    transition: all 0.2s ease;
}

.variable-item:hover[b-ljnnbyzs8d] {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(146, 184, 255, 0.4);
    box-shadow: 0 2px 8px rgba(34, 63, 71, 0.08);
    transform: translateY(-1px);
}

.variable-name[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary, #223F47);
}

.variable-name i[b-ljnnbyzs8d] {
    font-size: 1rem;
    color: var(--color-primary, #198CC1);
}

.variable-name span[b-ljnnbyzs8d] {
    font-family: var(--font-family-mono, 'SF Mono', 'Monaco', 'Consolas', monospace);
}

.variable-badge[b-ljnnbyzs8d] {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm, 0.375rem);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.variable-badge.template[b-ljnnbyzs8d] {
    background: rgba(146, 184, 255, 0.2);
    color: var(--color-primary, #198CC1);
    border: 1px solid rgba(25, 140, 193, 0.3);
}

.variable-badge.custom[b-ljnnbyzs8d] {
    background: rgba(255, 193, 7, 0.15);
    color: #92400e;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.variable-input-group[b-ljnnbyzs8d] {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.variable-input[b-ljnnbyzs8d] {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(146, 184, 255, 0.3);
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text-primary, #223F47);
    transition: all 0.2s ease;
}

.variable-input:focus[b-ljnnbyzs8d] {
    outline: none;
    border-color: var(--color-primary, #198CC1);
    box-shadow: 0 0 0 4px rgba(25, 140, 193, 0.1);
    background: white;
}

.variable-input:disabled[b-ljnnbyzs8d] {
    background: rgba(220, 245, 255, 0.2);
    color: var(--color-text-muted, rgba(34, 63, 71, 0.5));
    cursor: not-allowed;
}

.variable-input[b-ljnnbyzs8d]::placeholder {
    color: var(--color-text-muted, rgba(34, 63, 71, 0.5));
}

.btn-remove-variable[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(146, 184, 255, 0.3);
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-secondary, rgba(34, 63, 71, 0.7));
    flex-shrink: 0;
}

.btn-remove-variable:hover:not(:disabled)[b-ljnnbyzs8d] {
    background: rgba(220, 53, 69, 0.08);
    border-color: #ef4444;
    color: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.btn-remove-variable:disabled[b-ljnnbyzs8d] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-remove-variable i[b-ljnnbyzs8d] {
    font-size: 0.9375rem;
}

/* Add Variable Dialog */
.variable-add-dialog[b-ljnnbyzs8d] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 63, 71, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: fadeIn-b-ljnnbyzs8d 0.2s ease;
    padding: 1rem;
}

@keyframes fadeIn-b-ljnnbyzs8d {
    from { opacity: 0; }
    to { opacity: 1; }
}

.variable-add-content[b-ljnnbyzs8d] {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(146, 184, 255, 0.3);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: 0 20px 50px rgba(34, 63, 71, 0.2);
    max-width: 480px;
    width: 100%;
    animation: slideUp-b-ljnnbyzs8d 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp-b-ljnnbyzs8d {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.variable-add-header[b-ljnnbyzs8d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(146, 184, 255, 0.25);
    background: rgba(220, 245, 255, 0.3);
}

.variable-add-header h6[b-ljnnbyzs8d] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary, #223F47);
}

.btn-close-dialog[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-md, 0.5rem);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-secondary, rgba(34, 63, 71, 0.7));
}

.btn-close-dialog:hover[b-ljnnbyzs8d] {
    background: rgba(146, 184, 255, 0.15);
    color: var(--color-text-primary, #223F47);
}

.variable-add-body[b-ljnnbyzs8d] {
    padding: 1.5rem;
}

.form-label-small[b-ljnnbyzs8d] {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary, #223F47);
    margin-bottom: 0.5rem;
}

.variable-dialog-input[b-ljnnbyzs8d] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(146, 184, 255, 0.3);
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.9375rem;
    font-family: var(--font-family-mono, 'SF Mono', 'Monaco', 'Consolas', monospace);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text-primary, #223F47);
    transition: all 0.2s ease;
}

.variable-dialog-input:focus[b-ljnnbyzs8d] {
    outline: none;
    border-color: var(--color-primary, #198CC1);
    box-shadow: 0 0 0 4px rgba(25, 140, 193, 0.1);
    background: white;
}

.add-dialog-error[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.875rem;
    color: #991b1b;
}

.add-dialog-error i[b-ljnnbyzs8d] {
    font-size: 1rem;
    flex-shrink: 0;
}

.variable-add-footer[b-ljnnbyzs8d] {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(146, 184, 255, 0.25);
    justify-content: flex-end;
    background: rgba(220, 245, 255, 0.15);
}

.btn-dialog-cancel[b-ljnnbyzs8d],
.btn-dialog-add[b-ljnnbyzs8d] {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-dialog-cancel[b-ljnnbyzs8d] {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(146, 184, 255, 0.3);
    color: var(--color-text-primary, #223F47);
}

.btn-dialog-cancel:hover[b-ljnnbyzs8d] {
    background: rgba(146, 184, 255, 0.1);
    border-color: var(--color-primary, #198CC1);
}

.btn-dialog-add[b-ljnnbyzs8d] {
    background: linear-gradient(135deg,
        var(--color-primary, #198CC1) 0%,
        var(--color-cornflower, #92B8FF) 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(25, 140, 193, 0.25);
}

.btn-dialog-add:hover:not(:disabled)[b-ljnnbyzs8d] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 140, 193, 0.3);
}

.btn-dialog-add:disabled[b-ljnnbyzs8d] {
    background: rgba(146, 184, 255, 0.3);
    color: var(--color-text-muted, rgba(34, 63, 71, 0.5));
    cursor: not-allowed;
    box-shadow: none;
}

/* Highlight Animation */
.variable-input.variable-highlight[b-ljnnbyzs8d] {
    animation: highlight-pulse-b-ljnnbyzs8d 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1;
}

.variable-item.variable-highlight-container[b-ljnnbyzs8d] {
    animation: container-pulse-b-ljnnbyzs8d 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1;
}

@keyframes highlight-pulse-b-ljnnbyzs8d {
    0% {
        border-color: var(--color-primary, #198CC1);
        box-shadow: 0 0 0 4px rgba(25, 140, 193, 0.2);
    }
    50% {
        border-color: #10b981;
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.3);
    }
    100% {
        border-color: var(--color-primary, #198CC1);
        box-shadow: 0 0 0 4px rgba(25, 140, 193, 0.2);
    }
}

@keyframes container-pulse-b-ljnnbyzs8d {
    0% {
        background: rgba(255, 255, 255, 0.9);
        border-color: var(--color-primary, #198CC1);
        box-shadow: 0 2px 8px rgba(25, 140, 193, 0.15);
    }
    50% {
        background: rgba(220, 245, 255, 0.5);
        border-color: #10b981;
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
    }
    100% {
        background: rgba(255, 255, 255, 0.9);
        border-color: var(--color-primary, #198CC1);
        box-shadow: 0 2px 8px rgba(25, 140, 193, 0.15);
    }
}

/* Smooth scroll behavior */
.variable-item[b-ljnnbyzs8d] {
    scroll-margin-top: 24px;
}

/* Enhanced focus state */
.variable-input:focus[b-ljnnbyzs8d] {
    outline: none;
    border-color: var(--color-primary, #198CC1);
    box-shadow: 0 0 0 4px rgba(25, 140, 193, 0.15);
}

/* Help Section */
.help-section[b-ljnnbyzs8d] {
    margin-bottom: 1rem;
    border-radius: var(--radius-lg, 0.75rem);
    border: 1px solid rgba(146, 184, 255, 0.3);
    background: linear-gradient(to bottom,
        rgba(220, 245, 255, 0.4),
        rgba(220, 245, 255, 0.2));
    overflow: hidden;
}

.help-header[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.help-header:hover[b-ljnnbyzs8d] {
    background: rgba(255, 255, 255, 0.6);
}

.help-title[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary, #198CC1);
}

.help-title i[b-ljnnbyzs8d] {
    font-size: 1.125rem;
}

.help-toggle[b-ljnnbyzs8d] {
    color: var(--color-primary, #198CC1);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-content[b-ljnnbyzs8d] {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(146, 184, 255, 0.25);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-primary, #223F47);
}

.help-example[b-ljnnbyzs8d] {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(220, 245, 255, 0.2);
    border: 1px solid rgba(146, 184, 255, 0.25);
    border-radius: var(--radius-md, 0.5rem);
}

.help-example-title[b-ljnnbyzs8d] {
    font-weight: 600;
    color: var(--color-text-primary, #223F47);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.help-example-before[b-ljnnbyzs8d],
.help-example-after[b-ljnnbyzs8d] {
    font-family: var(--font-family-mono, 'SF Mono', 'Monaco', 'Consolas', monospace);
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm, 0.375rem);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.help-example-before[b-ljnnbyzs8d] {
    background: rgba(255, 193, 7, 0.15);
    color: #92400e;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.help-example-after[b-ljnnbyzs8d] {
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.help-example-arrow[b-ljnnbyzs8d] {
    display: block;
    text-align: center;
    color: var(--color-primary, #198CC1);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.help-action-btn[b-ljnnbyzs8d] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg,
        var(--color-primary, #198CC1) 0%,
        var(--color-cornflower, #92B8FF) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.75rem;
    box-shadow: 0 2px 8px rgba(25, 140, 193, 0.25);
}

.help-action-btn:hover[b-ljnnbyzs8d] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 140, 193, 0.3);
}

/* Insert Variable Helper Dialog */
.insert-helper-dialog[b-ljnnbyzs8d] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 63, 71, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: fadeIn-b-ljnnbyzs8d 0.2s ease;
    padding: 1rem;
}

.insert-helper-content[b-ljnnbyzs8d] {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(146, 184, 255, 0.3);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: 0 20px 50px rgba(34, 63, 71, 0.2);
    max-width: 520px;
    width: 100%;
    animation: slideUp-b-ljnnbyzs8d 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.insert-helper-header[b-ljnnbyzs8d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(146, 184, 255, 0.25);
    background: rgba(220, 245, 255, 0.3);
}

.insert-helper-header h6[b-ljnnbyzs8d] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary, #223F47);
}

.insert-helper-body[b-ljnnbyzs8d] {
    padding: 1.5rem;
}

.insert-helper-instruction[b-ljnnbyzs8d] {
    font-size: 0.9375rem;
    color: var(--color-text-secondary, rgba(34, 63, 71, 0.7));
    margin-bottom: 1rem;
    line-height: 1.6;
}

.insert-helper-input[b-ljnnbyzs8d] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(146, 184, 255, 0.3);
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.9375rem;
    font-family: var(--font-family-mono, 'SF Mono', 'Monaco', 'Consolas', monospace);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text-primary, #223F47);
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
}

.insert-helper-input:focus[b-ljnnbyzs8d] {
    outline: none;
    border-color: var(--color-primary, #198CC1);
    box-shadow: 0 0 0 4px rgba(25, 140, 193, 0.1);
    background: white;
}

.insert-helper-preview-label[b-ljnnbyzs8d] {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary, #223F47);
    margin-bottom: 0.75rem;
}

.insert-helper-preview-box[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(220, 245, 255, 0.25);
    border: 2px dashed rgba(146, 184, 255, 0.4);
    border-radius: var(--radius-md, 0.5rem);
    margin-bottom: 1rem;
}

.insert-helper-preview-text[b-ljnnbyzs8d] {
    flex: 1;
    font-family: var(--font-family-mono, 'SF Mono', 'Monaco', 'Consolas', monospace);
    font-size: 0.9375rem;
    color: var(--color-text-primary, #223F47);
    font-weight: 600;
}

.btn-copy-variable[b-ljnnbyzs8d] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary, #198CC1);
    color: white;
    border: none;
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy-variable:hover:not(:disabled)[b-ljnnbyzs8d] {
    background: #1579a8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 140, 193, 0.3);
}

.btn-copy-variable:disabled[b-ljnnbyzs8d] {
    background: rgba(146, 184, 255, 0.3);
    color: var(--color-text-muted, rgba(34, 63, 71, 0.5));
    cursor: not-allowed;
}

.btn-copy-variable.copied[b-ljnnbyzs8d] {
    background: #10b981;
}

.insert-helper-instructions[b-ljnnbyzs8d] {
    font-size: 0.875rem;
    color: var(--color-text-secondary, rgba(34, 63, 71, 0.7));
    line-height: 1.6;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #f59e0b;
    border-radius: var(--radius-sm, 0.375rem);
}

.insert-helper-footer[b-ljnnbyzs8d] {
    display: flex;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(146, 184, 255, 0.25);
    background: rgba(220, 245, 255, 0.15);
}

.btn-helper-done[b-ljnnbyzs8d] {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg,
        var(--color-primary, #198CC1) 0%,
        var(--color-cornflower, #92B8FF) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(25, 140, 193, 0.25);
}

.btn-helper-done:hover[b-ljnnbyzs8d] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 140, 193, 0.3);
}

/* ============================================
   Mobile & Tablet Responsive Design
   ============================================ */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .template-preview-content[b-ljnnbyzs8d] {
        max-height: 180px;
        font-size: 0.8125rem;
    }

    .variable-add-content[b-ljnnbyzs8d],
    .insert-helper-content[b-ljnnbyzs8d] {
        max-width: 90%;
    }

    .variable-input-group[b-ljnnbyzs8d] {
        gap: 0.5rem;
    }

    .btn-remove-variable[b-ljnnbyzs8d] {
        min-width: 40px;
        height: 40px;
    }
}

/* Mobile devices (< 768px) */
@media (max-width: 767px) {
    .variable-add-content[b-ljnnbyzs8d],
    .insert-helper-content[b-ljnnbyzs8d] {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: var(--radius-md, 0.5rem);
    }

    .variable-add-header[b-ljnnbyzs8d],
    .insert-helper-header[b-ljnnbyzs8d] {
        padding: 1rem;
    }

    .variable-add-header h6[b-ljnnbyzs8d],
    .insert-helper-header h6[b-ljnnbyzs8d] {
        font-size: 1rem;
    }

    .variable-add-body[b-ljnnbyzs8d],
    .insert-helper-body[b-ljnnbyzs8d] {
        padding: 1rem;
    }

    .variable-add-footer[b-ljnnbyzs8d],
    .insert-helper-footer[b-ljnnbyzs8d] {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .btn-dialog-cancel[b-ljnnbyzs8d],
    .btn-dialog-add[b-ljnnbyzs8d],
    .btn-helper-done[b-ljnnbyzs8d] {
        flex: 1;
        justify-content: center;
    }

    .variable-item[b-ljnnbyzs8d] {
        padding: 0.875rem;
    }

    .variable-name[b-ljnnbyzs8d] {
        font-size: 0.875rem;
    }

    .variable-input[b-ljnnbyzs8d] {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    .btn-remove-variable[b-ljnnbyzs8d] {
        min-width: 40px;
        height: 40px;
    }

    .template-preview-hint[b-ljnnbyzs8d] {
        display: none;
    }

    .template-preview-content[b-ljnnbyzs8d] {
        font-size: 0.8125rem;
        padding: 0.875rem;
        max-height: 160px;
    }

    .help-content[b-ljnnbyzs8d] {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .help-example[b-ljnnbyzs8d] {
        padding: 0.875rem;
    }

    /* Stack buttons on very small screens */
    .variable-manager-header[b-ljnnbyzs8d] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .btn-add-variable[b-ljnnbyzs8d] {
        width: 100%;
        justify-content: center;
    }

    /* Adjust animation intensity for mobile */
    @keyframes highlight-pulse-b-ljnnbyzs8d {
        0% {
            border-color: var(--color-primary, #198CC1);
            box-shadow: 0 0 0 3px rgba(25, 140, 193, 0.15);
        }
        50% {
            border-color: #10b981;
            box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
        }
        100% {
            border-color: var(--color-primary, #198CC1);
            box-shadow: 0 0 0 3px rgba(25, 140, 193, 0.15);
        }
    }
}

/* Extra small mobile devices (< 480px) */
@media (max-width: 479px) {
    .variable-dialog-input[b-ljnnbyzs8d],
    .insert-helper-input[b-ljnnbyzs8d] {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }

    .variable-input-group[b-ljnnbyzs8d] {
        flex-direction: column;
    }

    .btn-remove-variable[b-ljnnbyzs8d] {
        width: 100%;
        height: 40px;
    }

    .insert-helper-preview-box[b-ljnnbyzs8d] {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-copy-variable[b-ljnnbyzs8d] {
        width: 100%;
        justify-content: center;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-add-variable[b-ljnnbyzs8d],
    .btn-remove-variable[b-ljnnbyzs8d],
    .btn-dialog-cancel[b-ljnnbyzs8d],
    .btn-dialog-add[b-ljnnbyzs8d],
    .btn-close-dialog[b-ljnnbyzs8d],
    .btn-copy-variable[b-ljnnbyzs8d],
    .btn-helper-done[b-ljnnbyzs8d],
    .help-action-btn[b-ljnnbyzs8d] {
        min-height: 44px;
    }

    .variable-input[b-ljnnbyzs8d],
    .variable-dialog-input[b-ljnnbyzs8d],
    .insert-helper-input[b-ljnnbyzs8d] {
        min-height: 44px;
    }
}
