:root {
    --pill-font-size: 1.0em;
    --agent-category-spacer: 0.5em;
    --surface-0: #f7f8fa;
    --surface-1: #ffffff;
    --surface-2: #f7f7f8;
    --bs-card-bg: #6b7280;
    --accent: #10a37f;
    --text-primary: #f2f5f9;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-light: #e5e5e5;
    --border-medium: #d1d5db;
    --hover-bg: #f3f4f6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-lg: 20px;
    /* Layout dimensions */
    --nav-width: 260px;
    --top-bar-height: 60px;
    --composer-height: auto;
    /* Transition */
    --transition: 200ms ease-out;
}

.card {
    background-color: #111322;
}

.card-title {
    color: white;
    margin-bottom:  20px;
}

.form-select {
    color: white;
    background-color: black;
}

label {
    color: white;
}

.page-name-primary {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.page-name-secondary {
    font-size: 12px;
    margin-left: 20px;
}

.CodeMirror {
    width: 80hw;
    min-width: 800px;
}

.assistant-message.no-markdown .message-content {
    border: none;
}

.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate {
    color: white;
}

#dnaTempModalBody {
    background: white;
}

/* When embedded in a widget */
.dna-embedded {
    padding: 1px;
    header,.mobile-chat-toggle, .chat-col, .chat-resizer, #dnaHeaderSpacer, .hidden-when-embedded,
    .dataTables_length,.dataTables_filter,.research-container .toolbar
    {
        display: none !important;
    }
}

.spacer-category-li {
    width: 40px;
    overflow: hidden;
    opacity: 0;
}

.category-spacer-tab {
    opacity: 0;
    pointer-events: none;
}

#widgets-container {
    margin-top: 16px;
    display: grid;
    gap: 16px;
}

.ui-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.ui-button {
    padding: .5rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
}

.ui-button:hover {
    background: var(--blue-600);
}

.ui-select, .ui-date {
    padding: .4rem .5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.ui-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ui-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ui-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: .8rem;
    border-radius: 999px;
    color: #fff;
    background: #666;
}

.ui-badge-success {
    background: #16a34a;
}

.ui-badge-info {
    background: #2563eb;
}

.ui-badge-danger {
    background: #dc2626;
}

.ui-divider {
    border: none;
    border-top: 1px solid var(--border);
}

.ui-chart {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}

.ui-markdown code {
    background: #eee;
    padding: 2px 4px;
    border-radius: 4px;
}

.ui-transition {
    transition: opacity 200ms ease;
}

.ui-transition-in {
    opacity: 1;
}

.ui-transition-out {
    opacity: 0;
}




.paget-container {
    position: relative;
    display: inline-block;
    padding-top: 0px;
    background: linear-gradient(180deg, #92a5be 0%, #acaeb1 50%);
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 10px 10px 12px rgba(250,250,250,.35);
   
}

.paget-container iframe {
    border-radius: 12px;
    border: 1px solid silver;
}

.paget-container .pop-out-icon {
    position: absolute;
    top: -30px;
    right: 10px;
    cursor: pointer;
    font-size: 22px;
    color: #edeff1;
}

.paget-container .pop-out-icon:hover {
    color: #e1ee7b;
}

.paget-container .maximize-icon {
    position: absolute;
    top: -30px;
    right: 42px;
    cursor: pointer;
    font-size: 22px;
    color: #edeff1;
}

.paget-container .collapse-icon {
    position: absolute;
    top: -30px;
    left: 10px;
    cursor: pointer;
    font-size: 22px;
    color: #edeff1;
}

.paget-container .maximize-icon:hover,.paget-container .collapse-icon:hover {
    color: #e1ee7b;
}

.paget-container .resize-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    right: 8px;
    bottom: 8px;
    cursor: se-resize;
    background-image: linear-gradient(135deg, rgb(248 234 234 / 35%) 25%, transparent 25%, transparent 50%, rgb(243 231 231 / 35%) 50%, rgb(238 231 231 / 35%) 75%, transparent 75%, transparent);
    background-size: 8px 8px;
    border-radius: 2px;
}

.paget-container.collapsed {
    width: 300px !important;
    height: 70px !important;
    padding: 10px;
}

.paget-container.collapsed iframe {
    visibility: hidden;
    height: 0 !important;
}

.paget-container.collapsed .resize-handle {
    display: none;
}

.paget-container.collapsed .collapse-icon {
    display: none;
}

.paget-container .collapsed-bar {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    font-size: 14px;
    color: #222;
}

.paget-container.collapsed .collapsed-bar {
    display: flex;
}

.paget-container .collapsed-expand-icon {
    cursor: pointer;
    color: #f6f6f6;
    font-size: 22px;
}

.paget-container .collapsed-expand-icon:hover {
    color: #0056b3;
}

