apps/agent_web/priv/static/css/style.css
:root {
    /* Primary Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    
    /* Secondary Colors */
    --secondary-color: #14b8a6;
    --secondary-dark: #0d9488;
    
    /* Accent Colors */
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app, #root {
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(200px, 250px) 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.sidebar:hover {
    box-shadow: var(--shadow-lg);
}

.sidebar h2 {
    margin-bottom: 1.25rem;
    color: var(--gray-800);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar h2::before {
    content: '⚡';
    font-size: 1.5rem;
}

.agent-list {
    list-style: none;
}

.agent-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.agent-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.agent-item:hover {
    background: white;
    border-color: var(--primary-light);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.agent-item:hover::before {
    transform: translateX(100%);
}

.agent-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.tab:hover {
    color: var(--gray-800);
    background: var(--gray-50);
}

.tab.active {
    color: var(--primary-color);
    background: transparent;
}

.tab.active::after {
    width: 100%;
}

.tab-content {
    min-height: 400px;
}

.control-panel {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0.75rem;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.example-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.example-card:hover::before {
    transform: scaleX(1);
}

.example-card h3 {
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.875rem 1.25rem;
    border-radius: 1.25rem;
    max-width: 70%;
    animation: fadeInUp 0.3s ease-out;
    position: relative;
}

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

.message.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.message.agent {
    background: var(--gray-100);
    color: var(--gray-800);
    border-bottom-left-radius: 0.25rem;
    border: 1px solid var(--gray-200);
}

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

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.output-console {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    min-height: 300px;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.status-indicator.online {
    background: var(--success-color);
}

.status-indicator.offline {
    background: var(--error-color);
}

.status-indicator.busy {
    background: var(--warning-color);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

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

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}

/* Monitoring Styles */
.monitoring, .analytics {
    padding: 20px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.metric-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.metric-card p {
    margin: 5px 0;
    font-size: 14px;
}

.monitoring-chart {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.agent-monitor-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.agent-monitor-card h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.agent-monitor-card p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.status-alive {
    color: #27ae60;
    font-weight: bold;
}

.status-dead {
    color: #e74c3c;
    font-weight: bold;
}

/* Analytics Styles */
.analytics-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h4 {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.analytics-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.template-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-top: 4px solid #3498db;
}

.template-card h4 {
    margin-bottom: 10px;
}

.template-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.agent-details pre {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    margin-bottom: 15px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Enhanced Dashboard Components */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.widget-header {
    background: #3498db;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    justify-content: between;
    align-items: center;
}

.widget-body {
    padding: 20px;
}

.widget-icon {
    font-size: 20px;
    margin-left: auto;
}

/* Performance Metrics */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.performance-metric {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.performance-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.performance-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
}

/* Real-time indicators */
.status-indicator.pulsing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Network topology */
.network-topology {
    min-height: 400px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.node:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.node.agent { background: #2ecc71; }
.node.coordinator { background: #e74c3c; }
.node.worker { background: #f39c12; }

.connection {
    position: absolute;
    height: 2px;
    background: #bdc3c7;
    transform-origin: left center;
    opacity: 0.7;
}

.connection.active {
    background: #3498db;
    opacity: 1;
    animation: flow 2s linear infinite;
}

@keyframes flow {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* Log viewer */
.log-viewer {
    height: 300px;
    overflow-y: auto;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    padding: 15px;
    border-radius: 6px;
}

.log-entry {
    margin-bottom: 2px;
    padding: 2px 0;
}

.log-entry.error { color: #f92672; }
.log-entry.warning { color: #fd971f; }
.log-entry.info { color: #66d9ef; }
.log-entry.success { color: #a6e22e; }

/* Resource usage charts */
.resource-chart {
    height: 200px;
    position: relative;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%),
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%),
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

/* Agent cards enhanced */
.agent-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    border-left: 4px solid #3498db;
    transition: all 0.3s;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.agent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.agent-card-title {
    font-weight: 600;
    color: #2c3e50;
}

.agent-card-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.agent-card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.agent-card-metric {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.agent-card-metric-value {
    font-weight: bold;
    color: #2c3e50;
}

.agent-card-metric-label {
    font-size: 11px;
    color: #7f8c8d;
}

.agent-card-actions {
    display: flex;
    gap: 8px;
}

/* Activity feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

.activity-icon.info { background: #3498db; }
.activity-icon.success { background: #2ecc71; }
.activity-icon.warning { background: #f39c12; }
.activity-icon.error { background: #e74c3c; }

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 3px;
}

.activity-description {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 3px;
}

.activity-time {
    font-size: 11px;
    color: #bdc3c7;
}

/* Control panels */
.control-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.control-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.control-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.control-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #3498db;
}

.control-label {
    font-size: 12px;
    text-align: center;
    color: #2c3e50;
}

/* Notification system */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    max-width: 350px;
}

.notification {
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
    animation: slideIn 0.3s ease-out;
}

.notification.success { border-left-color: #2ecc71; }
.notification.warning { border-left-color: #f39c12; }
.notification.error { border-left-color: #e74c3c; }

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

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.notification-message {
    font-size: 13px;
    color: #7f8c8d;
}

/* Search and filter */
.search-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.filter-dropdown {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

/* Knowledge Base Styles */
.knowledge-base {
    padding: 20px;
}

.knowledge-domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.knowledge-domain-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.knowledge-domain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

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

.domain-header h4 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.1rem;
}

.domain-actions {
    display: flex;
    gap: 8px;
}

.domain-info {
    font-size: 14px;
    color: var(--gray-600);
}

.file-list {
    margin-top: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid var(--gray-200);
}

.file-name {
    font-weight: 500;
}

.file-size {
    color: var(--gray-500);
    font-size: 12px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.status-item {
    text-align: center;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 6px;
}

.status-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.status-label {
    font-size: 12px;
    color: var(--gray-600);
    text-transform: uppercase;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--gray-700);
}

.knowledge-search-results {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

.search-info {
    background: var(--gray-50);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.search-info p {
    margin: 5px 0;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 15px;
    background: white;
}

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

.result-header h4 {
    margin: 0;
    color: var(--gray-800);
}

.relevance-score {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.result-preview {
    background: var(--gray-50);
    padding: 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.result-path {
    font-size: 11px;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

.large-modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.domain-contents {
    max-height: 500px;
    overflow-y: auto;
}

.file-detail {
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    margin-bottom: 15px;
}

.file-header {
    background: var(--gray-50);
    padding: 10px 15px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-header h4 {
    margin: 0;
    font-size: 1rem;
}

.file-meta {
    font-size: 12px;
    color: var(--gray-600);
}

.file-preview {
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.4;
    background: white;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 1;
    }
    
    .content {
        order: 0;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .knowledge-domains-grid {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .domain-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}