* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: #fafafa;
    color: #262626;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 24px 24px 24px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    margin-bottom: 24px;
    flex-shrink: 0;
}

.header-content {
    height: 64px;
    background: white;
    border-bottom: 1px solid #D9D9D9;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: relative;
    z-index: 20;
    margin-left: -24px;
    margin-right: -24px;
}

.header-text {
    text-align: left;
}

.header-text h1 {
    color: black;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 32px;
}

.header-text p {
    color: white;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.user-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-icon-btn:hover .user-icon-circle {
    background-color: #06b6d4;
}

.user-icon-btn .material-icons {
    font-family: 'Material Icons';
    font-size: 24px;
    color: #4b5563;
    transition: all 0.2s ease;
}

.user-icon-btn:hover .material-icons {
    color: white;
}

header h1 {
    font-size: 38px;
    line-height: 46px;
    color: #262626;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 16px;
    line-height: 24px;
    color: #8c8c8c;
}

/* Main Layout */
.main-layout {
    display: flex;
    flex: 1;
    gap: 24px;
    min-height: 0;
    position: relative;
    overflow: hidden;
    height: calc(100vh - 100px); /* Adjust based on your header height */
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    align-items: center;
    gap: 24px;
    position: relative;
    height: 100%;
}

.right-panel {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 6px 8px 0px rgba(0, 0, 0, 0.04);
    position: fixed;
    bottom: 0;
    right: 24px;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(0);
    overflow: hidden;
}

.right-panel.minimized {
    transform: translateY(calc(100% - 50px));
    height: 50px;
    overflow: hidden;
}


.unread-badge {
    background: #ff4d4f;
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.unread-badge span {
    line-height: 1;
}

.minimize-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #8c8c8c;
    font-size: 20px;
    z-index: 1001;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Minimize button in chat header */
.chat-header .minimize-button {
    position: absolute;
    top: 10px;
    right: 10px;
}


.minimize-button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #434343;
}

.chat-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 6px 8px 0px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: height 0.3s ease;
}

.minimized .chat-container {
    padding: 0;
}

.minimized .chat-messages,
.minimized .chat-input-container,
.minimized .agent-status {
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.minimized .chat-container .chat-header {
    opacity: 1;
    pointer-events: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-right: 40px; /* Make room for minimize button */
}

.chat-header h3 {
    color: #262626;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

/* Agent Ring */
.agent-ring-container {
    position: relative;
    width: 100%;
    min-height: 224px;
    max-height: 224px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
    background: linear-gradient(46.69deg, #1677FF -32.27%, #FF85C0 130.89%);
;
    padding: 24px 0;
    margin-bottom: 24px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 6px 8px 0px rgba(0, 0, 0, 0.04);
    overflow: hidden; /* Ensure circles don't extend beyond container */
}

/* Drag cursor when dragging over the container */
.agent-ring-container.drag-over {
    cursor: copy;
}

.agent-ring {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    margin: 0 auto;
}

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

/* Concentric expanding circles for drag-over effect */
.ripple-circle {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 1);
    background: radial-gradient(circle, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.4) 100%);
    animation: expandCircle 10s ease-out forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes expandCircle {
    0% {
        width: 56px;
        height: 56px;
        opacity: 1;
    }
    100% {
        width: calc(100vw - 96px); /* Expand to full viewport width minus margins */
        height: calc(100vw - 96px); /* Same as width to maintain perfect circle */
        opacity: 0;
    }
}

/* Drop-specific ripple effect */
.drop-ripple {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.6) 100%);
    animation: expandDropCircle 2s linear forwards;
}

@keyframes expandDropCircle {
    0% {
        width: 56px;
        height: 56px;
        opacity: 1;
    }
    100% {
        width: calc(100vw - 96px);
        height: calc(100vw - 96px);
        opacity: 0;
    }
}



