/* TEMP CODE: Chat interface for the dummy chat */

/* ── Log in / accounts dropdown ─────────────────────────────────────────── */

/* Wrapper provides the positioning context */
.auth-dropdown-wrapper {
    position: relative;
    display: inline-flex;
}

/* Trigger button */
.auth-btn {
    gap: 0.375rem;
    position: relative;
}

.auth-btn .auth-chevron {
    transition: transform 0.18s ease;
    flex-shrink: 0;
}

.auth-btn[aria-expanded="true"] .auth-chevron {
    transform: rotate(180deg);
}

/* Small green dot on the trigger when at least one service is connected */
.auth-connected-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.auth-connected-dot[hidden] {
    display: none;
}

/* Dropdown panel */
.auth-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    animation: authDropdownIn 0.15s ease;
    overflow: hidden;
    padding: 0.5rem;
}

@keyframes authDropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);     }
}

.auth-dropdown[hidden] {
    display: none;
}

/* Section heading */
.auth-dropdown-heading {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.625rem 0.5rem;
}

/* ── Service row ──────────────────────────────────────────────────────────── */

.auth-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.625rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.auth-service-row:hover {
    background: #f8fafc;
}

/* Left side: logo + name + status */
.auth-service-identity {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.auth-service-logo {
    flex-shrink: 0;
}

.auth-service-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.auth-service-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.2;
}

.auth-service-status-label {
    font-size: 0.725rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

/* Green status label when connected */
.auth-service-row[data-connected="true"] .auth-service-status-label {
    color: #16a34a;
}

/* Right side: action button */
.auth-service-action-btn {
    flex-shrink: 0;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    /* Default: "Connect" */
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.auth-service-action-btn:hover {
    background: #5a67d8;
    border-color: #5a67d8;
}

/* "Disconnect" state */
.auth-service-row[data-connected="true"] .auth-service-action-btn {
    background: transparent;
    color: #e53e3e;
    border-color: rgba(229, 62, 62, 0.35);
}

.auth-service-row[data-connected="true"] .auth-service-action-btn:hover {
    background: #fef2f2;
    border-color: #e53e3e;
}

/* ── Toast notifications ──────────────────────────────────────────────────── */

.google-auth-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toastFadeIn 0.25s ease;
    white-space: nowrap;
}

.google-auth-toast.success {
    background: #e6f4ea;
    color: #1e6e3c;
    border: 1px solid #a8d5b5;
}

.google-auth-toast.error {
    background: #fce8e6;
    color: #b31412;
    border: 1px solid #f5b6b4;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0);   }
}

/* ─────────────────────────────────────────────────────────────────────────── */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f2ff 100%);
    color: #333;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
    flex-shrink: 0; /* Prevent header from shrinking */
    position: sticky;
    top: 0;
}

.header-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Darker secondary buttons in the header to match hero chips */
.header .btn-secondary {
    background: #e2e8f0;
    color: #1a202c;
    border-color: #cbd5e0;
}

.header .btn-secondary:hover:not(:disabled) {
    background: #cbd5e0;
    border-color: #a0aec0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.scroll-to-bottom-btn {
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #666666ca;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-to-bottom-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-bottom-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.scroll-to-bottom-btn svg {
    width: 16px;
    height: 16px;
}