.paget-container.maximized {
    position: fixed;
    top: 130px;
    left: 3vw;
    width: 94vw !important;
    height: 94vh !important;
    z-index: 9999;
}

.composer {
    padding: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: 10px;
}

.full-width {
    width: 100%;
}

.attachment-staging {
    margin-bottom: 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.staging-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.attachment-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--surface-1);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    max-width: 200px;
    gap: 0.5rem;
}

.attachment-item.image-attachment {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.25rem;
}

.attachment-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    margin: 0;
}

.attachment-size {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
}

.attachment-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.composer-wrapper {
    margin: 0 auto;
    display: block;
    align-items: flex-end;
    gap: 1rem;
}

.composer-tools {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: lime;
}

.composer-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.composer-btn.active {
    background: var(--accent);
    color: white;
}


.composer-input-wrapper {
    flex: 1;
    xposition: relative;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: 22px;
    xoverflow: hidden;
}

.composer-input {
    width: 92%;
    border: none;
    background: none;
    padding: 1rem 1.5rem;
    padding-right: 120px;
    resize: none;
    min-height: 24px;
    max-height: 300px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-editors-color);
    outline: none;
    font-family: inherit;
    border-color: white;
    outline-color: white;
    display: flex;
}

.composer-input::placeholder {
    color: var(--text-secondary);
}