/* Context Nodes */
.context-node {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

/* Context Node Badges */
.context-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    z-index: 6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.context-badge.brand {
    background: #9254DE;
}

.context-badge.knowledge {
    background: #EB2F96;
}

.context-badge.capabilities {
    background: #FFA940;
}

.context-badge.documents {
    background: #52c41a;
}

.context-badge.assistants {
    background: #52C41A;
}

.context-node:hover {
    border-color: rgba(255, 255, 255, 1);
}

.context-node svg[data-lucide] {
    color: rgba(255, 255, 255, 1);
    stroke-width: 1;
}

.context-node svg[data-lucide]:hover {
    color: rgba(255, 255, 255, 1);
}


/* Position the context nodes in a 2x3 grid in the top left */
.knowledge-node {
    top: 16px;
    left: 16px;
}

.capabilities-node {
    top: 16px;
    left: 72px; /* 16px + 40px + 16px spacing */
}

.assistants-node {
    top: 72px; /* 16px + 40px + 16px spacing */
    left: 16px;
}

.documents-node {
    top: 72px;
    left: 72px;
}

.brand-node {
    top: 128px; /* 72px + 40px + 16px spacing */
    left: 44px; /* Center the single item in the third row */
}

.ring-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.ring-icon-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    filter: blur(2px);
}

.ring-icon-2.fade-in {
    opacity: 1;
    animation: rippleExpand .8s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        width: 56px;
        height: 56px;
        opacity: .8;
    }
    100% {
        width: 180px;
        height: 180px;
        opacity: 0;
    }
}

.pinwheel-svg {
    width: 100%;
    height: 100%;
}

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



.ring-text {
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, .65);
    position: absolute;
    top: calc(50% + 56px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
    white-space: nowrap;
}

/* Capabilities Section */
.capabilities-section {
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - 400px); /* Fill remaining space below agent ring */
}

.capabilities-section h3 {
    text-align: center;
    margin-bottom: 24px;
    color: #262626;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
}

.capabilities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 15px;
    width: 100%;
    padding: 5px;
    justify-content: flex-start;
}

/* Capabilities Section Headers */
.capabilities-section-header {
    width: 100%;
    margin: 24px 0 16px 0;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.capabilities-section-header:first-child {
    margin-top: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

.section-count {
    font-size: 14px;
    color: #8c8c8c;
    font-weight: 500;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Lato', sans-serif;
}

.capability-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    cursor: grab;
    transition: all 0.2s ease;
    border: 2px solid rgb(217, 217, 217);
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 6px 8px 0px rgba(0, 0, 0, 0.04);
    position: relative;
    height: 80px;
    width: 300px;
    min-width: 300px;
    max-width: 400px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 16px;
}



.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 48px -8px rgba(0, 0, 0, 0.06), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 12px 48px 0px rgba(0, 0, 0, 0.04);
    border-color: #1677ff;
}

.capability-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #52c41a;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.capability-card.added .capability-status {
    opacity: 1;
}

.capability-card.added {
    border-color: #1677FF;
}

.capability-card.added {
    cursor: pointer;
}

/* Capabilities Section */
.capabilities-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.capabilities-header h3 {
    margin: 0;
    text-align: left;
}

.search-container {
    width: 100%;
    margin-bottom: 8px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    color:#000,88%;
}

/* Search toggle button (always visible) */
.search-toggle-btn {
    background: rgb(0,0,0,0.02);
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-toggle-btn:hover {
    background: #1677FF;
    box-shadow: 0px 6px 48px -8px rgba(0, 0, 0, 0.06), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 12px 48px 0px rgba(0, 0, 0, 0.04);
}

.search-toggle-btn .search-icon {
    color: #000,88%;
    width: 16px;
    height: 16px;
}

.search-toggle-btn .search-icon:hover{
    color: #fff;
    width: 16px;
    height: 16px;
}

/* Expandable search container */
.search-expandable {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 6px 8px 0px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.search-expandable.active {
    opacity: 1;
    transform: scaleX(1);
    pointer-events: auto;
}

.search-expandable .search-icon {
    position: absolute;
    left: 12px;
    color: #666;
    width: 16px;
    height: 16px;
    z-index: 1;
}

.search-input {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    width: 100%;
    padding: 11px 11px 11px 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 44px;
    outline: none;
}

.search-input:focus {
    outline: none;
}

.search-expandable:focus-within {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.clear-search-btn i {
    width: 14px;
    height: 14px;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* Filter Section */
.filter-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.clear-filters-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: rgb(0,0,0,0.02);
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #000,88%;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-tag:hover {
    border-color: #1677FF;
    color: #3b82f6;
}

.filter-tag.active {
    background: #3b82f6;
    border-color: #1677FF;
    color: #FFF;
}

.filter-tag.active:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Chat Interface */
.chat-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 6px 8px 0px rgba(0, 0, 0, 0.04);
}


.agent-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #52c41a;
    animation: pulse 2s infinite;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 8px;
    min-height: 0;
}

.message {
    margin-bottom: 16px;
    display: flex;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.88);
}