/* Hero section */
.hero-section {
    text-align: center;
    padding: 3.5rem 1.5rem 2rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

.hero-card {
    max-width: 720px;
    width: 100%;
    padding: 2.5rem 3rem;
    border-radius: 28px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
        0 26px 80px rgba(15, 23, 42, 0.20),
        0 0 0 1px rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(18px);
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 1rem;
}

.hero-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.hero-example {
    border: 1px solid #cbd5e0;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: #e2e8f0;
    color: #1a202c;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hero-example:hover {
    background: #cbd5e0;
    border-color: #a0aec0;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.hero-example:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.hero-section.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #2d3748;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-section p {
    font-size: 1.125rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* Main chat container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
    padding-right: 2rem;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 0;
}

@media (orientation: landscape) and (max-height: 500px) {
    .chat-container {
        overflow-y: auto;
    }

    .hero-section {
        padding: 1.25rem 1rem 1rem;
    }

    .hero-card {
        padding: 1.25rem 1.75rem;
        border-radius: 16px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-section p {
        font-size: 0.875rem;
    }

    .hero-subtitle {
        margin-bottom: 0.5rem;
    }

    .hero-examples {
        gap: 0.5rem;
        margin-top: 0.25rem;
    }

    .hero-example {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
}

/* Messages area */
.messages-area {
    flex: 1;
    display: none;
    opacity: 0;
    justify-content: center;
    transition: all 0.3s ease;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    width: 100%;
    position: relative;
}

.messages-area::-webkit-scrollbar {
    display: none; 
}

.messages-area.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.messages-list {
    display: flex;
    width: 100%;
    max-width: 800px;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1rem 1rem 1rem;
    min-height: min-content;
}

/* Message bubbles */
.message {
    max-width: 85%;
    animation: messageSlideIn 0.3s ease-out;
}

/* Allow messages containing any widget to extend to full width */
.message:has([data-widget]) {
    max-width: 100%;
    width: 100%;
    align-self: flex-start;
    margin-left: 0;
    margin-right: 0;
}

/* Ensure the widget fills the message container */
.message:has([data-widget]) [data-widget] {
    box-sizing: border-box;
}

.message.user {
    align-self: flex-end;
}

.message.assistant {
    align-self: flex-start;
}

.message.system {
    align-self: flex-start;
}

.message-content {
    padding: 0.5rem 0.5rem;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user .message-content {
    background: #667eea;
    color: white;
    border-bottom-right-radius: 6px;
    white-space: pre-wrap; 
}

.message.assistant .message-content {
    background: transparent;
    color: #333;
    white-space: normal;
    border-radius: 0;
    padding: 0.5rem 0;
}

.message.system .message-content {
    background: #edf2f7;
    color: #4a5568;
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.9rem;
    border-left: 3px solid #a0aec0;
}

.system-message-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #718096;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Markdown styles for assistant messages */
.message.assistant .message-content h1,
.message.assistant .message-content h2,
.message.assistant .message-content h3,
.message.assistant .message-content h4,
.message.assistant .message-content h5,
.message.assistant .message-content h6 {
    margin: 1.2em 0 0.6em 0;
    font-weight: 700;
    line-height: 1.3;
    color: #2d3748;
}

.message.assistant .message-content h1 { font-size: 1.8em; }
.message.assistant .message-content h2 { font-size: 1.5em; }
.message.assistant .message-content h3 { font-size: 1.3em; }
.message.assistant .message-content h4 { font-size: 1.1em; }
.message.assistant .message-content h5 { font-size: 1.05em; }
.message.assistant .message-content h6 { font-size: 1em; }

.message.assistant .message-content p {
    margin: 0.8em 0;
    line-height: 1.6;
    color: #4a5568;
}

/* First paragraph after heading should have less top margin */
.message.assistant .message-content h1 + p,
.message.assistant .message-content h2 + p,
.message.assistant .message-content h3 + p,
.message.assistant .message-content h4 + p,
.message.assistant .message-content h5 + p,
.message.assistant .message-content h6 + p {
    margin-top: 0.4em;
}

/* First element should have no top margin */
.message.assistant .message-content > *:first-child {
    margin-top: 0;
}

/* Last element should have no bottom margin */
.message.assistant .message-content > *:last-child {
    margin-bottom: 0;
}

.message.assistant .message-content ul,
.message.assistant .message-content ol {
    margin: 0.8em 0;
    padding-left: 1.8em;
}

.message.assistant .message-content li {
    margin: 0.3em 0;
    line-height: 1.5;
    color: #4a5568;
}

.message.assistant .message-content ul ul,
.message.assistant .message-content ol ol,
.message.assistant .message-content ul ol,
.message.assistant .message-content ol ul {
    margin: 0.4em 0;
    padding-left: 1.5em;
}

.message.assistant .message-content strong {
    font-weight: 600;
}

.message.assistant .message-content em {
    font-style: italic;
}

.message.assistant .message-content code {
    background: #f5f5f5;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.message.assistant .message-content pre {
    background: #f5f5f5;
    padding: 0.8em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0.6em 0;
}

.message.assistant .message-content pre code {
    background: none;
    padding: 0;
}

.message.assistant .message-content blockquote {
    border-left: 3px solid #ddd;
    margin: 0.6em 0;
    padding-left: 1em;
    color: #666;
}

.message.assistant .message-content a {
    color: #667eea;
    text-decoration: none;
}

.message.assistant .message-content a:hover {
    text-decoration: underline;
}

.message-time-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.message.user .message-time-container {
    justify-content: flex-end;
}

.message.assistant .message-time-container {
    justify-content: flex-start;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
}

.stats-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.stats-button:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Input container */
.input-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
    flex-shrink: 0; /* Prevent input from shrinking */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-container.centered {
    /* When centered (no messages), this will be in the normal flow */
    margin: 1rem auto 2rem;
}

.input-container.bottom {
    /* When at bottom (with messages), this becomes sticky at viewport bottom */
    position: sticky;
    bottom: 0;
    backdrop-filter: blur(10px);
    margin: 0 auto;
    padding: 0rem 0rem 2rem 0rem;
    z-index: 100;
}

.input-container-top-fade {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 50px;
    padding: 0 16px;
    border-radius: 24px 24px 0 0;
    opacity: 0;
    transition: all 0.3s ease;
    background: linear-gradient(to top, #e6f2ff 60%, transparent 100%);
    z-index:  -1;

}

.input-container-top-fade.visible {
    opacity: 1;
}

.input-wrapper {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
}

.input-container.centered .input-wrapper:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.25);
}

.input-group {
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    gap: 0.75rem;
}

#messageInput {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 1rem;
    line-height: 1.5;
    font-family: inherit;
    background: transparent;
    min-height: 24px;
    max-height: 120px;
    overflow-y: auto;
}

#messageInput::placeholder {
    color: #a0aec0;
}

.send-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #667eea;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: scale(1.05);
}

