/* Mem0 Status Dashboard Styles */

.mem0-status-dashboard {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.status-header h3 {
    margin: 0;
    color: #333;
}

.status-indicator {
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    background: #f0f0f0;
}

.status-indicator.active {
    color: #28a745;
    background: #d4edda;
}

.status-indicator.inactive {
    color: #dc3545;
    background: #f8d7da;
}

.btn-refresh {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-refresh:hover {
    background: #0056b3;
}

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

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

.status-card.full-width {
    grid-column: 1 / -1;
}

.status-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.status-card h5 {
    margin: 15px 0 10px;
    color: #6c757d;
}

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

.status-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.status-table td:first-child {
    color: #6c757d;
    width: 50%;
}

.status-table td:last-child {
    font-weight: 500;
}

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

.capability {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
}

.capability.enabled {
    background: #d4edda;
    color: #155724;
}

.capability.disabled {
    background: #f8d7da;
    color: #721c24;
}

.memory-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.memory-count {
    padding: 5px 10px;
    background: #e7f3ff;
    border-radius: 4px;
    font-size: 14px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.feature-item {
    padding: 2px 8px;
    background: #e9ecef;
    border-radius: 3px;
    font-size: 12px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.config-key {
    color: #6c757d;
    font-weight: 500;
}

.config-value {
    color: #333;
    font-family: monospace;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.btn-action {
    margin-top: 15px;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-action:hover {
    background: #218838;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-error strong {
    color: #491217;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mem0-status-dashboard {
        background: #1a1a1a;
    }
    
    .status-card {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .status-header h3,
    .status-card h4,
    .config-value {
        color: #e0e0e0;
    }
    
    .status-table td:first-child,
    .config-key {
        color: #a0a0a0;
    }
}