.hidden {
    visibility: hidden;  /* Element is invisible but still takes up space */
    opacity: 0;          /* Ensures it’s fully transparent */
    width: 0;
    height: 0;
    overflow: hidden;
    position: absolute;   /* Removes it from normal flow */
    pointer-events: none; /* Prevents interaction */
}

.container-fluid {
    --bs-gutter-x: 0 !important;
}

.avatar-stack {
    display: flex;
    align-items: center;
    position: relative;
    height: 40px;
}

.avatar-img {
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
    position: relative;
    margin-left: -12px; /* Overlap */
    z-index: 1;
    background-color: white;
}

.avatar-img:first-child {
    z-index: 3;
}
.avatar-img:nth-child(2) {
    margin-left: -20px;
    margin-top: -30px;
    z-index: 2;
}
/* add more z-index logic if you expect more than 3 avatars */

.fixed-bottom-right {
    position: fixed;
    bottom: 20px; /* distance from bottom */
    right: 20px;  /* distance from right */
    z-index: 1000; /* optional: keeps it above other elements */
}

.scrollable {
    height: calc(100vh - 110px);
    overflow-y: auto;
}

.scroll-hover {
    height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
}

/* Default thumb style */
.scroll-hover::-webkit-scrollbar-thumb {
    /*background-color: rgba(0, 0, 0, 0.33); !* Always visible and dark *!*/
    background-color: #e2e2e2;
    border-radius: 4px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Optional visual tweak */
.scroll-hover::-webkit-scrollbar {
    width: 8px;
}

.scroll-hover::-webkit-scrollbar-track {
    background: transparent;
}

.w-30 {
    width: 30%!important;
}

.categoryButton {
    font-size: 0.94rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* or increase slightly if needed */
    height: 42px; /* force consistent height */
}

/* Conversation List Styling */
.conversation-list {
    list-style: none;
    padding: 0.75rem;
    margin: 0;
    padding-top: 0.75rem;
}

.conversation-item {
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    background-color: var(--theme-card-background, #ffffff);
    border: 1px solid var(--theme-border-color, #e0e0e0);
    transition: all 0.2s ease-in-out;
    overflow: hidden;
}

.conversation-item:hover {
    background-color: var(--theme-card-hover-background, rgba(13, 110, 253, 0.05));
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(2px);
}

.conversation-item.activeConversation {
    background-color: rgba(59, 130, 246, 0.12);
    border-color: #3b82f6;
    border-width: 2px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.conversationLink {
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    color: inherit;
}

.conversation-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid var(--theme-border-color, #e0e0e0);
    transition: all 0.2s ease-in-out;
}

.conversation-item:hover .conversation-avatar img {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
}

.conversation-content {
    flex: 1;
    min-width: 0; /* Allows text truncation */
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.conversation-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--theme-body-text-muted, #6b7280);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.conversation-time {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
    flex-shrink: 0;
    white-space: nowrap;
}

.conversation-topic {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6b7280;
    margin: 0.25rem 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-preview {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.4em; /* 2 lines * 1.2em line-height */
}

.conversation-item.activeConversation .conversation-title {
    color: #3b82f6;
    font-weight: 600;
}

.conversation-item.activeConversation .conversation-topic {
    color: var(--theme-body-text-muted, #6b7280);
}

/* Legacy support for old list-group-item structure */
.list-group-item .conversationLink {
    text-decoration: none;
}

.card
{
    --bs-card-border-color: var(--theme-border-color);
    background-color: var(--theme-card-background, #ffffff);
    color: var(--theme-body-text, #212529);
}

.card-footer
{
    min-height: 55px;
    background-color: var(--theme-card-footer-background);
}

.messageBox
{
    height: calc(100vh - 184px) !important;
}

/* Message bubbles styling - Modern polished design */
.list-group-item.message {
    background-color: var(--theme-card-background) !important;
    border: 1px solid var(--theme-border-color) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    text-align: left !important;
}

.list-group-item.message * {
    text-align: left !important;
}

.list-group-item.message:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--theme-border-color-hover) !important;
}

.message-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0;
    text-align: left !important;
}

.message-row * {
    text-align: left !important;
}

.message-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.message-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid var(--theme-border-color);
    background-color: var(--theme-input-background);
    transition: all 0.2s ease-in-out;
}

.message-content {
    flex: 1;
    min-width: 0;
    text-align: left !important;
}

.message-content * {
    text-align: left !important;
}

.message-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left !important;
}

.message-body * {
    text-align: left !important;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    text-align: left !important;
    justify-content: flex-start !important;
}

.message-header * {
    text-align: left !important;
}

.message-sender-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--theme-body-text) !important;
    line-height: 1.4;
    text-align: left !important;
}

.message-profession {
    font-size: 0.85rem;
    color: var(--theme-body-text-muted) !important;
    font-weight: 400;
    font-style: italic;
    text-align: left !important;
}

.message-text {
    color: var(--theme-body-text) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-line;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.message-text * {
    text-align: left !important;
    display: block !important;
}

/* Override any Bootstrap card or list-group styles that might center text */
.list-group-item.message .message-text,
.list-group-item.message .message-content .message-text,
.list-group-item.message .message-body .message-text,
#messages .message-text,
#messages .list-group-item.message .message-text {
    text-align: left !important;
    text-align-last: left !important;
    direction: ltr !important;
}

/* Force left alignment on all text nodes within messages */
#messages .list-group-item.message,
#messages .list-group-item.message div,
#messages .list-group-item.message p,
#messages .list-group-item.message span {
    text-align: left !important;
}

