.btn-teal, .bg-teal-800 { background-color: #0f766e !important; }

.btn-teal { color: #fff; border: none; }

.btn-teal:hover { background-color: #0d655e !important; color: #fff; }

.btn-outline-teal { border-color: #0f766e; color: #0f766e; }

.btn-outline-teal:hover { background-color: #0f766e; color: #fff; }

.text-teal-700 { color: #0f766e; }

.navbar-dark.bg-teal-800 { background-color: #115e59 !important; }

.btn-xs { font-size: 0.75rem; padding: 0.1rem 0.35rem; }

.bg-teal-800 { background-color: #115e59 !important; }



/* Admin shell layout */

.admin-body {

    margin: 0;

    background: #f1f5f9;

    min-height: 100vh;

}



.admin-shell {

    display: flex;

    min-height: 100vh;

}



.admin-sidebar {

    width: 260px;

    min-width: 260px;

    background: #0f172a;

    color: #e2e8f0;

    display: flex;

    flex-direction: column;

    min-height: 100vh;

    position: sticky;

    top: 0;

    height: 100vh;

    overflow-y: auto;

}



.admin-offcanvas .admin-sidebar {

    width: 100%;

    min-width: 0;

    height: auto;

    position: static;

}



.admin-sidebar-brand {

    padding: 20px 16px;

    border-bottom: 1px solid rgba(255,255,255,0.08);

}



.admin-brand-link {

    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: #fff;

}



.admin-brand-icon {

    width: 36px;

    height: 36px;

    background: #0f766e;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 13px;

}



.admin-brand-text {

    font-weight: 600;

    font-size: 15px;

}



.admin-sidebar-nav {

    flex: 1;

    padding: 12px 0;

}



.admin-nav-section {

    margin-bottom: 16px;

}



.admin-nav-label {

    padding: 8px 16px 6px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.06em;

    color: #64748b;

    font-weight: 600;

}



.admin-nav-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 16px;

    color: #cbd5e1;

    text-decoration: none;

    font-size: 14px;

    border-left: 3px solid transparent;

    transition: background 0.15s, color 0.15s;

}



.admin-nav-item:hover {

    background: rgba(255,255,255,0.06);

    color: #fff;

}



.admin-nav-item.active {

    background: rgba(15, 118, 110, 0.25);

    color: #fff;

    border-left-color: #0f766e;

}



.admin-nav-icon {

    width: 18px;

    text-align: center;

    opacity: 0.8;

}



.admin-nav-agent {

    padding-left: 14px;

}



.admin-nav-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    flex-shrink: 0;

}



.admin-nav-agent-name {

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.admin-nav-empty {

    padding: 8px 16px;

    font-size: 13px;

    color: #64748b;

}



.admin-sidebar-footer {

    padding: 16px;

    border-top: 1px solid rgba(255,255,255,0.08);

}



.admin-user-name {

    display: block;

    font-size: 12px;

    color: #94a3b8;

    margin-bottom: 8px;

}



.admin-main {

    flex: 1;

    min-width: 0;

}



.admin-content {

    padding: 28px 32px 48px;

    max-width: 1200px;

}



.admin-sidebar-toggle {

    position: fixed;

    top: 12px;

    left: 12px;

    z-index: 1040;

}



@media (max-width: 991.98px) {

    .admin-content {

        padding: 56px 16px 32px;

    }

}



/* Page header & panels */

.admin-page-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 16px;

    margin-bottom: 28px;

    flex-wrap: wrap;

}



.admin-page-title {

    font-size: 1.75rem;

    font-weight: 700;

    color: #0f172a;

    margin: 0;

}



.admin-page-subtitle {

    color: #64748b;

    margin-top: 4px;

    font-size: 14px;

}



.admin-page-header-agent {

    align-items: center;

}



.admin-agent-avatar {

    width: 48px;

    height: 48px;

    border-radius: 12px;

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 20px;

    flex-shrink: 0;

}



.admin-stat-card {

    background: #fff;

    border-radius: 12px;

    padding: 20px 24px;

    box-shadow: 0 1px 3px rgba(0,0,0,0.06);

    border: 1px solid #e2e8f0;

}



.admin-stat-label {

    font-size: 13px;

    color: #64748b;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.04em;

}



.admin-stat-value {

    font-size: 2.25rem;

    font-weight: 700;

    color: #0f766e;

    line-height: 1.2;

    margin: 4px 0;

}



.admin-stat-hint {

    font-size: 13px;

    color: #94a3b8;

}



.admin-panel {

    background: #fff;

    border-radius: 12px;

    padding: 20px 24px;

    box-shadow: 0 1px 3px rgba(0,0,0,0.06);

    border: 1px solid #e2e8f0;

}



.admin-panel-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 16px;

    gap: 12px;

    flex-wrap: wrap;

}



.admin-panel-title {

    font-size: 1rem;

    font-weight: 600;

    color: #0f172a;

    margin: 0;

}



.admin-empty-state {

    text-align: center;

    padding: 24px;

    color: #64748b;

}



.admin-agent-grid {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.admin-agent-card {

    display: flex;

    align-items: center;

    text-decoration: none;

    color: inherit;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    overflow: hidden;

    transition: border-color 0.15s, box-shadow 0.15s;

}



.admin-agent-card:hover {

    border-color: #0f766e;

    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);

}



.admin-agent-card-accent {

    width: 4px;

    align-self: stretch;

    flex-shrink: 0;

}



.admin-agent-card-body {

    flex: 1;

    padding: 14px 16px;

    min-width: 0;

}



.admin-agent-card-name {

    font-weight: 600;

    color: #0f172a;

}



.admin-agent-card-meta {

    font-size: 13px;

    color: #64748b;

    margin-top: 2px;

}



.admin-agent-card-key {

    font-size: 12px;

    color: #94a3b8;

    font-family: monospace;

    margin-top: 4px;

}



.admin-agent-card-arrow {

    padding: 0 16px;

    color: #94a3b8;

    font-size: 18px;

}



.admin-recent-list {

    list-style: none;

    padding: 0;

    margin: 0;

}



.admin-recent-list li {

    padding: 12px 0;

    border-bottom: 1px solid #f1f5f9;

}



.admin-recent-list li:last-child {

    border-bottom: none;

}



.admin-recent-title {

    font-weight: 500;

    color: #0f172a;

    font-size: 14px;

}



.admin-recent-meta {

    font-size: 12px;

    color: #94a3b8;

    margin-top: 2px;

}



.admin-steps {

    padding-left: 1.25rem;

    color: #475569;

    font-size: 14px;

}



.admin-steps li {

    margin-bottom: 8px;

}



.admin-tabs .nav-link {

    color: #64748b;

    font-size: 14px;

    border-radius: 999px;

    padding: 8px 16px;

    margin-right: 6px;

}



.admin-tabs .nav-link.active {

    background: #0f766e;

    color: #fff;

}



.admin-dl dt {

    font-size: 12px;

    color: #94a3b8;

    text-transform: uppercase;

    letter-spacing: 0.04em;

    margin-top: 12px;

}



.admin-dl dt:first-child {

    margin-top: 0;

}



.admin-dl dd {

    margin-bottom: 0;

    color: #0f172a;

}



.admin-product-list {

    list-style: none;

    padding: 0;

}



.admin-product-list li {

    padding: 6px 0;

    border-bottom: 1px solid #f1f5f9;

}



.admin-mini-stat {

    background: #f8fafc;

    border-radius: 10px;

    padding: 16px;

    text-align: center;

    border: 1px solid #e2e8f0;

}



.admin-mini-stat-value {

    font-size: 1.5rem;

    font-weight: 700;

    color: #0f766e;

}



.admin-mini-stat-label {

    font-size: 12px;

    color: #64748b;

    margin-top: 4px;

}



.admin-embed-box {

    position: relative;

    background: #0f172a;

    border-radius: 10px;

    padding: 16px 16px 48px;

}



.admin-embed-code {

    color: #a5f3fc;

    font-size: 13px;

    white-space: pre-wrap;

    word-break: break-all;

    background: transparent;

    border: none;

}



.admin-embed-copy {

    position: absolute;

    bottom: 12px;

    right: 12px;

}



.admin-embed-preview-layout {

    display: grid;

    grid-template-columns: 1fr;

    gap: 16px;

    margin-top: 12px;

}



.admin-embed-preview-layout.is-active {

    grid-template-columns: minmax(200px, 1fr) minmax(320px, 1.2fr);

}



@media (max-width: 768px) {

    .admin-embed-preview-layout.is-active {

        grid-template-columns: 1fr;

    }

}



.admin-embed-mock-page {

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    overflow: hidden;

    background: #fff;

    min-height: 420px;

}



.admin-embed-mock-bar {

    height: 36px;

    background: linear-gradient(90deg, #0f766e, #14b8a6);

}



.admin-embed-mock-body {

    padding: 20px;

}



.admin-embed-mock-line {

    height: 10px;

    background: #e2e8f0;

    border-radius: 4px;

    margin-bottom: 10px;

}



.admin-embed-mock-line.short {

    width: 60%;

}



.admin-embed-preview-live {

    min-height: 420px;

}



.admin-embed-preview-iframe {

    width: 100%;

    height: 420px;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    background: #fff;

}



.admin-answer-box {

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    padding: 14px 16px;

    white-space: pre-wrap;

    font-size: 14px;

    line-height: 1.5;

}



/* Flow simulator (existing) */

.flow-simulator { overflow: hidden; }

.flow-simulator-header { color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }

.flow-simulator-progress { height: 4px; background: #e2e8f0; }

.flow-simulator-progress-bar { height: 100%; transition: width 0.3s; }

.flow-simulator-body { min-height: 420px; max-height: 520px; overflow-y: auto; padding: 16px; background: #f8fafc; }

.flow-simulator-footer { padding: 12px; border-top: 1px solid #e2e8f0; display: flex; gap: 8px; background: #fff; }

.flow-msg { margin-bottom: 10px; display: flex; }

.flow-msg.user { justify-content: flex-end; }

.flow-msg-bubble { max-width: 85%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }

.flow-msg.user .flow-msg-bubble { background: #e2e8f0; }

.flow-msg.assistant .flow-msg-bubble { background: #fff; border: 1px solid #e2e8f0; }

.flow-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.flow-card-btn { border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }

.flow-card-btn:hover { background: #f0fdfa; border-color: #0f766e; }

.conversation-log { max-height: 600px; overflow-y: auto; }
.conversation-line { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.conversation-line.user .conversation-text { background: #e2e8f0; }
.conversation-line.assistant .conversation-text { background: #fff; border: 1px solid #e2e8f0; }
.conversation-meta { font-size: 11px; color: #64748b; margin-bottom: 4px; }
.conversation-text { padding: 10px 12px; border-radius: 10px; white-space: pre-wrap; font-size: 14px; }

.conversation-item { transition: border-color .15s, box-shadow .15s; cursor: pointer; }
.conversation-item:hover { border-color: #99f6e4; box-shadow: 0 2px 8px rgba(15, 118, 110, .08); }
.conversation-item-title { font-size: 15px; }
.conversation-item-meta { line-height: 1.4; }