.agent-message {
    justify-content: flex-start;
}

.agent-message .message-content {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid #F0F0F0;
    border-radius: 16px 16px 16px 4px;
    margin-right: auto;
}

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

.user-message .message-content {
    background: #F0F5FF;
    border-radius: 16px 16px 4px 16px;
    margin-left: auto;
}

/* Markdown Styling */
.message-content h1 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    margin: 8px 0;
    color: #262626;
}

.message-content h2 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    margin: 6px 0;
    color: #262626;
}

.message-content h3 {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    margin: 4px 0;
    color: #4094ff;
}

.message-content strong {
    font-weight: 600;
    color: #262626;
}

.message-content em {
    font-style: italic;
    color: #595959;
}

.message-content del {
    text-decoration: line-through;
    color: #8c8c8c;
}

.message-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #262626;
}

.message-content pre {
    background: #f5f5f5;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    overflow-x: auto;
}

.message-content pre code {
    background: none;
    padding: 0;
    color: #262626;
    font-size: 0.85em;
    line-height: 1.4;
}

.message-content ul, .message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 4px 0;
    line-height: 1.4;
}

.message-content a {
    color: #262626;
    text-decoration: underline;
    font-weight: 500;
}

.message-content a:hover {
    color: #0958d9;
    text-decoration: underline;
}

.chat-input-container {
    display: flex;
    gap: 12px;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: white;
    color: #262626;
    font-size: 16px;
    line-height: 24px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}

#chatInput:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

#sendButton {
    padding: 12px 20px;
    background: #1677ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}

#sendButton:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 48px -8px rgba(0, 0, 0, 0.06), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 12px 48px 0px rgba(0, 0, 0, 0.04);
}



.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 48px -8px rgba(0, 0, 0, 0.06), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 12px 48px 0px rgba(0, 0, 0, 0.04);
    border-color: #1677ff;
}


.default-card {
    background: rgb(255, 255, 255);
    position: relative;
    border-color: #1677FF;

}

.capability-card.added .capability-status {
    opacity: 1;
}

.capability-card.added {
    border-color: #1677FF;
}

.capability-card.added {
    cursor: pointer;
}

.capability-card.added:hover {
    transform: translateY(-4px);
}

/* Knowledge Modal */
.knowledge-textarea {
    width: 100%;
    min-height: 300px;
    font-family: 'Courier New', Courier, monospace;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    resize: vertical;
    background-color: #f9fafb;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.knowledge-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Message styles */
.message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.message.success {
    background-color: #dcfce7;
    color: #166534;
    border-left: 4px solid #16a34a;
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Modal form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #4b5563;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

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

.modal-overlay.active,
.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 6px 8px 0px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #262626;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #8c8c8c;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #262626;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #8c8c8c;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #f5f5f5;
    color: #262626;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #262626;
    font-size: 14px;
    line-height: 22px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    color: #262626;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #1677ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

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

.user-profile-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.user-profile-section .form-group {
    margin-bottom: 0;
}

.user-profile-section .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding: 20px 24px 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #1677ff;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 48px -8px rgba(0, 0, 0, 0.06), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 12px 48px 0px rgba(0, 0, 0, 0.04);
}

.btn-secondary {
    background: #f5f5f5;
    color: #595959;
    border: 1px solid #f0f0f0;
}

.btn-secondary:hover {
    background: #f0f0f0;
    color: #262626;
}

.capability-card:active {
    cursor: grabbing;
}

.capability-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(270deg, rgb(245, 245, 245) 0%, rgb(255, 255, 255) 100%);
    flex-shrink: 0;
}

/* Icon sizing */
.card-icon svg {
    width: 16px;
    height: 16px;
}