.message-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--theme-body-text-muted) !important;
    margin-top: 0.25rem;
    text-align: left !important;
    justify-content: flex-start !important;
}

.message-time * {
    text-align: left !important;
}

.message-time i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Messages container styling */
#messages {
    padding: 1rem 0.5rem !important;
}

#messages .list-group-item.message:first-child {
    padding-top: 0.5rem;
}

#messages .list-group-item.message:last-child {
    padding-bottom: 0.5rem;
}

/* Legacy activeConversation style - now handled by .conversation-item.activeConversation */
.list-group-item.activeConversation {
    border: 1px solid rgb(1, 10, 168) !important;
}

.agentEvent {
    border: none !important;
    background-color: var(--theme-card-background, rgb(248, 249, 250)) !important;
}

/* Agent Typing */

.typingIndicator {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--theme-card-background, #f1f0f0);
    padding: 5px 8px;
    border-radius: 10px;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    gap: 3px;
}

.dot {
    width: 4px;
    height: 4px;
    background-color: #3b82f6; /* Tailwind's blue-500 */
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

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

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

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        background-color: #3b82f6;
    }
    40% {
        transform: translateY(-4px);
        background-color: #60a5fa; /* lighter blue */
    }
}

/* Navigation Bar Styling */
.navbar-header {
    background: var(--theme-nav-background) !important;
    border-bottom: 1px solid var(--theme-border-color, #e0e0e0);
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.1);
}

.navbar-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    color: var(--theme-app-name-color) !important;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-actions .dropdown {
    position: relative;
}

.navbar-avatar-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    padding-right: 0.5rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