.send-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.input-footer {
    padding: 0 1rem 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.character-count {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* Loading indicator */
.loading-indicator {
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 85%;
    align-self: flex-start;
    animation: messageSlideIn 0.3s ease-out;
}

.loading-indicator.visible {
    display: block;
}

.loading-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Intermediate updates styling */
.intermediate-update {
    display: none;
    color: #718096;
    font-style: italic;
    font-size: 0.9em;
    opacity: 0.8;
    animation: fadeInUpdate 0.3s ease-in-out;
}

/* Ghost text loader animation */
.ghost-text-loader {
    display: none;
    padding: 0.5rem 0;
    text-align: left;
    opacity: 0.6;
}

.ghost-dot {
    display: inline-block;
    color: #a0aec0;
    font-size: 1.2em;
    animation: ghostPulse 1.4s infinite ease-in-out;
    margin-right: 0.2rem;
}

.ghost-dot:nth-child(1) {
    animation-delay: 0s;
}

.ghost-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ghost-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.visible {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header-minimal {
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: none;
}

.modal-header-content {
    flex: 1;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.modal-description {
    font-size: 0.875rem;
    color: #718096;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: #718096;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

/* Form elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
}

.required-asterisk {
    color: #e53e3e;
    margin-left: 0.25rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-connector-token-message {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #718096;
}

.custom-connector-token-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-connector-token-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    background: #f9fafb;
}

.custom-connector-token-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
}

.custom-connector-token-item-subtitle {
    font-size: 0.85rem;
    color: #718096;
}

.custom-connector-token-input {
    width: 100%;
}

/* City dropdown styles */
.city-dropdown-container {
    position: relative;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.city-dropdown.visible {
    display: block;
}

.city-option {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f7fafc;
    transition: background-color 0.2s ease;
    font-size: 1rem;
}

.city-option:hover,
.city-option.highlighted {
    background-color: #f7fafc;
}

.city-option:last-child {
    border-bottom: none;
}

.city-option.selected {
    background-color: #667eea;
    color: white;
}

.city-dropdown::-webkit-scrollbar {
    width: 6px;
}

.city-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.city-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.city-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Settings Modal */
#settingsModal .modal-content {
    max-width: 600px;
}

#settingsModal .modal-body {
    display: flex;
    flex-direction: column;
}

#settingsModal .settings-tab-content {
    height: 370px;
    overflow-y: auto;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.settings-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.settings-tab:hover {
    color: #4a5568;
}

.settings-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

/* Settings Accordion Sections */
.settings-section {
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.settings-section-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: #f7fafc;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.settings-section-header:hover {
    background: #edf2f7;
}

.settings-section-heading {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.settings-section-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: #718096;
}

.settings-section-header[aria-expanded="true"] .settings-section-chevron {
    transform: rotate(180deg);
}

.settings-section-content {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.settings-section-content.is-hidden {
    display: none;
}

.settings-section-content .form-group:last-child {
    margin-bottom: 0;
}

/* Stats Modal */
.stats-modal .modal-content {
    max-width: 900px;
    width: 95%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.stats-content {
    padding: 0.5rem 2rem 2rem 2rem;
}

.modal-header-minimal + .stats-content {
    padding-top: 0;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.stat-item-full {
    flex-direction: column;
    align-items: stretch;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #4a5568;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Metrics Table */
.metrics-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.metrics-table thead {
    background-color: #f7fafc;
}

.metrics-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.metrics-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.metrics-table tbody tr:last-child td {
    border-bottom: none;
}

.metrics-table tbody tr:hover {
    background-color: #f7fafc;
}

.metrics-table tbody tr.metrics-table-total {
    background-color: #f7fafc;
    font-weight: 600;
    border-top: 2px solid #cbd5e0;
}

.metrics-table tbody tr.metrics-table-total:hover {
    background-color: #edf2f7;
}

.stat-item-ttft-modern {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3), 0 2px 4px -1px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.stat-item-ttft-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(59, 130, 246, 0.4), 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.ttft-icon {
    font-size: 2.5rem;
    line-height: 1;
    opacity: 0.9;
}

.ttft-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ttft-left {
    flex: 1;
}

.ttft-right {
    flex: 1;
    text-align: right;
}

.ttft-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    align-self: center;
}

.stat-item-ttft-modern .stat-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-item-ttft-modern .stat-value {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stat-value-cost-inline {
    font-size: 1.5rem !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.cost-breakdown-inline {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cost-inline-item {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.metrics-footer {
    text-align: center;
    padding: 0.5rem 0 0 0;
}

.copy-raw-metrics-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    background: white;
    transition: all 0.2s ease;
}

.copy-raw-metrics-link-modern:hover {
    background-color: #F9FAFB;
    color: #3B82F6;
    border-color: #3B82F6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.copy-raw-metrics-link-modern.copied {
    color: #10B981;
    border-color: #10B981;
    background-color: #F0FDF4;
}

.copy-raw-metrics-link-modern svg {
    transition: transform 0.2s ease;
}

.copy-raw-metrics-link-modern:hover svg {
    transform: scale(1.1);
}

.chart-container-single {
    max-width: 100%;
    margin: 0;
}

.chart-container-single .chart-content-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: flex-start;
}

.chart-container-single .pie-chart-wrapper {
    flex-shrink: 0;
    order: 1;
}

.chart-container-single .chart-legend {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    order: 2;
}

.metrics-copy-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metrics-copy-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.metrics-copy-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* Metrics Charts */
.metrics-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    letter-spacing: 0.5px;
}

.chart-subtitle {
    font-size: 0.8125rem;
    color: #6B7280;
    font-weight: 500;
    margin: 0 0 1.25rem 0;
    text-align: left;
}

.pie-chart-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.pie-chart {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.07));
}

.pie-slice {
    transition: all 0.3s ease;
    cursor: pointer;
    transform-origin: center;
    stroke: white;
    stroke-width: 2;
}

.pie-slice:hover {
    opacity: 0.9;
    filter: brightness(1.05) saturate(1.2);
    transform: scale(1.02);
}

.pie-tooltip {
    position: absolute;
    background: rgba(17, 24, 39, 0.95);
    color: white;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    transform: translate(-50%, -100%);
}

.pie-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.pie-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(17, 24, 39, 0.95);
}

.pie-tooltip-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    opacity: 0.9;
}

.pie-tooltip-value {
    font-weight: 700;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    letter-spacing: -0.25px;
}

.pie-tooltip-percent {
    font-weight: 500;
    opacity: 0.8;
    margin-left: 0.25rem;
}

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.chart-center-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    letter-spacing: -0.5px;
}

.chart-center-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    margin-top: 0.375rem;
    font-weight: 600;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.legend-item:hover {
    background-color: #F9FAFB;
    border-color: #E5E7EB;
    transform: translateX(2px);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.125rem;
}

.legend-label {
    flex: 1;
    color: #374151;
    font-weight: 500;
    min-width: 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.legend-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.legend-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-value {
    color: #6B7280;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    background: #F3F4F6;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.legend-tokens {
    display: flex;
    gap: 0.375rem;
    flex-wrap: nowrap;
    align-items: center;
}

.token-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.token-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.75;
    text-transform: uppercase;
}

.token-unit {
    font-size: 0.625rem;
    font-weight: 500;
    opacity: 0.65;
    font-family: system-ui, -apple-system, sans-serif;
}

.token-value {
    font-weight: 700;
    letter-spacing: -0.25px;
}

.token-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(17, 24, 39, 0.95);
    color: white;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0;
}

.token-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(17, 24, 39, 0.95);
}

.token-badge:hover .token-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.token-badge-in {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

.token-badge-in:hover {
    background: linear-gradient(135deg, #BFDBFE 0%, #93C5FD 100%);
    border-color: #60A5FA;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.token-badge-out {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.token-badge-out:hover {
    background: linear-gradient(135deg, #A7F3D0 0%, #6EE7B7 100%);
    border-color: #34D399;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.token-badge-total {
    background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
    color: #4338CA;
    border: 1px solid #A5B4FC;
}

.token-badge-total:hover {
    background: linear-gradient(135deg, #C7D2FE 0%, #A5B4FC 100%);
    border-color: #818CF8;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.token-badge-cache-write {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    border: 1px solid #FCD34D;
}

.token-badge-cache-write:hover {
    background: linear-gradient(135deg, #FDE68A 0%, #FCD34D 100%);
    border-color: #FBBF24;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.token-badge-cache-read {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

.token-badge-cache-read:hover {
    background: linear-gradient(135deg, #BFDBFE 0%, #93C5FD 100%);
    border-color: #60A5FA;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.legend-tokens-cache {
    margin-top: 0.375rem;
    padding-top: 0.375rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.legend-cost {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 1px solid #86EFAC;
    border-radius: 8px;
}

.cost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(22, 163, 74, 0.2);
}

.cost-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cost-total {
    font-size: 0.875rem;
    font-weight: 700;
    color: #15803D;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.cost-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6875rem;
}

.cost-item-label {
    color: #166534;
    font-weight: 500;
}

.cost-item-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
    color: #15803D;
}

.legend-item-llm {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    border-color: #E5E7EB;
}

.legend-item-llm:hover {
    background: linear-gradient(135deg, #F5F5F5 0%, #F0F0F0 100%);
    border-color: #D1D5DB;
}

/* Responsive adjustments for charts */
@media (max-width: 768px) {
    .metrics-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-container-single .chart-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .chart-container-single .chart-legend {
        max-width: 100%;
    }
    
    .stats-modal .modal-content {
        max-width: 95%;
    }
}

/* Animations */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ghostPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUpdate {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Dark theme for code blocks in user messages */
.message.user .message-content code {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.message.user .message-content pre {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2.5rem 1.25rem 1.5rem;
    }
    
    .hero-card {
        padding: 2rem 1.75rem;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .chat-container {
        padding-left: 1rem;
        padding-right: 1rem;
        width: unset;
    }
    
    .input-container {
        max-width: none;
        padding: 0.5rem 0;
    }
    
    .input-container.bottom {
        padding: 0 0rem 1rem 0rem;
    }
    
    .message {
        max-width: 95%;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .scroll-gradient {
        width: 100%;
    }
    
    .header-controls {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.7rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .input-group {
        padding: 0.75rem;
    }
    
    .input-footer {
        padding: 0 0.75rem 0.5rem;
    }
    
    .messages-list {
        padding: 0.5rem 0.5rem 0.5px 0.5rem; /* Extra bottom padding for sticky input on mobile */
    }

    .messages-area {
        width: 100%;
    }
    
    .scroll-gradient {
        width: 100%;
    }
    
    .scroll-to-bottom-btn {
        width: 32px;
        height: 32px;
    }
    
    .scroll-to-bottom-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .btn {
        padding: 0.4rem 0.6rem;
    }
    
    .btn span {
        display: none;
    }
}

/* Conversation expired modal */
.conversation-expired-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.conversation-expired-modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInScale 0.3s ease;
}

.conversation-expired-title {
    margin: 0 0 1rem 0;
    color: #e53e3e;
    font-size: 1.25rem;
    font-weight: 600;
}

.conversation-expired-message {
    margin: 0 0 1.5rem 0;
    color: #4a5568;
    line-height: 1.5;
}

.conversation-expired-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.conversation-expired-button:hover {
    background: #5a67d8;
}

/* Conversation expired modal animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInTop {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutTop {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 3000;
    font-size: 14px;
    animation: slideInTop 0.5s ease;
}

.notification-info {
    background: #3182ce;
}

.notification-success {
    background: #48bb78;
}

.notification-error {
    background: #f56565;
}

.notification-exit {
    animation: slideOutTop 0.5s ease;
}

@media (max-width: 640px) {
    .notification {
        top: auto;
        bottom: max(0.5rem, env(safe-area-inset-bottom));
        left: max(0.5rem, env(safe-area-inset-left));
        right: max(0.5rem, env(safe-area-inset-right));
        transform: none;
        width: auto;
        max-width: none;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        line-height: 1.35;
        border-radius: 10px;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
        animation: slideInBottom 0.35s ease;
        word-break: break-word;
    }

    .notification-exit {
        animation: slideOutBottom 0.3s ease forwards;
    }

    @keyframes slideInBottom {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideOutBottom {
        to {
            opacity: 0;
            transform: translateY(100%);
        }
    }
}

.connectors-body {
    border-radius: 0 0 16px 16px;
}


#connectorsModal .modal-content {
    max-width: 840px;
    height: 80vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

#connectorsModal .modal-header {
    padding-bottom: 0.75rem;
    flex-shrink: 0;
}

#connectorsModal .connectors-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1.5rem;
    padding-top: 0;
}

.connector-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.25);
    flex-shrink: 0;
}


.connector-form {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

.connector-form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.demo-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.demo-type-badge .badge-label {
    opacity: 0.9;
}

.demo-type-badge .badge-value {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.connector-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.connector-list-view,
.connector-form {
    width: 100%;
    flex: 1;
}

.connector-form .btn-secondary {
    background: #edf2f7;
    color: #2d3748;
    border: 1px solid #cbd5f5;
}

.connector-form .btn-secondary:hover {
    background: #e2e8f0;
}

.connector-step {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #d6d9e0;
    font: inherit;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 4em;
}

#orchestratorInstructions {
    resize: vertical;
    min-height: 10em;
}

.form-group input.input-error:not([type="checkbox"]):not([type="radio"]),
.form-group textarea.input-error {
    border-color: #f56565;
    box-shadow: 0 0 0 1px rgba(245, 101, 101, 0.2);
}

.form-group input[readonly] {
    background: #f8fafc;
    color: #4a5568;
    cursor: default;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-hint {
    font-size: 0.78rem;
    color: #718096;
    margin-top: 0.15rem;
    line-height: 1.4;
}

.form-hint code {
    background: #edf2f7;
    border-radius: 4px;
    padding: 0 4px;
    font-size: 0.75rem;
    color: #4a5568;
}

.form-group-inline {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-group-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
    accent-color: #667eea;
}

.form-group-inline label {
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.form-hint-inline {
    font-size: 0.78rem;
    color: #a0aec0;
    width: 100%;
    padding-left: calc(16px + 0.5rem);
}

.btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ── Resource-type checkbox picker (GRBW admin form) ─────────────────── */
.resource-types-picker {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    background: #fafafa;
    min-height: 2.5rem;
}

.resource-types-loading,
.resource-types-error,
.resource-types-empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
    padding: 0.25rem 0;
}

.resource-types-error {
    color: #c53030;
}

.resource-types-helper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.25rem 0.4rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.35rem;
}

.resource-types-counter {
    font-size: 0.78rem;
    color: #718096;
    font-weight: 500;
}

.resource-types-helper-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.75rem;
    color: #a0aec0;
}

.resource-types-helper-btn {
    background: none;
    border: none;
    padding: 0 0.15rem;
    font-size: 0.75rem;
    color: #667eea;
    cursor: pointer;
    font-weight: 500;
    line-height: 1;
}

.resource-types-helper-btn:hover {
    text-decoration: underline;
}

.resource-types-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.resource-type-option {
    display: flex !important;
    align-items: center !important;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    transition: background 0.1s;
}

.resource-type-option:hover {
    background: #edf2f7;
}

.resource-type-option input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0 0.6rem 0 0 !important;
    accent-color: #667eea;
}

.resource-type-option span {
    font-size: 0.875rem;
    color: #2d3748;
    user-select: none;
    font-weight: 400;
}

.resource-type-option.is-selected span {
    color: #1a202c;
    font-weight: 500;
}

.connector-functions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.connector-functions-row {
    display: flex;
}

.function-option {
    margin-bottom: 0 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0.35rem 0.5rem !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    flex: 1 !important;
}


.function-option input {
    margin: 0;
    width: unset;
    flex: 0 0 auto;
}

.function-option span {
    flex: 1;
    line-height: 1.2;
    margin-left: 0.5rem !important;
}

.is-hidden {
    display: none !important;
}

.connector-section {
    margin-bottom: 2rem;
}

.connector-section:last-child {
    margin-bottom: 0;
}

.connector-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.connector-section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.connector-section-header .connector-section-heading {
    margin-bottom: 0;
}

.connector-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.connector-list-state {
    margin-top: 1rem;
    border: 1px dashed #cbd5f5;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
    background: #f8fafc;
    text-align: center;
}

.connector-list-error {
    border-color: #fed7d7;
    color: #c53030;
    background: #fff5f5;
    flex-direction: column;
}

.connector-list-error .btn {
    margin-top: 0.5rem;
}

.connector-list-empty {
    border-style: solid;
    border-color: #cbd5f5;
}

.connector-list-loading {
    border: none;
    background: transparent;
    padding: 0.5rem 0;
}

.catalog-mappings-section {
    margin-top: 0.5rem;
}

.catalog-mappings-section .catalog-mappings-list {
    margin-top: 0.5rem;
}

.widget-section-content .catalog-mappings-section {
    margin-top: 0;
}

.widget-section-content .connector-section-header {
    margin-bottom: 1rem;
}

.catalog-mappings-table {
    border-collapse: collapse;
    font-size: 0.875rem;
    width: 100%;
}

.catalog-mappings-table th,
.catalog-mappings-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.catalog-mappings-table th {
    background: #f7fafc;
    font-weight: 600;
}

.catalog-mappings-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.catalog-mapping-desc-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.catalog-mapping-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.catalog-mapping-row-actions .btn-icon {
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalog-mapping-form {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f7fafc;
}

.catalog-mapping-form-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    padding-bottom: 0;
    flex-shrink: 0;
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    position: relative;
}

.admin-tab:hover {
    color: #4a5568;
}

.admin-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.admin-tab-content {
    display: none;
    flex: 1;
    min-height: 0;
}

.admin-tab-content.active {
    display: block;
}

/* Widget Sections (Collapsible) */
.widget-section {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.widget-section-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f7fafc;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.widget-section-header:hover {
    background: #edf2f7;
}

.widget-section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.widget-section-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: #718096;
}

.widget-section-header[aria-expanded="true"] .widget-section-chevron {
    transform: rotate(180deg);
}

.widget-section-content {
    padding: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.widget-section-content.is-hidden {
    display: none;
}

.widget-subsection-heading {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 1rem 0;
}

.widget-section-placeholder {
    color: #718096;
    font-size: 0.875rem;
    margin: 0;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5f5;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: connector-spinner 0.9s linear infinite;
}

@keyframes connector-spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.connector-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: #fff;
}

.connector-item + .connector-item {
    border-top: 1px solid #edf2f7;
}

.connector-item-internal {
    cursor: default;
}

.connector-item-internal:hover {
    background: #fff;
}

/* Toggle switch for internal connectors */
.toggle-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #cbd5e0;
    border-radius: 24px;
    transition: background-color 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #48bb78;
}

.toggle-switch input:focus-visible + .toggle-slider {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.connector-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    min-width: 0;
    flex: 2;
}

.connector-status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.status-enabled {
    background-color: #48bb78;
}

.status-indicator.status-disabled {
    background-color: #f56565;
}

.connector-actions {
    display: flex;
    gap: 0.5rem;
    justify-self: end;
    align-items: center;
    flex: 0 0 auto;
}

.connector-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 36px;
}

.btn-ghost {
    background: transparent;
    color: #4a5568;
    padding-left: 0;
}

.btn-ghost:hover {
    color: #1a202c;
    background: transparent;
}

.btn-outline {
    background: transparent;
    border: 1px solid #cbd5f5;
    color: #2d3748;
}

.btn-outline:hover {
    border-color: #a0aec0;
    background: rgba(160, 174, 192, 0.08);
}

.btn-danger {
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid #f56565;
    color: #c53030;
}

.btn-danger:hover {
    background: rgba(245, 101, 101, 0.2);
    border-color: #e53e3e;
    color: #9b2c2c;
}

@media (max-width: 900px) {
    .connector-content {
        flex-direction: column;
    }

    .connector-item {
        gap: 0.75rem;
    }

    .connector-actions {
        justify-self: start;
        flex-wrap: wrap;
        width: 100%;
    }

    .connector-status {
        justify-content: flex-start;
    }

    .connector-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .connector-add-btn {
        width: 100%;
        justify-content: center;
    }

}

/* Admin / Connectors modal – mobile (640px and below) */
@media (max-width: 640px) {
    #connectorsModal .modal-content {
        margin: 0.5rem;
        max-width: none;
        height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
        border-radius: 12px;
    }

    #connectorsModal .modal-header {
        padding: 0.75rem;
        flex-shrink: 0;
    }

    #connectorsModal .modal-header h2 {
        font-size: 1.125rem;
    }

    #connectorsModal .close-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.35rem;
        margin: -0.35rem -0.35rem -0.35rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #connectorsModal .connectors-body {
        padding: 0 0.75rem 1.5rem 0.75rem;
        padding-top: 0;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }

    #connectorsModal .admin-tabs {
        gap: 0.25rem;
        margin-bottom: 1rem;
        margin-top: 0;
        padding-bottom: 0;
    }

    #connectorsModal .admin-tab {
        flex: 1;
        min-height: 44px;
        padding: 0.625rem 0.5rem;
        font-size: 0.875rem;
    }

    #connectorsModal .connector-section {
        margin-bottom: 1.25rem;
    }

    #connectorsModal .connector-section-heading {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }

    #connectorsModal .connector-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    #connectorsModal .connector-section-header .connector-section-heading {
        margin-bottom: 0;
    }

    #connectorsModal .connector-add-btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        padding: 0.625rem 0.75rem;
    }

    #connectorsModal .connector-item {
        padding: 0.75rem 0.75rem;
        gap: 0.75rem;
    }

    #connectorsModal .connector-name {
        font-size: 0.9375rem;
    }

    #connectorsModal .connector-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.5rem;
    }

    #connectorsModal .connector-actions .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    #connectorsModal .connector-list {
        border-radius: 10px;
    }

    #connectorsModal .connector-list-state {
        padding: 0.75rem 0.75rem;
        margin-top: 0.75rem;
        font-size: 0.875rem;
    }

    #connectorsModal .form-group {
        margin-bottom: 1rem;
    }

    #connectorsModal .connector-form {
        padding: 0.75rem 0.75rem;
    }

    /* Catalog mappings: card layout on mobile (table stays normal on desktop) */
    #connectorsModal .catalog-mappings-list {
        overflow-x: visible;
        padding-bottom: 0.5rem;
    }

    #connectorsModal .catalog-mappings-table,
    #connectorsModal .catalog-mappings-table thead,
    #connectorsModal .catalog-mappings-table tbody,
    #connectorsModal .catalog-mappings-table tr {
        display: block;
    }

    #connectorsModal .catalog-mappings-table thead {
        position: absolute;
        clip: rect(0, 0, 0, 0);
        overflow: hidden;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        border: 0;
    }

    #connectorsModal .catalog-mappings-table tbody tr {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 0.875rem;
        margin-bottom: 0.75rem;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    #connectorsModal .catalog-mappings-table tbody tr:nth-child(even) {
        background: #fff;
    }

    #connectorsModal .catalog-mappings-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.875rem;
    }

    #connectorsModal .catalog-mappings-table td:last-child {
        border-bottom: none;
        padding-bottom: 0.5rem;
    }

    #connectorsModal .catalog-mappings-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #4a5568;
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    #connectorsModal .catalog-mappings-table td:nth-child(1)::before {
        content: "Issue Type";
    }

    #connectorsModal .catalog-mappings-table td:nth-child(2)::before {
        content: "Catalog Item ID";
    }

    #connectorsModal .catalog-mappings-table td:nth-child(3)::before {
        content: "Description";
    }

    #connectorsModal .catalog-mapping-desc-cell {
        display: block;
    }

    #connectorsModal .catalog-mapping-desc-cell .catalog-mapping-row-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        margin-top: 0.75rem;
        width: 100%;
    }

    #connectorsModal .catalog-mapping-row-actions .btn-icon {
        width: 2.25rem;
        height: 2.25rem;
        padding: 0.5rem;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}