.card-icon i {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card icon styling for added class */
.added .card-icon {
    color: #0958D9;
    background-color: #E6F4FF;
    border: 1px solid #69B1FF;
}

.card-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: rgb(51, 51, 51);
    margin: 0 0 4px 0;
    font-family: 'Lato', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.card-description {
    color: rgb(102, 102, 102);
    font-size: 12px;
    line-height: 18px;
    font-family: 'Lato', sans-serif;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 100%;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px;
    min-width: 0;
    overflow: hidden;
}

/* Drag and Drop States */
.drag-over {
    border-color: #1677ff !important;
    box-shadow: 0px 6px 48px -8px rgba(0, 0, 0, 0.06), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 12px 48px 0px rgba(0, 0, 0, 0.04) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #1677ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0958d9;
}

/* Brand Knowledge Modal Styles */
.brand-modal-content {
    max-width: 800px;
}

.brand-assets-section {
    margin-bottom: 24px;
}

.brand-assets-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 16px;
}

.brand-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.brand-asset-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.brand-asset-item:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08);
    border-color: #1677ff;
}

.asset-thumbnail {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-asset-item:hover .asset-image {
    transform: scale(1.05);
}

.asset-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.brand-asset-item:hover .asset-overlay {
    transform: translateY(0);
}

.asset-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.brand-description-textarea {
    width: 100%;
    min-height: 120px;
    font-family: 'Lato', sans-serif;
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    resize: vertical;
    background-color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.brand-description-textarea:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.json-toggle-section {
    margin-bottom: 16px;
    text-align: right;
}

.json-toggle-section .btn {
    font-size: 14px;
    padding: 8px 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }
    
    .right-panel {
        width: 100%;
        height: 400px;
    }
    
    .left-panel {
        flex: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 24px;
        height: auto;
        min-height: 100vh;
    }
    
    .main-layout {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 30px;
        font-weight: 700;
        line-height: 38px;
    }
    
    .agent-ring {
        width: 250px;
        height: 250px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-container {
        padding: 24px;
    }
    
    .right-panel {
        height: 300px;
    }
}

/* Capabilities Knowledge Modal Styles */
.capabilities-knowledge-section {
    margin-bottom: 24px;
}

.capabilities-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.capability-knowledge-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 6px 8px 0px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.capability-knowledge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 8px 12px 0px rgba(0, 0, 0, 0.08);
}

.capability-knowledge-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.capability-knowledge-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #595959;
}

.capability-knowledge-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.capability-knowledge-description {
    font-size: 14px;
    color: #595959;
    line-height: 20px;
    margin-bottom: 16px;
}

.capability-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.benefit-badge {
    background: #e6f7ff;
    color: #1677ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #91d5ff;
}

.benefit-badge:nth-child(2n) {
    background: #f6ffed;
    color: #52c41a;
    border-color: #b7eb8f;
}

.benefit-badge:nth-child(3n) {
    background: #fff7e6;
    color: #fa8c16;
    border-color: #ffd591;
}

.benefit-badge:nth-child(4n) {
    background: #f9f0ff;
    color: #722ed1;
    border-color: #d3adf7;
}

.benefit-badge:nth-child(5n) {
    background: #fff1f0;
    color: #f5222d;
    border-color: #ffa39e;
}

/* ANT Design Compliant Tab Styles */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
    padding: 0;
    position: relative;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    color: #8c8c8c;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    flex: 1;
    max-width: none;
    margin: 0;
    outline: none;
    font-family: inherit;
}

.tab-button:hover {
    color: #1677ff;
    background: rgba(22, 119, 255, 0.06);
}

.tab-button.active {
    color: #1677ff;
    background: white;
    font-weight: 600;
    border-bottom: 2px solid #1677ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1677ff;
    border-radius: 1px 1px 0 0;
}

.tab-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.2);
}

.tab-button:first-child {
    border-radius: 8px 0 0 0;
}

.tab-button:last-child {
    border-radius: 0 8px 0 0;
}

.tab-button:only-child {
    border-radius: 8px 8px 0 0;
}

.tab-content {
    position: relative;
    min-height: 200px;
}

.tab-panel {
    display: none;
    padding: 0;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
    display: block;
}

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

/* Tab Panel Content Styling */
.tab-panel .goals-section,
.tab-panel .activity-section,
.tab-panel .zeta-insights-section {
    padding: 0;
}

.tab-panel h3 {
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 16px 0;
}