.composer-controls {
    right: 0.75rem;
    bottom: 0.95rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.chat-send, .chat-cancel {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.chat-send {
    background: var(--accent);
    color: white;
}

.chat-send:hover {
    background: color-mix(in srgb, var(--accent) 90%, black);
}

.chat-send:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
}

.chat-cancel {
    background-color: #96c0f5;
    color: black;
    border-color: var(--border-medium);
    margin-left: -26px;
}

.chat-cancel:hover {
    xbackground: var(--hover-bg);
    background-color: #1f7df0;
    color: var(--text-primary);
}

.StatisticsDisplay {
    background: #2a4b91;
    color: white;
    position: fixed;
    bottom: 2px;
    right: 10px;
    z-index: 10111;
    height: 26px;
    padding: 4px;
    width: 440px;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
}

/* StatsTree Styling Begin. Style the container and nodes, etc. here */
/* ToDo --  */
.StatsTreeContainer {
}

/* StatsTree Styling End */
/* Right Side-sheet */
.right-sheet {
    width: 300px;
    min-width: 300px;
    max-width: 60vw;
    background: var(--surface-1);
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    z-index: 50;
    position: relative;
}

.sheet-resizer {
    width: 4px;
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    cursor: col-resize;
    background: transparent;
    z-index: 51;
}

.sheet-resizer:hover {
    background: var(--border-medium);
}

.sheet-resizer.resizing {
    background: var(--primary);
}

.sheet-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sheet-header-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sheet-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.sheet-action-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.sheet-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sheet-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.sheet-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.no-border: {
    border: none;
}

.no-border .message-content {
    border: none !important;
}

.suggested-action-pill {
    background: #ffffb2;
    color: black;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Artifact Display (in right sheet) */
.artifact-display {
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.artifact-content {
    max-height: none;
    overflow: visible;
    background: white;
}

/* Artifact Summary Pills in Chat */
.artifact-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.9rem;
    max-width: 280px;
}

.artifact-summary-pill:hover {
    background: var(--hover-bg);
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

.artifact-summary-pill .artifact-icon {
    color: var(--primary);
    font-size: 1rem;
}

.artifact-summary-pill .artifact-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    transition: opacity var(--transition);
}

.mobile-overlay.active {
    display: block;
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar, .nav-content::-webkit-scrollbar, .sheet-content::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track, .nav-content::-webkit-scrollbar-track, .sheet-content::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb, .nav-content::-webkit-scrollbar-thumb, .sheet-content::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover, .nav-content::-webkit-scrollbar-thumb:hover, .sheet-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.message-content {
    .tbody-wrapper {
        max-height: 200px;
        overflow-y: auto;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    thead, tbody table {
        table-layout: fixed;
    }
}

/* Responsive Design */
@media (max-width: 1440px) {
    .right-sheet {
        xwidth: 350px;
    }
}

@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .left-nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: var(--nav-width);
        transform: translateX(-100%);
        z-index: 200;
    }

    .left-nav.open {
        transform: translateX(0);
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-overlay.active {
        display: block;
    }

    .right-sheet {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        z-index: 150;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .right-sheet.open {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    :root {
        --pill-font-size: 0.9em;
        --agent-category-spacer: 1%;
    }
}

@media (max-width: 640px) {
    :root {
        --nav-width: 280px;
        --top-bar-height: 50px;
    }

    .top-bar {
        padding: 0 1rem;
    }

    .top-bar-right {
        gap: 0.5rem;
    }

    .composer {
        padding: 1rem;
    }

    .composer-tools {
        display: none;
    }

    .conversation-pane {
        padding: 0 0.5rem;
    }

    .chat-messages {
        padding: 1rem 0;
        gap: 1rem;
    }

    .message-content {
        padding: 0.75rem 1rem;
    }

    .btn-text {
        display: none;
    }

    .right-sheet {
        width: 100vw;
    }
}

.light-table-wrapper {
    background: whitesmoke;
    color: black;
    padding: 10px;
    border-radius: 8px;
    border-left: 6px solid #7d8de6;
    ; }

.light-table-wrapper li a {
    color: black;
}

.table-wrapper-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 600;
}

/* Utility classes for theme switching */
.theme-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--surface-1);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 0.25rem;
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: black;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}


.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

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

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

.settings-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.theme-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.theme-controls .theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--surface-2);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.theme-controls .theme-btn:hover {
    background: var(--hover-bg);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.theme-controls .theme-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.theme-icon {
    font-size: 1.5rem;
    display: block;
}

.theme-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.theme-controls .theme-btn.active .theme-name {
    color: white;
}

@media (max-width: 640px) {
    .theme-controls {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast adjustments */
@media (prefers-contrast: high) {
    :root {
        --border-light: #000000;
        --border-medium: #000000;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

./clearingTaskStatus {
    width: 300px;
    min-height: 100px;
    border: 1px solid #e3e3e6;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,e5e5e5+100;White+3D */
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    color: #133ea9;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 8px 7px 5px -2px rgba(0,0,0,0.54);
    -webkit-box-shadow: 8px 7px 5px -2px rgba(0,0,0,0.54);
    -moz-box-shadow: 8px 7px 5px -2px rgba(0,0,0,0.54);
    margin-bottom: 200px;
    position: fixed;
    top: 120px;
    right: 70px;
    z-index: 10111;
}

.LongRunningTaskStatus {
    width: 100%;
    min-height: 110px;
    background: linear-gradient(180deg, #4e555e 0%, #0a1220 100%);
    color: #e6f0ff;
    border-radius: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
    overflow-x: scroll;
    cursor: pointer;
}

.LongRunningTaskStatus a {
    color: #93c5fd !important;
}

.LongRunningTaskStatus .LongRunningTaskStatusTitle {
    font-weight: 600;
    color: #e6f0ff;
}

.progressBarOuter {
    margin-bottom: 14px;
}

.parallel-tool-execution-status {
    border-radius: 6px !important;
    border: none;
}

.parallel-tool-execution-status td {
    font-size: 12px !important;
}

.parallel-tool-execution-status td:nth-child(1) {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.LongRunningTaskStatus .progressBarOuter {
    margin-top: 12px;
    width: 100%;
    height: 12px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}

.LongRunningTaskStatus .progressBarInner {
    height: 8px;
    margin: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8 0%, #4ade80 60%, #f59e0b 100%);
    box-shadow: 0 0 10px rgba(56,189,248,0.35);
}

.LongRunningTaskStatusTable td {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
}

.LongRunningTaskStatusTable .tool-status-executing, .LongRunningTaskStatusTable .tool-status-done {
    display: inline-block;
    padding: 8px 10px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    margin: 0px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.LongRunningTaskStatusTable .tool-status-executing {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.35);
}

.LongRunningTaskStatusTable .tool-status-done {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

.assistant-message {
    xmax-height: 1000px;
    /* or whatever comfortably fits */
    overflow: visible;
    /* keep content from spilling out during collapse */
    transition: max-height 2s ease-out;
    /* declare transition here */
}

/* collapsed state */
.assistant-message.completed {
    max-height: 0;
    overflow: hidden;
    transition: 2s ease;
}

.idea-pills {
    display: flex;
    justify-content: center;
    /* <-- this centers children horizontally */
    align-items: center;
    /* optional: centers children vertically if there's height */
    width: 100%;
    margin: auto;
    flex-wrap: wrap;
    /* optional: wrap children if they overflow */
    gap: 10px;
    /* optional: space between children */
}

.idea-pills .pill {
    margin: 10px;
    border: 1px solid silver;
    border-radius: 18px;
    padding: 10px;
    font-size: var(--pill-font-size);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.agent-category-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: auto;
}

.agent-category-tabs {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    /* This helps for fallback or vertical layout */
    list-style: none;
}

.agent-category-tabs li {
    padding: 0.6em;
    list-style-type: none;
    cursor: pointer;
    border-bottom: 1px solid #7f7c7c;
    align-text: center;
    xmargin: var(--agent-category-spacer);
    margin-bottom: 1em;
}

.agent-category-tabs li.active {
    border-bottom: 2px solid white;
}

.agent-category-tabs {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    gap: 0.1rem;
    /* optional spacing between tabs */
}

.agent-pills-category-header {
    display: flex;
    align-items: flex-end;
    /* vertical align toward bottom */
    justify-content: center;
    /* horizontal center */
    text-align: center;
    xheight: 120px;
    /* or whatever height you need */
    padding: 0 0px;
    white-space: normal;
    /* allows wrapping */
    font-size: var(--pill-font-size);
}

.pill .pill li {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.pill:hover, li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* optional shadow for effect */
}

.agent-pills {
    user-select: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    xmargin: auto;
    justify-content: center;
}

.agent-pills .pill {
    margin: var(--agent-category-spacer );
    border: 1px solid silver;
    border-radius: 18px;
    padding: 10px;
    font-size: var(--pill-font-size);
    text-align: center;
    cursor: pointer;
    text-wrap-mode: wrap;
}

.agent-pills-category {
    display: none;
}

.agent-pills-category.active {
    display: block;
}

.conversation-options-menu {
    background-color: #d4d4d8;
    border: '1px solid #ccc';
    borderRadius: 8px;
    boxShadow: '0 2px 6px rgba(0,0,0,0.15)';
    width: 110px !important;
    color: #2d2c2c;
}

#dna-modal-container {
    height: 1000px;
    z-index: 1800;
    position: absolute;
}

.message-content {
    overflow-y: visible;
}

.current-tools {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Enhanced Tools Modal Styles */
.tools-modal-content {
    min-width: 300px;
    max-width: 600px;
}

.tools-table {
    width: 340px;
    border-collapse: collapse;
    margin: 15px 0;
    max-width: 220px;
}

.model-modal-content {
    min-width: 340px;
    max-width: 600px;
}

.model-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.model-table tbody tr:nth-child(odd) td {
    background-color: #e1e4f5;
    color: #0e0e66;
}

.model-table tbody tr:nth-child(even) td {
    background-color: #ffffff;
    color: #0e0e66;
}

.tools-table tbody tr:nth-child(odd) td {
    background-color: #e1e4f5;
    color : black;
}

.tools-table tbody tr:nth-child(even) td {
    background-color: #ffffff;
    color : black;
}


.tool-row {
    border-bottom: 1px solid var(--border-light);
}

.tool-row:hover {
    background-color: var(--hover-bg);
}

.model-row {
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
}

.model-row:hover {
    background-color: var(--hover-bg);
}

.model-row:focus {
    outline: 2px solid var(--accent, #67c167);
    outline-offset: -2px;
}

.model-row-selected td {
    background-color: rgba(193, 193, 193, 0.92) !important;
    color: #0e0e66;
    font-weight: 600;
}

.tool-name-cell {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    color: #0e0e66;
    transition: color 0.2s ease;
    max-width: 220px;
}

.tool-name-cell:hover {
    color: var(--accent);
}

.model-name-cell {
    padding: 12px 16px;
    color: #cacad8;
    max-width: 480px;
    min-width: 220px;
}

.model-name-primary {
    font-weight: 600;
    word-break: break-word;
}

.model-name-secondary {
    margin-top: 4px;
    font-size: 0.85em;
    color: var(--text-secondary, #4a4a6a);
    word-break: break-word;
}

.model-check-cell {
    width: 48px;
    text-align: center;
    color: #67c167;
    font-size: 0.95em;
    padding: 12px 8px;
}

.model-check-cell .fa {
    font-size: 14px;
}

.model-modal-empty-message {
    color: var(--text-secondary, #d0d6ff);
    font-size: 0.9em;
    padding: 12px 16px;
}

.model-search-box input {
    width: 100%;
}

.tool-play-cell {
    padding: 12px 16px;
    text-align: center;
    width: 20%;
}

.tool-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #67c167;
    opacity: 0.7;
}

.tool-play-btn:hover {
    background-color: #67c167;
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

.tool-play-btn i {
    font-size: 12px;
}

/* Tool Tooltip Styles */
.tool-tooltip {
    background: var(--surface-1);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0;
    max-width: 300px;
    font-size: 0.9em;
    z-index: 10001;
    position: fixed;
}

.tool-tooltip-header {
    background: var(--surface-2);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tool-tooltip-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--text-secondary);
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-tooltip-close:hover {
    color: var(--text-primary);
}

.tool-tooltip-description {
    padding: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tools-modal-content-inner-scrollable {
    max-height: calc(90vh - 240px);
    overflow-y: auto;
    max-width: 340px;
}

.tools-modal-content-inner-scrollable table {
    max-width: 360px;
}

.tool-tooltip, .tool-tooltip-description {
    background: navy;
    color: white;
}

.tool-tooltip-header {
    background: navy;
    ; }

.spacer-below-conversation-pane {
    width: 100%;
    height: 300px;
}

.button-category-spacer {
    width: 100px;
    background: yellow;
    height: 20px;
}