.navbar-avatar-toggle:hover {
    background-color: var(--theme-card-hover-background, #f8f9fa);
    border-color: var(--theme-border-color, #e0e0e0);
}

.navbar-avatar-toggle[aria-expanded="true"] {
    background-color: var(--theme-card-hover-background, #f8f9fa);
    border-color: var(--bs-primary, #0d6efd);
}

.navbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: 2px solid var(--theme-border-color, #e0e0e0);
    object-fit: cover;
    transition: all 0.2s ease-in-out;
}

.navbar-avatar-toggle:hover .navbar-avatar {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
}

.navbar-avatar-chevron {
    font-size: 0.7rem;
    color: #9ca3af;
    transition: transform 0.2s ease-in-out;
}

.navbar-avatar-toggle[aria-expanded="true"] .navbar-avatar-chevron {
    transform: rotate(180deg);
    color: var(--bs-primary, #0d6efd);
}

/* Dropdown Menu Improvements */
.navbar-actions .dropdown-menu {
    border: 1px solid var(--theme-border-color, #e0e0e0);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
    background-color: var(--theme-card-background, #ffffff);
    animation: dropdownFadeIn 0.2s ease-out;
    position: absolute !important;
    z-index: 1050;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    color: var(--theme-body-text, #212529);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
    margin: 0.125rem 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--theme-card-hover-background, #f8f9fa);
    color: var(--theme-body-text, #212529);
    transform: translateX(2px);
}

.dropdown-item-danger {
    color: var(--theme-body-text, #212529);
}

.dropdown-item-danger:hover,
.dropdown-item-danger:focus {
    background-color: var(--theme-card-hover-background, #f8f9fa);
    color: var(--theme-body-text, #212529);
}

.dropdown-icon {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--theme-body-text-secondary, #6b7280);
    transition: color 0.2s ease-in-out;
}

.dropdown-item:hover .dropdown-icon,
.dropdown-item:focus .dropdown-icon {
    color: var(--bs-primary, #0d6efd);
}

.dropdown-item-danger:hover .dropdown-icon,
.dropdown-item-danger:focus .dropdown-icon {
    color: var(--bs-primary, #0d6efd);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--theme-border-color, #e0e0e0);
    opacity: 0.5;
}

/* Theme stuff */
.themeNav {
    background: var(--theme-nav-background) !important;
}

.themeAppName {
    color: var(--theme-app-name-color) !important;
}

/* Subscription Page Styling */
.subscription-page-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.subscription-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.subscription-header {
    text-align: center;
    margin-bottom: 2rem;
}

.subscription-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-body-text, #212529);
    margin-bottom: 0.5rem;
}

.subscription-subtitle {
    font-size: 0.95rem;
    color: var(--theme-body-text-muted, #6b7280);
    margin: 0;
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.subscription-plan {
    background-color: var(--theme-card-background, #ffffff);
    border: 2px solid var(--theme-border-color, #e0e0e0);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.subscription-plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--bs-primary, #0d6efd);
}

.subscription-plan-featured {
    border-color: var(--bs-primary, #0d6efd);
    border-width: 2px;
}

.subscription-plan-active {
    background-color: rgba(13, 110, 253, 0.05);
    border-color: var(--bs-primary, #0d6efd);
}

.subscription-plan-badge-top {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--bs-primary, #0d6efd) 0%, #0a58ca 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.subscription-plan-badge-popular {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.subscription-plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.subscription-plan-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bs-primary, #0d6efd);
    transition: all 0.3s ease-in-out;
}

.subscription-plan:hover .subscription-plan-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 110, 253, 0.1) 100%);
}

.subscription-plan-icon-featured {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 110, 253, 0.1) 100%);
}

.subscription-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-body-text, #212529);
    margin: 0 0 0.5rem 0;
}

.subscription-plan-price {
    margin-top: 0.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-body-text, #212529);
}

.price-period {
    font-size: 1rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

.subscription-plan-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.subscription-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subscription-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--theme-body-text, #212529);
    font-size: 0.9rem;
    line-height: 1.5;
}

.subscription-feature-icon {
    color: #10b981;
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.subscription-plan-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--theme-border-color, #e0e0e0);
}

.subscription-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.subscription-plan-status {
    margin-bottom: 1rem;
    color: var(--theme-body-text, #212529);
    font-size: 0.9rem;
    line-height: 1.6;
}

.subscription-plan-status p {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-subscription-upgrade,
.btn-subscription-cancel,
.btn-subscription-resume {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    border: none;
}

.btn-subscription-upgrade {
    background: linear-gradient(135deg, var(--bs-primary, #0d6efd) 0%, #0a58ca 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-subscription-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
    color: white;
}

.btn-subscription-cancel {
    background-color: var(--theme-card-background, #ffffff);
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-subscription-cancel:hover {
    background-color: rgba(220, 53, 69, 0.1);
    transform: translateY(-2px);
    color: #dc3545;
}

.btn-subscription-resume {
    background-color: var(--bs-primary, #0d6efd);
    color: white;
}

.btn-subscription-resume:hover {
    background-color: #0a58ca;
    transform: translateY(-2px);
    color: white;
}

@media (max-width: 768px) {
    .subscription-plans {
        grid-template-columns: 1fr;
    }
    
    .subscription-container {
        padding: 0 1rem;
    }
}

/* Settings Page Styling */
.settings-page-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.settings-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.settings-header {
    text-align: center;
    margin-bottom: 2rem;
}

.settings-header-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--bs-primary, #0d6efd);
}

.settings-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-body-text, #212529);
    margin: 0 0 0.5rem 0;
}

.settings-subtitle {
    font-size: 0.95rem;
    color: var(--theme-body-text-muted, #6b7280);
    margin: 0;
}

.settings-card {
    background-color: var(--theme-card-background, #ffffff);
    border: 2px solid var(--theme-border-color, #e0e0e0);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.settings-item-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.settings-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--bs-primary, #0d6efd);
    flex-shrink: 0;
}

.settings-item-content {
    flex: 1;
}

.settings-item-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-body-text, #212529);
    margin-bottom: 0.25rem;
}

.settings-item-description {
    font-size: 0.85rem;
    color: var(--theme-body-text-muted, #6b7280);
    margin: 0;
    line-height: 1.4;
}

.settings-item-control {
    flex-shrink: 0;
}

.settings-select {
    padding: 0.625rem 1rem;
    padding-right: 2.5rem;
    border: 1.5px solid var(--theme-border-color, #e0e0e0);
    border-radius: 0.75rem;
    background-color: var(--theme-card-background, #ffffff);
    color: var(--theme-body-text, #212529);
    font-size: 0.95rem;
    min-width: 140px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.settings-select:hover {
    border-color: var(--bs-primary, #0d6efd);
}

.settings-select:focus {
    outline: none;
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.settings-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.settings-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.settings-switch-label:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-switch-input:checked + .settings-switch-label {
    background-color: var(--bs-primary, #0d6efd);
}

.settings-switch-input:checked + .settings-switch-label:before {
    transform: translateX(24px);
}

.settings-switch-input:focus + .settings-switch-label {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.settings-divider {
    height: 1px;
    background-color: var(--theme-border-color, #e0e0e0);
    margin: 0.5rem 0;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .settings-container {
        padding: 0 1rem;
    }
    
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .settings-item-control {
        width: 100%;
    }
    
    .settings-select {
        width: 100%;
    }
}

/* Agent Directory Styling */
.agent-directory-header {
    padding: 0.75rem;
    padding-top: 0.75rem;
    margin-top: 0;
}

.agent-search-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agent-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.agent-search-icon {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.agent-search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1.5px solid var(--theme-border-color, #e0e0e0);
    border-radius: 0.75rem;
    background-color: var(--theme-card-background, #ffffff);
    color: var(--theme-body-text, #212529);
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.agent-search-input:hover {
    border-color: #d0d0d0;
}

.agent-search-input:focus {
    outline: none;
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.agent-search-input::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

.agent-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agent-category-btn {
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--theme-border-color, #e0e0e0);
    border-radius: 0.75rem;
    background-color: var(--theme-card-background, #ffffff);
    color: var(--theme-body-text, #212529);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.agent-category-btn:hover {
    border-color: var(--bs-primary, #0d6efd);
    background-color: rgba(13, 110, 253, 0.05);
    color: var(--bs-primary, #0d6efd);
}

.agent-category-btn-active {
    background-color: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: white;
}

.agent-category-btn-active:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
    color: white;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0.75rem;
}

.agent-card {
    background-color: var(--theme-card-background, #ffffff);
    border: 2px solid var(--theme-border-color, #e0e0e0);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--bs-primary, #0d6efd);
}

.agent-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background-color: var(--theme-background, #f8f9fa);
}

.agent-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.agent-card:hover .agent-card-image {
    transform: scale(1.05);
}

.agent-card-favorite {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.agent-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-body-text, #212529);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.agent-card-profession {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bs-primary, #0d6efd);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-card-bio {
    font-size: 0.875rem;
    color: var(--theme-body-text-muted, #6b7280);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.agent-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--theme-border-color, #e0e0e0);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.agent-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    flex: 1;
}

.agent-card-btn-primary {
    background-color: var(--bs-primary, #0d6efd);
    color: white;
}

.agent-card-btn-primary:hover {
    background-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
    color: white;
}

.agent-card-btn-secondary {
    background-color: var(--theme-card-background, #ffffff);
    color: var(--theme-body-text, #212529);
    border: 1.5px solid var(--theme-border-color, #e0e0e0);
    flex: 0;
    padding: 0.5rem;
    min-width: 2.5rem;
}

.agent-card-btn-secondary:hover {
    background-color: var(--theme-card-hover-background, #f8f9fa);
    border-color: var(--bs-primary, #0d6efd);
    color: var(--bs-primary, #0d6efd);
}

.agent-card-btn-favorite {
    background-color: var(--theme-card-background, #ffffff);
    color: #9ca3af;
    border: 1.5px solid var(--theme-border-color, #e0e0e0);
    flex: 0;
    padding: 0.5rem;
    min-width: 2.5rem;
}

.agent-card-btn-favorite:hover {
    background-color: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
    color: #fbbf24;
}

.agent-card-btn-favorite-active {
    background-color: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
    color: #fbbf24;
}

.agent-card-btn-favorite-active:hover {
    background-color: rgba(251, 191, 36, 0.2);
}

.agent-subscription-message {
    padding: 1rem 0.75rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    border-top: 1px solid var(--theme-border-color, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.agent-subscription-message i {
    color: var(--bs-primary, #0d6efd);
}

.agent-subscription-message a {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.agent-subscription-message a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

body
{
    background: var(--theme-body-background) !important;
    color: var(--theme-body-text) !important;
}

/* Cards */
.bg-body-tertiary {
    background: var(--theme-card-background) !important;
}

.border {
    border: var(--bs-border-width) var(--bs-border-style) var(--theme-border-color) !important;
}

.list-group-item:first-child {
    border: var(--bs-list-group-border-width) solid var(--theme-border-color) !important;
}

.list-group-item+.list-group-item {
    border-top-width: 1px;
    border: var(--bs-list-group-border-width) solid var(--theme-border-color) !important;
}

/* Buttons */
.btn-primary {
    --bs-btn-color: var(--theme-button-text);
    --bs-btn-bg: var(--theme-button-primary-color);
    --bs-btn-border-color: var(--theme-button-primary-border);
    --bs-btn-hover-bg: var(--theme-button-primary-hover);
}

.btn-secondary {
    --bs-btn-color: var(--theme-button-text);
    --bs-btn-bg: var(--theme-button-secondary-color);
    --bs-btn-border-color: var(--theme-button-secondary-border);
    --bs-btn-hover-bg: var(--theme-button-secondary-hover);
}

.btn-secondary:hover {
    --bs-btn-border-color: var(--theme-button-secondary-border) !important;
    border-color: var(--theme-button-secondary-border) !important;
}

.btn:hover {
    background-color: var(--theme-button-secondary-color);
}


.zalando-sans-expanded-brand {
    font-family: "Zalando Sans Expanded", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

/* Modern chat-style input */
.chat-input {
    border-radius: 2rem;          /* pill shape */
    border: 1.5px solid var(--theme-input-border, #e0e0e0);   /* softer, more defined border */
    background-color: var(--theme-input-background, #f8f9fa);    /* light neutral bg */
    color: var(--theme-body-text, #212529);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* subtle depth */
    padding: 0.75rem 1.25rem;     /* comfortable padding */
    padding-right: 3.5rem;       /* space for send button */
    font-size: 0.95rem;           /* readable font size */
    line-height: 1.5;             /* better line height */
    transition: all 0.2s ease-in-out; /* smooth transitions */
    min-height: 2.75rem;          /* consistent height */
}

.chat-input:hover {
    border-color: var(--theme-input-border-hover, #d0d0d0);        /* slightly darker on hover */
    background-color: var(--theme-input-background-hover, #ffffff);    /* brighten on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); /* more depth */
}

.chat-input:focus {
    border-color: var(--theme-input-border-focus, var(--bs-primary, #0d6efd)); /* use theme primary color */
    background-color: var(--theme-input-background-focus, #fff);       /* brighten on focus */
    outline: none;                /* remove browser blue outline */
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1); /* enhanced glow with depth */
    transform: translateY(-1px);  /* subtle lift effect */
}

.chat-input::placeholder {
    color: var(--theme-placeholder-color, #9ca3af);               /* softer placeholder color */
    opacity: 0.8;                  /* slightly transparent */
}

/* Make the send button hover above input nicely */
.send-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3); /* nice shadow */
    transition: all 0.2s ease-in-out; /* smooth transitions */
    z-index: 10;                  /* ensure it's above input */
}

.send-btn:hover {
    background-color: #60a5fa !important;
    transform: translateY(-50%) scale(1.08); /* slight scale on hover, preserve translateY */
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.4); /* enhanced shadow */
    filter: brightness(1.05);    /* slight brightness increase */
}

.send-btn:active {
    transform: translateY(-50%) scale(0.96); /* press effect, preserve translateY */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); /* reduced shadow */
}

.send-btn i {
    font-size: 1rem;              /* icon size */
    transition: transform 0.2s ease-in-out;
}

.send-btn:hover i {
    transform: translateY(-1px);  /* slight lift on icon */
}

/* Message input container improvements */
.message-input-container {
    position: relative;
    padding: 0.75rem 0;
}

.message-input-container hr {
    margin: 0.5rem 0;
    opacity: 0.3;
    border-color: var(--theme-border-color, #dee2e6);
}

/* Conversation Participants Panel */
.conversationAgent {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--theme-card-background, #ffffff);
    border: 1px solid var(--theme-border-color, #e0e0e0);
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.conversationAgent:hover {
    background-color: var(--theme-card-hover-background, #f8f9fa);
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.conversationAgent img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid var(--theme-border-color, #e0e0e0);
    transition: all 0.2s ease-in-out;
}

.conversationAgent:hover img {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
}

.conversationAgent .fw-bold {
    flex: 1;
    font-size: 0.95rem;
    color: var(--theme-body-text, #212529);
    margin: 0;
}

.conversationAgent a {
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
}

.conversationAgent a[style*="color:rgb(240, 0, 0)"] {
    color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1);
}

.conversationAgent a[style*="color:rgb(240, 0, 0)"]:hover {
    background-color: rgba(220, 53, 69, 0.2);
    transform: scale(1.1);
}

.conversationAgent a[style*="color:rgb(0, 77, 255)"] {
    color: var(--bs-primary, #0d6efd) !important;
    background-color: rgba(13, 110, 253, 0.1);
}

.conversationAgent a[style*="color:rgb(0, 77, 255)"]:hover {
    background-color: rgba(13, 110, 253, 0.2);
    transform: scale(1.1);
}

#agentModalButton {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
}

#agentModalButton a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

#agentModalButton a:hover {
    background-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
    filter: brightness(1.05);
    color: white;
}

/* Add Agent Modal Improvements */
#addAgentsModal .modal-content {
    border-radius: 1rem;
    border: 2px solid var(--theme-border-color, #e0e0e0);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background-color: var(--theme-card-background, #ffffff);
}

#addAgentsModal .modal-header {
    border-bottom: 1px solid var(--theme-border-color, #e0e0e0);
    padding: 1.5rem 1.5rem 1.25rem;
    background-color: var(--theme-card-background, #ffffff);
    border-radius: 1rem 1rem 0 0;
}

#addAgentsModal .modal-title {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--theme-body-text, #212529);
    margin: 0;
}

#addAgentsModal .btn-close {
    filter: var(--theme-btn-close-filter, none);
}

#addAgentsModal .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    background-color: var(--theme-card-background, #ffffff);
}

#addAgentsModal .modal-body .scrollable {
    padding-right: 0.5rem;
}

#addAgentsModal .conversationAgent {
    margin-bottom: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
}

#addAgentsModal .conversationAgent:hover {
    background-color: var(--theme-card-hover-background, rgba(59, 130, 246, 0.05));
    border-color: #3b82f6;
}

#addAgentsModal .conversationAgent:last-child {
    margin-bottom: 0;
}

#addAgentsModal .conversationAgent .fw-bold {
    color: var(--theme-body-text, #212529);
    font-weight: 600;
}

#addAgentsModal .conversationAgent a {
    color: #3b82f6 !important;
    transition: all 0.2s ease-in-out;
}

#addAgentsModal .conversationAgent a:hover {
    color: #60a5fa !important;
    transform: scale(1.1);
}

/* Modal Search Input */
.modal-agent-search {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--theme-border-color, #e0e0e0);
    border-radius: 0.75rem;
    background-color: var(--theme-card-background, #ffffff);
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

.modal-agent-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modal-agent-search::placeholder {
    color: var(--theme-placeholder-color, #9ca3af);
    opacity: 0.7;
}

/* Typing indicator in conversation agents */
.conversationAgent .typingIndicator {
    margin: 0;
    padding: 0.25rem 0.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
}

.conversationAgent .typingIndicator .dot {
    width: 6px;
    height: 6px;
    margin: 0 2px;
}

/* Admin Editor Page Styles */
.admin-page-wrapper {
    min-height: calc(100vh - 80px);
    padding: 1.5rem 0;
}

.admin-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-body-text, #212529);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.admin-back-link:hover {
    background-color: var(--theme-card-background, #f8f9fa);
    color: var(--bs-primary, #0d6efd);
    transform: translateX(-2px);
}

.admin-back-link i {
    font-size: 0.85rem;
}

.admin-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--bs-primary, #0d6efd);
    flex-shrink: 0;
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-body-text, #212529);
    margin: 0 0 0.25rem 0;
}

.admin-subtitle {
    font-size: 0.95rem;
    color: var(--theme-body-text-muted, #6b7280);
    margin: 0;
}

.admin-card {
    background-color: var(--theme-card-background, #ffffff);
    border: 2px solid var(--theme-border-color, #e0e0e0);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--theme-border-color, #e0e0e0);
}

.admin-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.admin-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-body-text, #212529);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-section-title i {
    font-size: 1.1rem;
    color: var(--bs-primary, #0d6efd);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

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

.admin-form-group-full {
    grid-column: 1 / -1;
}

.admin-form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--theme-body-text, #212529);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-form-label i {
    font-size: 0.85rem;
    color: var(--bs-primary, #0d6efd);
}

.admin-form-input,
.admin-form-select,
.admin-form-textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--theme-border-color, #e0e0e0);
    border-radius: 0.75rem;
    background-color: var(--theme-card-background, #ffffff);
    color: var(--theme-body-text, #212529);
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
}

.admin-form-input:focus,
.admin-form-select:focus,
.admin-form-textarea:focus {
    outline: none;
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.admin-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-form-textarea-large {
    min-height: 200px;
}

.admin-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--theme-card-background, #f8f9fa);
    border: 1.5px solid var(--theme-border-color, #e0e0e0);
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
}

.admin-list-item:hover {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-list-item .admin-form-input {
    flex: 1;
    border: none;
    background-color: transparent;
    padding: 0;
}

.admin-list-item .admin-form-input:focus {
    box-shadow: none;
}

.admin-trait-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.admin-trait-name {
    flex: 0 0 200px;
}

.admin-trait-slider-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-trait-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--theme-border-color, #e0e0e0);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.admin-trait-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.admin-trait-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.admin-trait-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.admin-trait-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.admin-trait-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bs-primary, #0d6efd);
}

.admin-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background-color: var(--bs-primary, #0d6efd);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.admin-btn-add:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.admin-btn-add i {
    font-size: 0.8rem;
}

.admin-btn-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: transparent;
    color: #dc3545;
    border: 1.5px solid #dc3545;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}

.admin-btn-remove:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.05);
}

.admin-btn-remove i {
    font-size: 0.85rem;
}

.admin-switch-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--theme-card-background, #f8f9fa);
    border: 1.5px solid var(--theme-border-color, #e0e0e0);
    border-radius: 0.75rem;
}

.admin-switch-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-body-text, #212529);
    margin: 0;
    cursor: pointer;
}

.admin-switch-label i {
    font-size: 1rem;
    color: var(--bs-primary, #0d6efd);
}

.admin-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.admin-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-switch-label-element {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.admin-switch-label-element:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-switch-input:checked + .admin-switch-label-element {
    background-color: var(--bs-primary, #0d6efd);
}

.admin-switch-input:checked + .admin-switch-label-element:before {
    transform: translateX(24px);
}

.admin-form-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--theme-border-color, #e0e0e0);
    display: flex;
    justify-content: flex-end;
}

.admin-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background-color: var(--bs-primary, #0d6efd);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.admin-btn-submit:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.admin-btn-submit:active {
    transform: translateY(0);
}

.admin-btn-submit i {
    font-size: 0.9rem;
}

.admin-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--theme-body-text-muted, #6b7280);
    font-size: 0.9rem;
    margin: 0;
}

/* Landing Page Styles */
.landing-demo-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.landing-demo-container {
    text-align: center;
}

.landing-demo-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--theme-body-text, #212529);
}

.landing-hero {
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #0d6efd 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.landing-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.landing-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.landing-hero-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.landing-hero-logo img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.landing-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.landing-hero-subtitle {
    font-size: 1.5rem;
    margin: 0 0 2.5rem 0;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.landing-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background-color: white;
    color: #212529;
    text-decoration: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.landing-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    color: #212529;
}

.landing-cta-btn:active {
    transform: translateY(0);
}

.landing-cta-btn img {
    width: 20px;
    height: 20px;
}

.landing-benefits {
    padding: 5rem 0;
    background-color: var(--theme-card-background, #ffffff);
}

.landing-benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.landing-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.landing-benefit-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--theme-card-background, #ffffff);
    border: 2px solid var(--theme-border-color, #e0e0e0);
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
}

.landing-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary, #0d6efd);
}

.landing-benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bs-primary, #0d6efd);
    transition: all 0.3s ease;
}

.landing-benefit-card:hover .landing-benefit-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 110, 253, 0.1) 100%);
}

.landing-benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--theme-body-text, #212529);
}

.landing-benefit-description {
    font-size: 1rem;
    color: var(--theme-body-text-muted, #6b7280);
    margin: 0;
    line-height: 1.6;
}

.landing-agents {
    padding: 5rem 0;
    background-color: var(--theme-background, #f8f9fa);
}

.landing-agents-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.landing-agents-header {
    text-align: center;
    margin-bottom: 3rem;
}

.landing-agents-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--theme-body-text, #212529);
}

.landing-agents-subtitle {
    font-size: 1.1rem;
    color: var(--theme-body-text-muted, #6b7280);
    margin: 0;
}

.landing-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.landing-agent-card {
    background-color: var(--theme-card-background, #ffffff);
    border: 2px solid var(--theme-border-color, #e0e0e0);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary, #0d6efd);
}

.landing-agent-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--theme-border-color, #e0e0e0);
    transition: all 0.3s ease;
}

.landing-agent-card:hover .landing-agent-avatar {
    border-color: var(--bs-primary, #0d6efd);
    transform: scale(1.05);
}

.landing-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-agent-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.landing-agent-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--theme-body-text, #212529);
}

.landing-agent-profession {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bs-primary, #0d6efd);
    margin: 0 0 1rem 0;
    letter-spacing: 0.5px;
}

.landing-agent-bio {
    font-size: 0.95rem;
    color: var(--theme-body-text-muted, #6b7280);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.landing-footer {
    background-color: var(--theme-card-background, #ffffff);
    border-top: 1px solid var(--theme-border-color, #e0e0e0);
    padding: 2rem 0;
}

.landing-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.landing-footer-text {
    font-size: 0.9rem;
    color: var(--theme-body-text-muted, #6b7280);
    margin: 0;
}

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

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

/* Responsive adjustments for landing page */
@media (max-width: 768px) {
    .landing-hero {
        padding: 4rem 0;
    }

    .landing-hero-title {
        font-size: 2.5rem;
    }

    .landing-hero-subtitle {
        font-size: 1.25rem;
    }

    .landing-cta-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .landing-benefits {
        padding: 3rem 0;
    }

    .landing-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .landing-agents {
        padding: 3rem 0;
    }

    .landing-agents-title {
        font-size: 2rem;
    }

    .landing-agents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}