.tab-panel .section-description {
    font-size: 14px;
    line-height: 22px;
    color: #8c8c8c;
    margin: 0 0 24px 0;
}

/* Responsive Tab Design */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
        border-radius: 8px;
        border-bottom: none;
        margin-bottom: 16px;
    }
    
    .tab-button {
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        justify-content: flex-start;
        padding: 16px 20px;
    }
    
    .tab-button:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .tab-button:last-child {
        border-radius: 0 0 8px 8px;
        border-bottom: none;
    }
    
    .tab-button:only-child {
        border-radius: 8px;
        border-bottom: none;
    }
    
    .tab-button.active {
        border-bottom: 1px solid #f0f0f0;
        box-shadow: none;
    }
    
    .tab-button.active::after {
        display: none;
    }
}

/* Accessibility Improvements */
.tab-button:focus-visible {
    outline: 2px solid #1677ff;
    outline-offset: 2px;
}

.tab-button[aria-selected="true"] {
    color: #1677ff;
    background: white;
    font-weight: 600;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .tab-button {
        border: 1px solid transparent;
    }
    
    .tab-button.active {
        border-color: #1677ff;
        background: #f0f5ff;
    }
    
    .tab-navigation {
        border-color: #d9d9d9;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .tab-button {
        transition: none;
    }
    
    .tab-panel {
        animation: none;
    }
}

/* Tab Content Components Styling */

/* Goals Tab Components */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.goal-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goal-item:hover {
    border-color: #1677ff;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.1);
    transform: translateY(-2px);
}

.goal-item.selected {
    border-color: #1677ff;
    background: #f0f5ff;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.15);
}

.goal-item input[type="checkbox"] {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 18px;
    height: 18px;
    accent-color: #1677ff;
    cursor: pointer;
}

.goal-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    line-height: 24px;
    margin: 0;
    padding-right: 30px;
}

.goal-description {
    font-size: 14px;
    color: #8c8c8c;
    line-height: 22px;
    margin: 0;
}

.goal-category {
    font-size: 12px;
    font-weight: 500;
    color: #1677ff;
    background: rgba(22, 119, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
    margin-top: auto;
}

/* Activity Tab Components */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.tracking-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d9d9d9;
    transition: 0.3s;
    border-radius: 24px;
}

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

input:checked + .toggle-slider {
    background-color: #1677ff;
}

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

.toggle-label {
    font-size: 14px;
    color: #595959;
    font-weight: 500;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.session-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.session-item:hover {
    border-color: #1677ff;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.1);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.session-purpose {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    line-height: 24px;
    margin: 0;
}

.session-timestamp {
    font-size: 12px;
    color: #8c8c8c;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 16px;
}

.session-details {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.session-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #595959;
}

.session-detail-icon {
    width: 16px;
    height: 16px;
    color: #8c8c8c;
}

.session-description {
    font-size: 14px;
    color: #8c8c8c;
    line-height: 22px;
    margin: 0;
}

/* Zeta Insights Tab Components */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.insight-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.insight-item:hover {
    border-color: #1677ff;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.1);
    transform: translateY(-2px);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.insight-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-label {
    font-size: 12px;
    font-weight: 600;
    color: #1677ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.confidence-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.insight-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    line-height: 24px;
    margin: 0 0 12px 0;
}

.insight-snippet {
    font-size: 14px;
    color: #595959;
    line-height: 22px;
    margin: 0 0 16px 0;
}

.insight-sources {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.sources-label {
    font-size: 12px;
    font-weight: 600;
    color: #8c8c8c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.sources-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.source-tag {
    background: #f5f5f5;
    color: #595959;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e8e8e8;
}

/* Responsive Design for Tab Content */
@media (max-width: 768px) {
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .session-timestamp {
        margin-left: 0;
    }
    
    .session-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .goal-item,
    .session-item,
    .insight-item {
        padding: 16px;
    }
}

/* Brand Knowledge Tab Components */
.brand-assets-section {
    margin-bottom: 24px;
}

.brand-assets-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 16px 0;
}

.brand-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.brand-asset-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.brand-asset-item:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08);
    border-color: #1677ff;
}

.asset-thumbnail {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-asset-item:hover .asset-image {
    transform: scale(1.05);
}

.asset-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.brand-asset-item:hover .asset-overlay {
    transform: translateY(0);
}

.asset-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.brand-description-textarea {
    width: 100%;
    min-height: 120px;
    font-family: 'Lato', sans-serif;
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    resize: vertical;
    background-color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.brand-description-textarea:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

/* Empty State Styling */
.goals-grid:empty::after,
.sessions-list:empty::after,
.insights-grid:empty::after {
    content: "No items available";
    display: block;
    text-align: center;
    color: #8c8c8c;
    font-style: italic;
    padding: 40px 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #d9d9d9;
}

/* Enhanced Tab Content Spacing */
.tab-panel .goals-section,
.tab-panel .activity-section,
.tab-panel .zeta-insights-section,
.tab-panel .brand-assets-section {
    padding: 0;
    margin: 0;
}

.tab-panel .form-group {
    margin-bottom: 20px;
}

.tab-panel .form-group:last-child {
    margin-bottom: 0;
}

/* Assistants Modal Styles */
.assistants-section {
    margin-bottom: 24px;
}

.assistants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.assistants-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

.create-assistant-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
}

.create-assistant-btn i {
    width: 16px;
    height: 16px;
}

.assistants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.assistant-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 6px 8px 0px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.assistant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08), 0px 0px 1px 0px rgba(0, 0, 0, 0.08), 0px 8px 12px 0px rgba(0, 0, 0, 0.08);
    border-color: #1677ff;
}

.assistant-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.assistant-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #595959;
    font-size: 20px;
}

.assistant-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin: 0;
    flex: 1;
}

.assistant-category {
    font-size: 12px;
    font-weight: 500;
    color: #1677ff;
    background: rgba(22, 119, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.assistant-description {
    font-size: 14px;
    color: #595959;
    line-height: 20px;
    margin-bottom: 16px;
}

.assistant-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.capability-badge {
    background: #e6f7ff;
    color: #1677ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #91d5ff;
}

.capability-badge:nth-child(2n) {
    background: #fff7e6;
    color: #fa8c16;
    border-color: #ffd591;
}

.capability-badge:nth-child(3n) {
    background: #f6ffed;
    color: #52c41a;
    border-color: #b7eb8f;
}

.capability-badge:nth-child(4n) {
    background: #f9f0ff;
    color: #722ed1;
    border-color: #d3adf7;
}

.capability-badge:nth-child(5n) {
    background: #fff1f0;
    color: #f5222d;
    border-color: #ffa39e;
}

.assistant-meta {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 12px;
    color: #8c8c8c;
    font-weight: 500;
}

.user-assistant-card {
    border-left: 4px solid #52c41a;
}

.user-assistant-card .assistant-icon {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

.zeta-certified-card {
    border-left: 4px solid #1677ff;
}

.zeta-certified-card .assistant-icon {
    background: rgba(22, 119, 255, 0.1);
    color: #1677ff;
}

/* Capability Details Modal Styles */
.capability-details-content {
    margin-bottom: 24px;
}

.capability-details-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.capability-details-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f5ff, #e6f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1677ff;
    flex-shrink: 0;
}

.capability-details-icon i {
    width: 32px;
    height: 32px;
}

.capability-details-info {
    flex: 1;
}

.capability-details-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 8px 0;
    line-height: 32px;
}

.capability-details-info p {
    font-size: 16px;
    color: #595959;
    line-height: 24px;
    margin: 0;
}

.capability-details-section {
    margin-bottom: 24px;
}

.capability-details-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 12px 0;
    line-height: 28px;
}

.capability-benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.capability-benefit-item {
    background: #f0f5ff;
    color: #1677ff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d6e4ff;
}

#addToAthenaBtn {
    display: flex;
    align-items: center;
    gap: 8px;
}

#addToAthenaBtn i {
    width: 16px;
    height: 16px;
}

/* Responsive Design for Assistants */
@media (max-width: 768px) {
    .assistants-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .assistants-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .create-assistant-btn {
        align-self: stretch;
        justify-content: center;
    }
    
    .assistant-card {
        padding: 16px;
    }
    
    .capability-details-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .capability-details-icon {
        width: 80px;
        height: 80px;
    }
    
    .capability-details-icon i {
        width: 40px;
        height: 40px;
    }
}
